aboutsummaryrefslogtreecommitdiff
path: root/templates/web/index.html
blob: 1d1d869fa695e8989867145eee322a825b3af5b1 (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
{% extends "base.html" %}

{% block title %}{{ settings.name }}{% endblock %}

{% block content %}
        <header>
            <h1>{{ settings.name }}</h1>
            <aside><form method="get" action="{{ url_for('search') }}"><input name="q" value="{{ q }}"><input type="submit" value="Search"></form></aside>
        </header>
        <ul>
            {% for entry in entries %}
            <li id="{{ entry.eid }}">
                <a href="{{ url_for('entry', eid=entry.eid) }}">{{ entry }}</a>
            </li>
            {% endfor %}
        </dl>
        {% if entries|count == 0 %}
            <h4>no results</h4>
        {% endif %}
        <footer>
          <nav>
          {% if entries|count > 0 %}
            {% if q %}
                <a href="{{ url_for('search', q=q, p=page+1) }}">more</a>
            {% else %}
                <a href="{{ url_for('index', p=page+1) }}">more</a>
            {% endif %}
         {% endif %}
         </nav>
        </footer>
{% endblock %}