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.

32 lines
1.7 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://cidr.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"></i> Board</a></li>
  21. <li><a href="http://www.youtube.com/user/DotaNoobsVods"><i class="uk-icon-youtube"></i> YouTube</a></li>
  22. <li><a href="http://webchat.oftc.net/?channels=dotanoobs&uio=d4"><i class="uk-icon-comments"></i> IRC Chat</a></li>
  23. <li class="uk-nav-divider"></li>
  24. <li class="uk-nav-header">Controls</li>
  25. {% if not g.user%}
  26. <li><a href="{{ url_for('login') }}"><i class="uk-icon-sign-in"></i> Login</a></li>
  27. <li><a href="{{ url_for('login') }}"><i class="uk-icon-star"></i> Register</a></li>
  28. {% else %}
  29. <li {% if request.endpoint == 'user_profile' %} class='uk-active' {% endif %}><a href="{{ url_for('user_profile', userid=g.user.id) }}"><i class="uk-icon-dashboard"></i> Profile</a></li>
  30. <li {% if request.endpoint == 'user_settings' %} class='uk-active' {% endif %}><a href="{{ url_for('user_settings') }}"><i class="uk-icon-cogs"></i> Settings</a></li>
  31. <li><a href="{{ url_for('logout') }}"><i class="uk-icon-sign-out"></i> Logout</a></li>
  32. {% endif %}