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.

76 lines
2.9 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
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-info" href="#addLink" onclick="openLinkModal();" role="button" style="margin-right: 20px;">Add Link</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. {% include "fragments/sidebar.j2" %}
  43. </div>
  44. <!-- Page Content -->
  45. <div id="content">
  46. <form>
  47. <div class="row justify-content-center">
  48. <div class="col-lg-12">
  49. {% for article in articles|reverse %}
  50. <div style="color: black; padding: 10px; margin-bottom: 10px" class="card" id="article">
  51. <a href="/article/{{article[0]}}">{{ article[2] }}</a>
  52. <a href="{{ article[1] }}" target="_blank" style="color: darkgray">{{ article[3] }}</a>
  53. <br>
  54. <span>
  55. <a href="/archive/{{article[0]}}" class='text-success'>Archive</a>
  56. &nbsp;&nbsp;&nbsp;&nbsp;
  57. <a href="/delete/{{article[0]}}" class='text-danger'>Delete</a>
  58. </span>
  59. </div>
  60. {% endfor %}
  61. </div>
  62. </div>
  63. </form>
  64. </div>
  65. </div>
  66. {% include "fragments/add_modal.j2" %}
  67. {% endblock %}
  68. {% block scripts %}
  69. {{ super() }}
  70. <script type="text/javascript" src="{{url_for('.static', filename='add_modal.js')}}"></script>
  71. {% endblock %}