]> git.ipfire.org Git - ipfire.org.git/blob - src/templates/docs/page.html
5ada046b9b767e175b91a726b417c5defcbb4270
[ipfire.org.git] / src / templates / docs / 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 <section class="section">
34 <div class="container">
35 <div class="content">
36 {% raw page.html %}
37 </div>
38 </div>
39 </section>
40
41 <section class="section">
42 <div class="container">
43 <div class="block">
44 <a class="button is-primary is-fullwidth" href="{{ os.path.join(request.path, "_edit") }}">
45 <span class="icon-text">
46 <span class="icon">
47 <i class="fas fa-edit"></i>
48 </span>
49 <span>
50 {{ _("Edit Page") }}
51 {% if not current_user %}&dash; {{ _("Yes, you can edit!") }}{% end %}
52 </span>
53 </span>
54 </a>
55 </div>
56
57 <div class="block">
58 <div class="level">
59 <div class="level-left">
60 {% if current_user %}
61 {% if page.is_watched_by(current_user) %}
62 <a class="level-item" href="{{ os.path.join(page.url, "_unwatch") }}">
63 <i class="fas fa-star" title="{{ _("Stop watching this page") }}"></i>
64 </a>
65 {% else %}
66 <a class="level-item" href="{{ os.path.join(page.url, "_watch") }}">
67 <i class="far fa-star" title="{{ _("Watch this page") }}"></i>
68 </a>
69 {% end %}
70 {% end %}
71
72 <a class="level-item" href="{{ request.path }}?action=revisions">
73 {{ _("Older Revisions") }}
74 </a>
75
76 <div class="level-item">
77 {{ locale.format_date(page.timestamp) }}
78 </div>
79
80 {% if page.author %}
81 <a class="level-item" href="/users/{{ page.author.uid }}">
82 {{ page.author }}
83 </a>
84 {% end %}
85 </div>
86 </div>
87 </div>
88 </div>
89 </section>
90 {% end block %}