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.

25 lines
1.4 KiB

  1. {% for endpoint, title in [
  2. ('index', 'Home'),
  3. ('friends', 'Friends'),
  4. ('list_events', 'Events'),
  5. ('community', 'Community'),
  6. ('ladder', 'Ladder'),
  7. ] %}
  8. <li{% if endpoint == request.endpoint %} class='uk-active' {% endif %}>
  9. <a href="{{ url_for(endpoint) }}">{{ title }}</a>
  10. </li>
  11. {% endfor %}
  12. <li class="uk-nav-divider"></li>
  13. <li class="uk-nav-header">Social</li>
  14. <li><a href="http://board.dotanoobs.com"><i class="uk-icon-group"> Board</i></a></li>
  15. <li><a href="http://www.youtube.com/user/DotaNoobsVods"><i class="uk-icon-youtube"> YouTube</i></a></li>
  16. <li><a href="http://webchat.oftc.net/?channels=dotanoobs&uio=d4"><i class="uk-icon-comments-alt"> IRC Chat</i></a></li>
  17. <li class="uk-nav-divider"></li>
  18. {% if not g.user%}
  19. <li><a href="{{ url_for('login') }}"><i class="uk-icon-off"> Login</i></a></li>
  20. <li><a href="{{ url_for('login') }}"><i class="uk-icon-cog"> Register</i></a></li>
  21. {% else %}
  22. <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>
  23. <li><a href="{{ url_for('user_profile', userid=g.user.id) }}"><i class="uk-icon-cog"> Settings</i></a></li>
  24. <li><a href="{{ url_for('logout') }}"><i class="uk-icon-off"> Logout</i></a></li>
  25. {% endif %}