]> git.ipfire.org Git - ipfire.org.git/blob - src/templates/wiki/page.html
ebcd5520791fe6543b2f60239dde28b1ce494c7d
[ipfire.org.git] / src / templates / wiki / page.html
1 {% extends "base.html" %}
2
3 {% block title %}{{ page.title }}{% end block %}
4
5 {% block sidebar %}
6 {% if page and page.sidebar %}
7 <div class="wiki-content small">
8 {% raw page.sidebar.html %}
9 </div>
10 {% end %}
11 {% end block %}
12
13 {% block head %}
14 <!-- Facebook OpenGraph -->
15 <meta property="og:site_name" content="IPFire Wiki" />
16 <meta property="og:title" content="{{ page.title }} - The IPFire Wiki" />
17 <meta property="og:url" content="{{ page.full_url }}" />
18 <meta property="og:image" content="https://wiki.ipfire.org/{{ static_url("img/ipfire-tux.png") }}" />
19
20 <meta property="og:type" content="article" />
21 <meta property="og:article:modified_time" content="{{ page.timestamp.isoformat() }}" />
22
23 <!-- Twitter -->
24 <meta property="twitter:site" content="@ipfire" />
25 <meta property="twitter:card" content="summary_large_image" />
26 <meta property="twitter:title" content="{{ page.title }} - The IPFire Wiki" />
27 <meta property="twitter:image" content="https://wiki.ipfire.org/{{ static_url("img/ipfire-tux.png") }}" />
28 {% end block %}
29
30 {% block main %}
31 {% import os.path %}
32
33 <div class="card mb-3">
34 <div class="card-body wiki-content">
35 {% raw page.html %}
36 </div>
37 </div>
38
39 <a class="btn btn-primary btn-block mb-3" href="{{ os.path.join(request.path, "_edit") }}">
40 <span class="fas fa-edit mr-2"></span> {{ _("Edit Page") }}
41 {% if not current_user %}&dash; {{ _("Yes, you can edit!") }}{% end %}
42 </a>
43
44 <p class="small text-muted">
45 {% if current_user %}
46 {% if page.is_watched_by(current_user) %}
47 <a href="{{ os.path.join(page.url, "_unwatch") }}"><span class="fas fa-star" title="{{ _("Stop watching this page") }}"></span></a>
48 {% else %}
49 <a href="{{ os.path.join(page.url, "_watch") }}"><span class="far fa-star" title="{{ _("Watch this page") }}"></span></a>
50 {% end %} &bull;
51 {% end %}
52
53 <a href="{{ request.path }}?action=revisions">
54 {{ _("Older Revisions") }}
55 </a>
56
57 &bull;
58
59 {{ locale.format_date(page.timestamp) }}
60
61 {% if page.author %}
62 &bull;
63
64 <a href="/users/{{ page.author.uid }}">
65 {{ page.author }}
66 </a>
67 {% end %}
68 </p>
69 {% end block %}