personal.jst.eco 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <% for item in @items: %>
  2. <% if item.child: %>
  3. <li class="<% if item.class: %><%- item.class %><% end %> dropup <% if @open_tab[item.target] : %>open<% end %>">
  4. <a class="list-button horizontal centered dropdown-toggle" data-toggle="dropdown" href="<%= item.target %>" title="<%- @T( item.name ) %>">
  5. <span class="dropdown-nose"></span>
  6. <% if item.class is 'user': %>
  7. <%- item.avatar %>
  8. <% else: %>
  9. <span class="green plus icon"></span>
  10. <span class="white plus icon"></span>
  11. <% end %>
  12. </a>
  13. <ul class="dropdown-menu" role="menu">
  14. <% for item in item.child: %>
  15. <% if item.divider: %>
  16. <li class="divider"></li>
  17. <% end %>
  18. <% if item.navheader: %>
  19. <li class="dropdown-header"><%- @T( item.navheader ) %></li>
  20. <% end %>
  21. <li class="<% if @active_tab[item.target] : %>active<% end %>">
  22. <a href="<%= item.target %>" class="horizontal">
  23. <span class="flex u-textTruncate"><%- @T( item.name ) %></span>
  24. <% if item['count'] isnt undefined: %><span class="badge count"><%= item['count'] %></span><% end %>
  25. <% if item.iconClass: %><span class="<%= item.iconClass %> icon"></span><% end %>
  26. </a>
  27. </li>
  28. <% end %>
  29. </ul>
  30. </li>
  31. <% else: %>
  32. <li class="settings <% if @active_tab[item.target] : %>active<% end %>">
  33. <a class="list-button fit horizontal centered" href="<%= item.target %>" title="<%- @T( item.name ) %>">
  34. <span class="light cog icon"></span>
  35. <span class="dark cog icon"></span>
  36. </a>
  37. </li>
  38. <% end %>
  39. <% end %>