Two men who used a stranger's head "like a football" in a vicious city centre assault have been put behind bars.