menu.tpl 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <nav class="navbar navbar-default">
  2. <div class="container">
  3. <!-- Brand and toggle get grouped for better mobile display -->
  4. <div class="navbar-header">
  5. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#menuone" aria-expanded="false">
  6. <span class="sr-only">Toggle navigation</span>
  7. <span class="icon-bar"></span>
  8. <span class="icon-bar"></span>
  9. <span class="icon-bar"></span>
  10. </button>
  11. </div>
  12. <!-- Collect the nav links, forms, and other content for toggling -->
  13. <div class="collapse navbar-collapse" id="menuone">
  14. <ul class="nav navbar-nav">
  15. {{ menu }}
  16. </ul>
  17. {% if _u.logged == 1 %}
  18. <ul class="nav navbar-nav navbar-right">
  19. {% if user_notifications is not null %}
  20. <li><a href="{{ message_url }}">{{ user_notifications }}</a></li>
  21. {% endif %}
  22. {% if _u.status != 6 %}
  23. <li class="dropdown">
  24. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
  25. {{ _u.complete_name }} <span class="caret"></span>
  26. </a>
  27. <ul class="dropdown-menu" role="menu">
  28. <li>
  29. {{ profile_link }}
  30. {{ message_link }}
  31. {{ certificate_link }}
  32. </li>
  33. </ul>
  34. </li>
  35. {% if logout_link is not null %}
  36. <li>
  37. <a id="logout_button" title="{{ "Logout"|get_lang }}" href="{{ logout_link }}" >
  38. <em class="fa fa-sign-out"></em> {{ "Logout"|get_lang }}
  39. </a>
  40. </li>
  41. {% endif %}
  42. {% endif %}
  43. </ul>
  44. {% endif %}
  45. </div><!-- /.navbar-collapse -->
  46. </div><!-- /.container-fluid -->
  47. </nav>