Homosexuality was decriminalised in the UK in 1967, but a ban continued in the armed forces until 2000.