blob: afa2b41d841ec1f652b5f55a92d1fcd9d8dbcfcf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
|
{% extends "base/base.html" %}
{% load sekizai_tags i18n wiki_tags static %}
{# This template is no longer used - we can remove it later when the rest are done #}
{% block title %}
{% block wiki_pagetitle %}{% endblock %}{% block wiki_site_title %} - django-\/\/ i K |{% endblock %}
{% endblock %}
<html lang="en">
<head>
<meta charset="utf-8">
<title>Wiki | {% block wiki_pagetitle %}{% endblock %}{% block wiki_site_title %}{% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="author" content="www.django-wiki.org">
<!-- Le styles -->
<link href="{% static "wiki/bootstrap/css/wiki-bootstrap.min.css" %}" rel="stylesheet">
{% render_block "css" %}
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
{% block wiki_body %}
{% block wiki_navbar %}
<div class="navbar navbar-fixed-top navbar-inverse">
<div class="container">
<div class="navbar-header">
<!-- .navbar-toggle is used as the toggle for collapsed navbar content -->
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
{% block wiki_header_branding %}
<a class="navbar-brand" href="{% url 'wiki:root' %}">django-\/\/ i K |</a>
{% endblock %}
</div>
<div class="navbar-collapse collapse">
<form class="navbar-form navbar-right" id="wiki-search-form" method="GET" action="{% spaceless %}
{% if article or urlpath %}
{% url 'wiki:search' article_id=article.id path=urlpath.path %}
{% else %}
{% url 'wiki:search' %}
{% endif %}
{% endspaceless %}"
>
<div class="input-group">
<input type="search" class="form-control search-query" name="q" placeholder="{% spaceless %}
{% if article or urlpath %}
{% trans "Search from current article..." %}
{% else %}
{% trans "Search whole wiki..." %}
{% endif %}
{% endspaceless %}" />
<span class="input-group-btn">
<button class="btn btn-default" type="submit">
<span class="fa fa-search"></span>
</button>
</span>
</div><!-- /input-group -->
</form>
<div class="navbar-right">
{% if user.is_authenticated %}
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<span class="badge notification-cnt">0</span>
{{ user }}
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
{% if "ACCOUNT_HANDLING"|wiki_settings %}
<li>
<a href="{% url 'wiki:profile_update' %}">
<i class="fa fa-gear"></i>
{% trans "Account Settings" %}
</a>
</li>
{% endif %}
<li>
<a href="{{ "LOGOUT_URL"|wiki_settings }}">
<i class="fa fa-power-off"></i>
{% trans "Log out" %}
</a>
</li>
{% if user.is_superuser %}
<li>
<a href="{% url 'wiki:deleted_list' %}">
<i class="fa fa-trash-o"></i>
{% trans "Deleted articles" %}
</a>
</li>
{% endif %}
{% if "wiki.plugins.notifications"|plugin_enabled %}
{% include "wiki/plugins/notifications/menubaritem.html" %}
{% endif %}
{% if "wiki.plugins.globalhistory"|plugin_enabled %}
{% include "wiki/plugins/globalhistory/menubaritem.html" %}
{% endif %}
</ul>
</li>
</ul>
{% else %}
<ul class="nav navbar-nav">
<li>
<a href="{% login_url as wiki_login_url %}{{ wiki_login_url }}">{% trans "Log in" %}</a>
</li>
{% if "ACCOUNT_HANDLING"|wiki_settings %}
<li>
<a href="{% url 'wiki:signup' %}">{% trans "Sign up" %}</a>
</li>
{% endif %}
</ul>
{% endif %}
</div>
{% block wiki_header_navlinks %}
<ul class="nav navbar-nav">
<li class="active"><a href="/">{% trans "Home" %}</a></li>
<li><a href="https://github.com/django-wiki/django-wiki" target="_blank">{% trans "About" %}</a></li>
</ul>
{% endblock %}
</div>
</div>
</div>
{% endblock %}
<div class="container" style="margin-top: 60px;">
{% wiki_messages %}
<!-- Reserved for breadcrumbs -->
{% block wiki_breadcrumbs %}{% endblock %}
<!-- Main page contents go here -->
{% block wiki_contents %}{% endblock %}
<footer id="wiki-footer">
<hr />
{% block wiki_footer_logo %}
<a href="https://github.com/django-wiki/django-wiki" class="pull-right"><img src="{% static "wiki/img/github_icon.png" %}" /></a>
{% endblock %}
{% block wiki_footer_prepend %}
{% endblock %}
<p>{% blocktrans %}Powered by <a href="http://www.django-wiki.org">django-wiki</a>, an open source application under the <a href="http://www.gnu.org/licenses/quick-guide-gplv3.html">GPLv3</a> license. Let knowledge be the cure.{% endblocktrans %}</p>
<div style="clear: both"></div>
</footer>
</div>
{% endblock %}
<script src="{% static "wiki/js/jquery-3.3.1.min.js" %}"></script>
<script src="{% static "wiki/js/core.js" %}"></script>
<script src="{% static "wiki/bootstrap/js/bootstrap.min.js" %}"></script>
<!-- Optionally enable responsive features in IE8 -->
<script src="{% static "wiki/js/respond.min.js" %}"></script>
{% render_block "js" %}
</body>
</html>
|