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.

68 lines
3.7 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="toolbar-button" id="refreshButton" href="#refresh" onclick="refreshPage();" style="display: none;" data-toggle="tooltip" data-placement="bottom" title="Refresh"><svg
  35. width="24"
  36. height="24"
  37. fill="none"
  38. stroke="currentColor"
  39. stroke-width="2"
  40. stroke-linecap="round"
  41. stroke-linejoin="round"
  42. style="line-height: 1.5; vertical-align: middle; margin-bottom: 4px;">
  43. <use xlink:href="{{url_for('.static', filename='feather-sprite.svg')}}#refresh-cw"/></svg></a>
  44. {# <a class="btn btn-info" href="#addLink" onclick="openLinkModal();" role="button" style="margin-right: 20px;">Add Link</a> #}
  45. <a class="toolbar-button" href="#addLink" onclick="openLinkModal();" data-toggle="tooltip" data-placement="bottom" title="Add Link"><svg
  46. width="24"
  47. height="24"
  48. fill="none"
  49. stroke="currentColor"
  50. stroke-width="2"
  51. stroke-linecap="round"
  52. stroke-linejoin="round"
  53. style="line-height: 1.5; vertical-align: middle; margin-bottom: 4px;">
  54. <use xlink:href="{{url_for('.static', filename='feather-sprite.svg')}}#plus"/></svg></a>
  55. {% endif %}
  56. {# <a class="btn btn-primary" href="/logout" role="button">Logout</a> #}
  57. <a class="toolbar-button" href="/logout" style="padding-right: 1rem;" data-toggle="tooltip" data-placement="bottom" title="Logout"><svg
  58. width="24"
  59. height="24"
  60. fill="none"
  61. stroke="currentColor"
  62. stroke-width="2"
  63. stroke-linecap="round"
  64. stroke-linejoin="round"
  65. style="line-height: 1.5; vertical-align: middle; margin-bottom: 4px;">
  66. <use xlink:href="{{url_for('.static', filename='feather-sprite.svg')}}#log-out"/></svg></a>
  67. </form>
  68. </div>
  69. </div>