| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <html>
- <head>
- <title>Hello</title>
- <link href="{{ url_for('static', path='/style.css') }}" rel="stylesheet">
- </head>
- <body>
- <a href="{{ url_for('index') }}">Homepage</a>
- <h1>{{ focused["site_name"] }}</h1>
- {% macro article(a) -%}
- <a href="{{ url_for('site_main_article_snapshot', id=a['site_id'], snapshot_id=a['featured_article_snapshot_id']) }}">
- [{{ a["site_name"] }}] {{ a["title"] }}
- </a>
- {%- endmacro %}
- <div id="article_browser">
- <div class="up">
- <ul>
- {% for a in simultaneous_up %}
- <li>{{ article(a) }}</li>
- {% endfor %}
- </ul>
- </div>
- <div class="focused">
- <a href="{{ focused['url_article'] }}"><h2>{{ focused["title"] }} <img src="{{ url_for('static', path='/external-link.svg') }}" height="30px"></h2></a>
- <div class="similar">
- <h3>Articles similaires</h3>
- <ul>
- {% for s, distance in similar %}
- {% if s["is_main"] %}
- <li>{{ article(s) }} [{{ distance | round(3) }}]</li>
- {% endif %}
- {% endfor %}
- </ul>
- </div>
- </div>
- {% if after %}
- <div class="after">
- {{ article(after) }} @ {{ after["timestamp_virtual"] }}
- </div>
- {% endif %}
- {% if before %}
- <div class="before">
- {{ article(before) }} @ {{ before["timestamp_virtual"] }}
- </div>
- {% endif %}
- <div class="down">
- <ul>
- {% for a in simultaneous_down %}
- <li>{{ article(a) }}</li>
- {% endfor %}
- </ul>
- </div>
- </div>
- </body>
- </html>
|