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.

38 lines
1.9 KiB

4 years ago
  1. <div id="navbar" class="navbar navbar-expand-lg sticky-top navbar-dark bg-dark">
  2. <div class="navbar-brand">Read TI Later</div>
  3. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown"
  4. aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
  5. <span class="navbar-toggler-icon"></span>
  6. </button>
  7. <div class="collapse navbar-collapse" id="navbarNavDropdown">
  8. <ul class="navbar-nav">
  9. {% if request.path == url_for('index') %}
  10. <li class="nav-item active">
  11. {% else %}
  12. <li class="nav-item">
  13. {% endif %}
  14. <a class="nav-link" href="{{ url_for('index') }}">My List</a>
  15. </li>
  16. {% if request.path == url_for('archived') %}
  17. <li class="nav-item active">
  18. {% else %}
  19. <li class="nav-item">
  20. {% endif %}
  21. <a class="nav-link" href="{{ url_for('archived') }}">Archived</a>
  22. </li>
  23. {% if request.path == url_for('bookmarklet') %}
  24. <li class="nav-item active">
  25. {% else %}
  26. <li class="nav-item">
  27. {% endif %}
  28. <a class="nav-link" href="{{ url_for('bookmarklet') }}">Bookmarklet</a>
  29. </li>
  30. </ul>
  31. <form class="form-inline ml-auto">
  32. {% if request.path != url_for('bookmarklet') %}
  33. <a class="btn btn-success" id="refreshButton" href="#refresh" onclick="refreshPage();" role="button" style="margin-right: 20px; display: none;">Refresh</a>
  34. <a class="btn btn-info" href="#addLink" onclick="openLinkModal();" role="button" style="margin-right: 20px;">Add Link</a>
  35. {% endif %}
  36. <a class="btn btn-primary" href="/logout" role="button">Logout</a>
  37. </form>
  38. </div>
  39. </div>