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.

106 lines
4.6 KiB

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 metas %}
  4. {{super()}}
  5. <meta name="apple-mobile-web-app-capable" content="yes">
  6. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
  8. <link rel="manifest" crossorigin="use-credentials" href="./manifest.json">
  9. <link rel="apple-touch-icon" href="{{url_for('.static', filename='read-it-later.png')}}">
  10. {% endblock %}
  11. {% block styles %}
  12. {{super()}}
  13. <link rel="stylesheet" href="{{url_for('.static', filename='style.css')}}">
  14. {% endblock %}
  15. {% block navbar %}
  16. <nav class="navbar navbar-expand-lg sticky-top navbar-dark bg-dark">
  17. <a href="/"><div class="navbar-brand"><svg
  18. width="24"
  19. height="24"
  20. fill="none"
  21. stroke="currentColor"
  22. stroke-width="2"
  23. stroke-linecap="round"
  24. stroke-linejoin="round"
  25. style="line-height: 1.5; vertical-align: middle; margin-bottom: 4px;">
  26. <use xlink:href="{{url_for('.static', filename='feather-sprite.svg')}}#arrow-left"/>
  27. </svg></div></a>
  28. <form class="form-inline ml-auto">
  29. {# <div class="custom-control custom-switch">
  30. <input type="checkbox" class="custom-control-input" id="darkSwitch" />
  31. <label class="custom-control-label" for="darkSwitch">Dark Mode</label>
  32. </div>
  33. <div class="navbar-text" style="margin-right: 20px; ">{{ user['userName'] }}</div> #}
  34. <a class="toolbar-button" href="#"><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')}}#type"/>
  44. </svg></a>
  45. <a class="toolbar-button" href="/archive/{{ article[0] }}"><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')}}#archive"/>
  55. </svg></a>
  56. <a class="toolbar-button" href="/delete/{{ article[0] }}" style="padding-right: 1rem;"><svg
  57. width="24"
  58. height="24"
  59. fill="none"
  60. stroke="currentColor"
  61. stroke-width="2"
  62. stroke-linecap="round"
  63. stroke-linejoin="round"
  64. style="line-height: 1.5; vertical-align: middle; margin-bottom: 4px;">
  65. <use xlink:href="{{url_for('.static', filename='feather-sprite.svg')}}#trash"/>
  66. </svg></a>
  67. </form>
  68. </nav>
  69. {% endblock %}
  70. {% block content %}
  71. <div class="container wrapper" style="padding-left: 15px !important; padding-right: 15px !important; margin-right: auto !important; margin-left: auto !important; left: 0; right: 0;">
  72. <div id="error-alert" class="alert alert-danger" role="alert" style="display: none;">
  73. This is a danger alert—check it out!
  74. </div>
  75. <form>
  76. <div class="row justify-content-center">
  77. {# <div class="col-lg-6">
  78. <label for="formGroupExampleInput4">URL</label>
  79. <input id="link-form" type="text" class="form-control" placeholder="https://example.com">
  80. <br>
  81. <button type="button" class="btn btn-primary" onclick="addUrl();">Add</button>
  82. <br>
  83. <br>
  84. </div> #}
  85. <div class="col-lg-12">
  86. <div style="padding: 10px;" id="article">
  87. <h1 style="text-align: center;">{{ article[3] }}</h1>
  88. <a href="{{ article[1] }}" class="text-info" target="_blank" style="display: block; text-align: center; margin-bottom: 20px;">View Original</a>
  89. {{ article[2] | safe}}
  90. </div>
  91. </div>
  92. </div>
  93. </form>
  94. </div>
  95. {% endblock %}
  96. {% block scripts %}
  97. {{ super() }}
  98. <script>
  99. $('#article img').css('max-width', '100%');
  100. $('#article img').css('height', 'auto');
  101. </script>
  102. {% endblock %}