rewritten part of configuration view partials to HAML

I find these repeated statements rather silly. Would would wou, please, try to rewrite this as a loop? All 3 of them, please.