navbar.html 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. <template name="navbar">
  2. <nav class="navbar navbar-default navbar-fixed-top">
  3. <div class="container">
  4. <a class="navbar-brand" href="/">TextCircle</a><!-- nav title -->
  5. <ul class="nav navbar-nav">
  6. <li>
  7. <a href="#" class="js-add-doc">
  8. <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
  9. New document
  10. </a>
  11. </li>
  12. <!-- drop down list -->
  13. <li role="presentation" class="dropdown">
  14. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
  15. Documents <span class="caret"></span>
  16. </a>
  17. <ul class="dropdown-menu">
  18. {{#each documents }}
  19. <li><a href="/documents/{{ _id }}">{{ title }}</a></li>
  20. {{/each}}
  21. </ul>
  22. </li>
  23. <!-- end drop down list -->
  24. </ul>
  25. <p class="navbar-text navbar-right">
  26. {{> loginButtons align="right" }}
  27. </p>
  28. </div><!-- /nav container -->
  29. </nav><!-- /nav -->
  30. </template>