| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <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">
- <h2>{{ focused["title"] }}</h2>
- <p><a href="{{ focused['url_article'] }}">Lien</a></p>
- <h3>Articles similaires</h3>
- <ul>
- {% for s in similar %}
- <li>{{ s[1] | round(3) }}
- {% if s[0]["is_main"] %}
- {{ article(s[0]) }}
- {% else %}
- {{ s[0]["title"] }}
- {% endif %}
- </li>
- {% endfor %}
- </ul>
- </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>
|