site_main_article_detail.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <html>
  2. <head>
  3. <title>Hello</title>
  4. <link href="{{ url_for('static', path='/style.css') }}" rel="stylesheet">
  5. </head>
  6. <body>
  7. <a href="{{ url_for('index') }}">Homepage</a>
  8. <h1>Site {{ site_id }}</h1>
  9. {% macro article(a) -%}
  10. <a href="{{ url_for('site_main_article_snapshot', id=a['site_id'], snapshot_id=a['featured_article_snapshot_id']) }}">
  11. [{{ a["site_name"] }}] {{ a["title"] }}
  12. </a>
  13. {%- endmacro %}
  14. <div id="article_browser">
  15. <div class="up">
  16. <ul>
  17. {% for a in simultaneous_up %}
  18. <li>{{ article(a) }}</li>
  19. {% endfor %}
  20. </ul>
  21. </div>
  22. <div class="focused">
  23. <h2>{{ focused["title"] }}</h2>
  24. <p><a href="{{ focused['url_article'] }}">Lien</a></p>
  25. <ul>
  26. {% for s in similar %}
  27. <li>{{ s[1] }} {{ s[0]["title"] }}</li>
  28. {% endfor %}
  29. </ul>
  30. </div>
  31. {% if after %}
  32. <div class="after">
  33. {{ article(after) }} @ {{ after["timestamp_virtual"] }}
  34. </div>
  35. {% endif %}
  36. {% if before %}
  37. <div class="before">
  38. {{ article(before) }} @ {{ before["timestamp_virtual"] }}
  39. </div>
  40. {% endif %}
  41. <div class="down">
  42. <ul>
  43. {% for a in simultaneous_down %}
  44. <li>{{ article(a) }}</li>
  45. {% endfor %}
  46. </ul>
  47. </div>
  48. </div>
  49. </body>
  50. </html>