~fabrixxm/lesanaweb

ref: b3d356ddc8bea2011667d5b40918117cf8938ece lesanaweb/templates/index.html -rw-r--r-- 1019 bytes
b3d356dd — fabrixxm Listing pages use default order 9 months ago
                                                                                
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="{% if q %}{{ q }}{% endif %}"><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 %}