What did the popes wear in the middle ages?

they wore robes