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.

62 lines
2.6 KiB

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