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.

97 lines
4.1 KiB

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. <nav class="navbar navbar-expand-lg sticky-top navbar-dark bg-dark">
  9. <a href="/"><div class="navbar-brand"><svg
  10. width="24"
  11. height="24"
  12. fill="none"
  13. stroke="currentColor"
  14. stroke-width="2"
  15. stroke-linecap="round"
  16. stroke-linejoin="round"
  17. style="line-height: 1.5; vertical-align: middle; margin-bottom: 4px;">
  18. <use xlink:href="{{url_for('.static', filename='feather-sprite.svg')}}#arrow-left"/>
  19. </svg></div></a>
  20. <form class="form-inline ml-auto">
  21. {# <div class="custom-control custom-switch">
  22. <input type="checkbox" class="custom-control-input" id="darkSwitch" />
  23. <label class="custom-control-label" for="darkSwitch">Dark Mode</label>
  24. </div>
  25. <div class="navbar-text" style="margin-right: 20px; ">{{ user['userName'] }}</div> #}
  26. <a class="toolbar-button" href="#"><svg
  27. width="24"
  28. height="24"
  29. fill="none"
  30. stroke="currentColor"
  31. stroke-width="2"
  32. stroke-linecap="round"
  33. stroke-linejoin="round"
  34. style="line-height: 1.5; vertical-align: middle; margin-bottom: 4px;">
  35. <use xlink:href="{{url_for('.static', filename='feather-sprite.svg')}}#type"/>
  36. </svg></a>
  37. <a class="toolbar-button" href="/archive/{{ article[0] }}"><svg
  38. width="24"
  39. height="24"
  40. fill="none"
  41. stroke="currentColor"
  42. stroke-width="2"
  43. stroke-linecap="round"
  44. stroke-linejoin="round"
  45. style="line-height: 1.5; vertical-align: middle; margin-bottom: 4px;">
  46. <use xlink:href="{{url_for('.static', filename='feather-sprite.svg')}}#archive"/>
  47. </svg></a>
  48. <a class="toolbar-button" href="/delete/{{ article[0] }}" style="padding-right: 1rem;"><svg
  49. width="24"
  50. height="24"
  51. fill="none"
  52. stroke="currentColor"
  53. stroke-width="2"
  54. stroke-linecap="round"
  55. stroke-linejoin="round"
  56. style="line-height: 1.5; vertical-align: middle; margin-bottom: 4px;">
  57. <use xlink:href="{{url_for('.static', filename='feather-sprite.svg')}}#trash"/>
  58. </svg></a>
  59. </form>
  60. </nav>
  61. {% endblock %}
  62. {% block content %}
  63. <div class="container" style="margin-top: 15px">
  64. <div id="error-alert" class="alert alert-danger" role="alert" style="display: none;">
  65. This is a danger alert—check it out!
  66. </div>
  67. <form>
  68. <div class="row justify-content-center">
  69. {# <div class="col-lg-6">
  70. <label for="formGroupExampleInput4">URL</label>
  71. <input id="link-form" type="text" class="form-control" placeholder="https://example.com">
  72. <br>
  73. <button type="button" class="btn btn-primary" onclick="addUrl();">Add</button>
  74. <br>
  75. <br>
  76. </div> #}
  77. <div class="col-lg-12">
  78. <div style="padding: 10px;" id="article">
  79. <h1 style="text-align: center;">{{ article[3] }}</h1>
  80. <a href="{{ article[1] }}" class="text-info" target="_blank" style="display: block; text-align: center; margin-bottom: 20px;">View Original</a>
  81. {{ article[2] | safe}}
  82. </div>
  83. </div>
  84. </div>
  85. </form>
  86. </div>
  87. {% endblock %}
  88. {% block scripts %}
  89. {{ super() }}
  90. <script>
  91. $('#article img').css('max-width', '100%');
  92. $('#article img').css('height', 'auto');
  93. </script>
  94. {% endblock %}