]> git.ipfire.org Git - ipfire.org.git/blame - src/templates/wiki/page.html
wiki: Fix editing the index page
[ipfire.org.git] / src / templates / wiki / page.html
CommitLineData
181d08f3
MT
1{% extends "base.html" %}
2
3{% block title %}{{ page.title }}{% end block %}
4
091ac36b 5{% block sidebar %}
116d1825 6 {% if page and page.sidebar %}
5bc36cbd 7 <div class="wiki-content small">
a9bb7761
MT
8 {% raw page.sidebar.html %}
9 </div>
091ac36b
MT
10 {% end %}
11{% end block %}
12
181d08f3 13{% block main %}
3c8524b4
MT
14 {% import os.path %}
15
3b05ef6e 16 <div class="card mb-3">
9bc17e85 17 <div class="card-body wiki-content">
321c58c3 18 {% raw page.html %}
181d08f3
MT
19 </div>
20 </div>
3b05ef6e 21
3c8524b4 22 <a class="btn btn-primary btn-block mb-3" href="{{ os.path.join(request.path, "_edit") }}">
3b544235
MT
23 <span class="fas fa-edit mr-2"></span> {{ _("Edit Page") }}
24 {% if not current_user %}&dash; {{ _("Yes, you can edit!") }}{% end %}
25 </a>
1711b8f8 26
8622aa51 27 <p class="small text-muted">
d64a1e35 28 {% if current_user %}
f2e25ded 29 {% if page.is_watched_by(current_user) %}
3c8524b4 30 <a href="{{ os.path.join(page.url, "_unwatch") }}"><span class="fas fa-star" title="{{ _("Stop watching this page") }}"></span></a>
d64a1e35 31 {% else %}
3c8524b4 32 <a href="{{ os.path.join(page.url, "_watch") }}"><span class="far fa-star" title="{{ _("Watch this page") }}"></span></a>
d64a1e35
MT
33 {% end %} &bull;
34 {% end %}
35
36 <a href="{{ request.path }}?action=revisions">
37 {{ _("Older Revisions") }}
38 </a>
3b05ef6e 39
d64a1e35 40 &bull;
3b05ef6e 41
7d9f7332 42 {{ locale.format_date(page.timestamp) }}
1711b8f8 43
d64a1e35
MT
44 {% if page.author %}
45 &bull;
46
47 <a href="/users/{{ page.author.uid }}">
48 {{ page.author }}
49 </a>
50 {% end %}
51 </p>
181d08f3 52{% end block %}