menu.tpl 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. </li>
  32. </ul>
  33. </li>
  34. {% if logout_link is not null %}
  35. <li>
  36. <a id="logout_button" title="{{ "Logout"|get_lang }}" href="{{ logout_link }}" >
  37. <i class="fa fa-sign-out"></i> {{ "Logout"|get_lang }}
  38. </a>
  39. </li>
  40. {% endif %}
  41. {% endif %}
  42. </ul>
  43. {% endif %}
  44. </div><!-- /.navbar-collapse -->
  45. </div><!-- /.container-fluid -->
  46. </nav>