<% for field in _.pairs(@fields): %> <% if _.indexOf(@sortableBy, field[0]) == -1: %> <% else: %> <% icon_class = "" %> <% icon_class = "" if @sortBy[field[0]] == "" %> <% icon_class = "iux-default-icon-arrow-asc" if @sortBy[field[0]] == "asc" %> <% icon_class = "iux-default-icon-arrow-desc" if @sortBy[field[0]] == "desc" %> <% end %> <% end %>
<%= field[1] %>
<%= field[1] %>