]> git.ipfire.org Git - ipfire.org.git/blob - src/templates/docs/page.html
docs: Drop sidebar stuff which we no longer use
[ipfire.org.git] / src / templates / docs / page.html
1 {% extends "base.html" %}
2
3 {% block title %}{{ page.title }}{% end block %}
4
5 {% block head %}
6 <!-- Facebook OpenGraph -->
7 <meta property="og:site_name" content="IPFire Documentation" />
8 <meta property="og:title" content="{{ page.title }} - The IPFire Documentation" />
9 <meta property="og:url" content="{{ page.full_url }}" />
10 <meta property="og:image" content="https://www.ipfire.org/{{ static_url("img/ipfire-tux.png") }}" />
11
12 <meta property="og:type" content="article" />
13 <meta property="og:article:modified_time" content="{{ page.timestamp.isoformat() }}" />
14
15 <!-- Twitter -->
16 <meta property="twitter:site" content="@ipfire" />
17 <meta property="twitter:card" content="summary_large_image" />
18 <meta property="twitter:title" content="{{ page.title }} - The IPFire Documentation" />
19 <meta property="twitter:image" content="https://www.ipfire.org/{{ static_url("img/ipfire-tux.png") }}" />
20 {% end block %}
21
22 {% block main %}
23 {% import os.path %}
24
25 <section class="section">
26 <div class="container">
27 <div class="columns">
28 <div class="column is-three-quarters-widescreen">
29 <div class="content">
30 {% raw page.html %}
31 </div>
32
33 <hr>
34
35 <div class="block">
36 <a class="button is-primary is-fullwidth" href="{{ os.path.join(request.path, "_edit") }}">
37 <span class="icon-text">
38 <span class="icon">
39 <i class="fas fa-edit"></i>
40 </span>
41 <span>
42 {{ _("Edit Page") }}
43 {% if not current_user %}&dash; {{ _("Yes, you can edit!") }}{% end %}
44 </span>
45 </span>
46 </a>
47 </div>
48
49 <div class="block">
50 <small>
51 <div class="level">
52 <div class="level-left">
53 {% if current_user %}
54 {% if page.is_watched_by(current_user) %}
55 <a class="level-item" href="{{ os.path.join(page.url, "_unwatch") }}">
56 <i class="fas fa-star" title="{{ _("Stop watching this page") }}"></i>
57 </a>
58 {% else %}
59 <a class="level-item" href="{{ os.path.join(page.url, "_watch") }}">
60 <i class="far fa-star" title="{{ _("Watch this page") }}"></i>
61 </a>
62 {% end %}
63 {% end %}
64
65 <a class="level-item" href="/users/{{ page.author.uid }}">
66 {{ _("Last changed by %(author)s, %(when)s") % {
67 "author" : page.author,
68 "when" : locale.format_date(page.timestamp, shorter=True),
69 } }}
70 </a>
71
72 <a class="level-item" href="{{ request.path }}?action=revisions">
73 {{ _("View Older Revisions") }}
74 </a>
75 </div>
76 </div>
77 </small>
78 </div>
79 </div>
80 </div>
81 </div>
82 </section>
83 {% end block %}