rewriten parts of configuration to HAML
Improve readability of configuration view partials.
Review response - rewritten repeated statements
Used variables's length method instead of constant.