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.

54 lines
2.3 KiB

3 years ago
  1. <nav class="navbar navbar-expand-lg sticky-top navbar-dark bg-dark">
  2. <div class="navbar-brand d-none d-md-block">Technical Incompetence</div>
  3. <ul class="navbar-expand navbar-nav">
  4. {% if request.path == url_for('index') %}
  5. <li class="nav-item active">
  6. <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
  7. {% else %}
  8. <li class="nav-item">
  9. <a class="nav-link" href="{{ url_for('index') }}">Home</a>
  10. {% endif %}
  11. </li>
  12. {% if request.path == url_for('game') %}
  13. <li class="nav-item active">
  14. <a class="nav-link" href="#">Games <span class="sr-only">(current)</span></a>
  15. {% else %}
  16. <li class="nav-item">
  17. <a class="nav-link" href="{{ url_for('game') }}">Games</a>
  18. {% endif %}
  19. </li>
  20. </ul>
  21. <form class="form-inline ml-auto">
  22. <a onclick="showApps();" style="cursor: pointer;">
  23. <svg
  24. width="24"
  25. height="24"
  26. fill="none"
  27. stroke="currentColor"
  28. stroke-width="2"
  29. stroke-linecap="round"
  30. stroke-linejoin="round"
  31. style="vertical-align: middle;">
  32. <use xlink:href="{{url_for('.static', filename='icons/feathericons/feather-sprite.svg')}}#grid"/>
  33. </svg>
  34. </a>
  35. {% if account_url is defined and account_url != '' %}
  36. {% if current_user.is_authenticated %}
  37. <a href="{{ account_url }}" style="color: white;">
  38. <svg
  39. width="24"
  40. height="24"
  41. fill="none"
  42. stroke="currentColor"
  43. stroke-width="2"
  44. stroke-linecap="round"
  45. stroke-linejoin="round"
  46. style="vertical-align: middle; margin-left: 1rem;">
  47. <use xlink:href="{{url_for('.static', filename='icons/feathericons/feather-sprite.svg')}}#user"/>
  48. </svg>
  49. </a>
  50. {% else %}
  51. <a class="btn btn-sm btn-primary" style="margin-left: 1rem;" href="{{ account_url }}" role="button">Sign In</a>
  52. {% endif %}
  53. {% endif %}
  54. </form>
  55. </nav>