aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/templates/wiki/base_site.html
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2019-04-08 14:06:11 +0100
committerGravatar Gareth Coles <[email protected]>2019-04-08 14:06:11 +0100
commit027475779bfa7db50a1c1ff9935bcb546b33f961 (patch)
tree1782c502797f4e1cea5a876dcb4b51f99e4a8ba1 /pydis_site/templates/wiki/base_site.html
parentRemove wiki host, use /wiki - Also some wiki config (diff)
Add base templates for django-wiki, as provided
Diffstat (limited to 'pydis_site/templates/wiki/base_site.html')
-rw-r--r--pydis_site/templates/wiki/base_site.html164
1 files changed, 164 insertions, 0 deletions
diff --git a/pydis_site/templates/wiki/base_site.html b/pydis_site/templates/wiki/base_site.html
new file mode 100644
index 00000000..d025e53c
--- /dev/null
+++ b/pydis_site/templates/wiki/base_site.html
@@ -0,0 +1,164 @@
+{% load sekizai_tags i18n wiki_tags static %}<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>{% block wiki_pagetitle %}{% endblock %}{% block wiki_site_title %} - django-\/\/ i K |{% 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>
+
+ </div> <!-- /container -->
+
+ {% 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>