]> git.ipfire.org Git - ipfire.org.git/blob - src/templates/docs/page.html
base: Add search to navigation when on docs
[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 <div class="card mb-3">
34 <div class="card-body wiki-content">
35 {% raw page.html %}
36 </div>
37 </div>
38
39 <div class="d-grid">
40 <a class="btn btn-primary mb-3" href="{{ os.path.join(request.path, "_edit") }}">
41 <span class="fas fa-edit mr-2"></span> {{ _("Edit Page") }}
42 {% if not current_user %}&dash; {{ _("Yes, you can edit!") }}{% end %}
43 </a>
44 </div>
45
46 <p class="small text-muted">
47 {% if current_user %}
48 {% if page.is_watched_by(current_user) %}
49 <a href="{{ os.path.join(page.url, "_unwatch") }}"><span class="fas fa-star" title="{{ _("Stop watching this page") }}"></span></a>
50 {% else %}
51 <a href="{{ os.path.join(page.url, "_watch") }}"><span class="far fa-star" title="{{ _("Watch this page") }}"></span></a>
52 {% end %} &bull;
53 {% end %}
54
55 <a href="{{ request.path }}?action=revisions">
56 {{ _("Older Revisions") }}
57 </a>
58
59 &bull;
60
61 {{ locale.format_date(page.timestamp) }}
62
63 {% if page.author %}
64 &bull;
65
66 <a href="/users/{{ page.author.uid }}">
67 {{ page.author }}
68 </a>
69 {% end %}
70 </p>
71 {% end block %}