]> git.ipfire.org Git - ipfire.org.git/blame - src/templates/wiki/modules/list.html
wiki: Show diff link only when changes are shown
[ipfire.org.git] / src / templates / wiki / modules / list.html
CommitLineData
f9db574a
MT
1{% for page in pages %}
2 <strong class="mb-0">
66a814d9
MT
3 {% if show_breadcrumbs %}
4 {% for url, title in page.breadcrumbs %}
5 <a href="{{ url }}">{{ title }}</a> /
6 {% end %}
7 {% end %}
8
7d699684 9 <a href="{{ page.url }}{% if link_revision %}?revision={{ page.timestamp.isoformat() }}{% end %}">{{ page.title }}</a>
f9db574a
MT
10 </strong>
11
12 <p class="text-muted small">
13 {{ locale.format_date(page.timestamp, shorter=True, relative=False) }}
14
15 {% if page.author %}
16 {{ _("by") }}
17 <a href="/users/{{ page.author.uid }}">{{ page.author }}</a>
18 {% end %}
d398ca08 19
3de0b958
MT
20 {% if show_changes %}
21 {% if page.changes %}
22 &bull; {{ page.changes }}
23 {% end %}
c21ffadb 24
3de0b958
MT
25 {% if page.previous_revision %}
26 <a href="{{ page.url }}?action=diff&a={{ page.previous_revision.timestamp.isoformat() }}&b={{ page.timestamp.isoformat() }}">
27 <span class="fas fa-exchange-alt ml-1"></span>
28 </a>
29 {% end %}
d398ca08 30 {% end %}
f9db574a
MT
31 </p>
32{% end %}