aboutsummaryrefslogtreecommitdiff
path: root/templates/web/index.html
blob: 33017631fa5d8c7568247ab97f0dc0bcf741dc33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{% extends "base.html" %}

{% block title %}Linkopedia{% endblock %}

{% block content %}
        <section>
            {% if q %}<h2>Cerca: '{{ q }}'</h2>{% endif %}
            <dl id="linkslist">
                {% for entry in entries %}
                <dt class="link" id="{{ entry.eid }}">
                    <a href="{{ entry.data.url }}" title="{{ entry.data.url }}">{{ entry.data.title }}</a>
                </dt>
                <dd>
                    {{ entry.data.description }}
                    <footer>
                        {{ entry.data.added }} - <a href="{{ url_for('entry', eid=entry.eid) }}">permalink</a>
                        {{ "-" if entry.data.tags|count > 0 }}
                        {% for tag in entry.data.tags %}
                        <a class="tag" href="{{ url_for('search') }}?q=tag:{{tag|urlencode}}">{{ tag }}</a>
                        {% endfor %}
                    </footer>
                </dd>
                {% endfor %}
            </dl>
            {% if entries|count > 0 %}
                {% if q %}
                    <a id="nextpage" href="{{ url_for('search', q=q, p=page+1) }}">altro</a>
                {% else %}
                    <a id="nextpage" href="{{ url_for('index', p=page+1) }}">altro</a>
                {% endif %}
            {% else %}
                <div class="placeholder">nessun risultato</div>
            {% endif %}
        </section>
{% endblock %}