aboutsummaryrefslogtreecommitdiff
path: root/templates/web/index.html
blob: 4436d23b9e3c6eeb496ddac965e197b961e471f8 (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
{% 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.data.name }}
                </a>
                &lt;<a href="{{ entry.data.url }}">{{ entry.data.url }}</a>&gt;
            </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 %}