Fixed indentation and added missing end statement

You seem to have missed an <%- end %> statement after the if-elsif, which wasn't obvious due to the missing indentation. Fixed both.