]> git.ipfire.org Git - ipfire.org.git/blob - src/templates/docs/modules/list.html
bf635706fa03bdd1018136a12df968b5a7a40bc1
[ipfire.org.git] / src / templates / docs / modules / list.html
1 {% for page in pages %}
2 <div class="block">
3 <p class="is-size-6">
4 {% if show_breadcrumbs %}
5 {% for url, title in page.breadcrumbs %}
6 <a href="{{ url }}" >{{ title }}</a> /
7 {% end %}
8 {% end %}
9
10 <a href="{{ page.url }}{% if link_revision %}?revision={{ page.timestamp.isoformat() }}{% end %}">{{ page.title }}</a>
11 </p>
12
13 <p class="is-size-7">
14 {% if show_author %}
15 {{ _("Last edited %s") % locale.format_date(page.timestamp, shorter=True, relative=False) }}
16
17 {% if page.author %}
18 {{ _("by") }}
19 <a href="/users/{{ page.author.uid }}">{{ page.author }}</a>
20 {% end %}
21 {% end %}
22
23 {% if show_changes %}
24 {% if page.changes %}
25 &bull; {{ page.changes }}
26 {% end %}
27
28 {% if page.previous_revision %}
29 <a href="{{ page.url }}?action=diff&a={{ page.previous_revision.timestamp.isoformat() }}&b={{ page.timestamp.isoformat() }}">
30 <span class="fas fa-exchange-alt ml-1"></span>
31 </a>
32 {% end %}
33 {% end %}
34
35 {% if not page.is_latest_revision() %}
36 <a href="{{ page.url }}?action=restore&revision={{ page.timestamp.isoformat() }}" title="{{ _("Restore") }}">
37 <span class="fas fa-undo ml-1"></span>
38 </a>
39 {% end %}
40 </p>
41 </div>
42 {% end %}