Host view rewritten to haml

also `case` statement would be prefered here over a sequence of `if`s