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.

92 lines
3.6 KiB

4 years ago
  1. {% extends "bootstrap/base.html" %}
  2. {% block title %}Read TI Later{% endblock %}
  3. {% block styles %}
  4. {{super()}}
  5. <link rel="stylesheet" href="{{url_for('.static', filename='style.css')}}">
  6. {% endblock %}
  7. {% block navbar %}
  8. <div id="navbar" class="navbar navbar-expand-lg sticky-top navbar-dark bg-dark">
  9. <div class="navbar-brand">Read TI Later</div>
  10. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown"
  11. aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
  12. <span class="navbar-toggler-icon"></span>
  13. </button>
  14. <div class="collapse navbar-collapse" id="navbarNavDropdown">
  15. <ul class="navbar-nav">
  16. {% if request.path == url_for('index') %}
  17. <li class="nav-item active">
  18. {% else %}
  19. <li class="nav-item">
  20. {% endif %}
  21. <a class="nav-link" href="{{ url_for('index') }}">My List</a>
  22. </li>
  23. {% if request.path == url_for('archived') %}
  24. <li class="nav-item active">
  25. {% else %}
  26. <li class="nav-item">
  27. {% endif %}
  28. <a class="nav-link" href="{{ url_for('archived') }}">Archived</a>
  29. </li>
  30. </ul>
  31. <form class="form-inline ml-auto">
  32. <a class="btn btn-primary" href="/save" role="button" style="margin-right: 20px;">Save</a>
  33. <a class="btn btn-primary" href="/logout" role="button">Logout</a>
  34. </form>
  35. </div>
  36. </div>
  37. {% endblock %}
  38. {% block content %}
  39. <div class="wrapper">
  40. <!-- Sidebar -->
  41. <div id="sidebar">
  42. <ul class="list-unstyled components">
  43. {% if request.path == url_for('index') %}
  44. <li class="nav-item active">
  45. {% else %}
  46. <li class="nav-item">
  47. {% endif %}
  48. <a href="{{ url_for('index') }}"><i data-feather="home" style="height: 1rem; vertical-align: middle; margin-bottom: 4px;"></i>My List</a>
  49. </li>
  50. {% if request.path == url_for('archived') %}
  51. <li class="nav-item active">
  52. {% else %}
  53. <li class="nav-item">
  54. {% endif %}
  55. <a href="{{ url_for('archived') }}"><i data-feather="archive" style="height: 1rem; vertical-align: middle; margin-bottom: 4px;"></i>Archived</a>
  56. </li>
  57. </ul>
  58. </div>
  59. <!-- Page Content -->
  60. <div id="content">
  61. <form>
  62. <div class="row justify-content-center">
  63. <div class="col-lg-12">
  64. {% for article in articles|reverse %}
  65. <div style="color: black; padding: 10px; margin-bottom: 10px" class="card" id="article">
  66. <a href="/article/{{article[0]}}">{{ article[2] }}</a>
  67. <a href="{{ article[1] }}" target="_blank" style="color: darkgray">{{ article[4] }}</a>
  68. <br>
  69. <span>
  70. <a href="/archive/{{article[0]}}" class='text-success'>Archive</a>
  71. &nbsp;&nbsp;&nbsp;&nbsp;
  72. <a href="/delete/{{article[0]}}" class='text-danger'>Delete</a>
  73. </span>
  74. </div>
  75. {% endfor %}
  76. </div>
  77. </div>
  78. </form>
  79. </div>
  80. </div>
  81. {% endblock %}
  82. {% block scripts %}
  83. {{ super() }}
  84. <script src="https://unpkg.com/feather-icons"></script>
  85. <script>
  86. feather.replace();
  87. </script>
  88. {% endblock %}