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