DotaNoobs main site.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.6 KiB

  1. {% for endpoint, title in [
  2. ('index', 'Home'),
  3. ('friends', 'Friends'),
  4. ('list_events', 'Events'),
  5. ('teamspeak', 'TS3 Stats'),
  6. ] %}
  7. <li{% if endpoint == request.endpoint %} class='uk-active' {% endif %}>
  8. <a href="{{ url_for(endpoint) }}">{{ title }}</a>
  9. </li>
  10. {% endfor %}
  11. <li class="uk-parent">
  12. <a href="#">Stream Stats</a>
  13. <ul class="uk-nav-sub">
  14. <li><a href="http://potatr.dotanoobs.com">Potato_Bot</a></li>
  15. <li><a href="http://potatr.dotanoobs.com">Cider_Bot</a></li>
  16. </ul>
  17. </li>
  18. <li class="uk-nav-divider"></li>
  19. <li class="uk-nav-header">Social</li>
  20. <li><a href="http://board.dotanoobs.com"><i class="uk-icon-group"> Board</i></a></li>
  21. <li><a href="http://www.youtube.com/user/DotaNoobsVods"><i class="uk-icon-youtube"> YouTube</i></a></li>
  22. <li><a href="http://webchat.oftc.net/?channels=dotanoobs&uio=d4"><i class="uk-icon-comments-alt"> IRC Chat</i></a></li>
  23. <li class="uk-nav-divider"></li>
  24. {% if not g.user%}
  25. <li><a href="{{ url_for('login') }}"><i class="uk-icon-off"> Login</i></a></li>
  26. <li><a href="{{ url_for('login') }}"><i class="uk-icon-cog"> Register</i></a></li>
  27. {% else %}
  28. <li {% if request.endpoint == 'user_profile' %} class='uk-active' {% endif %}><a href="{{ url_for('user_profile', userid=g.user.id) }}"><i class="uk-icon-home"> Profile</i></a></li>
  29. <li><a href="{{ url_for('user_settings', userid=g.user.id) }}"><i class="uk-icon-cog"> Settings</i></a></li>
  30. <li><a href="{{ url_for('logout') }}"><i class="uk-icon-off"> Logout</i></a></li>
  31. {% endif %}