diff options
author | 2019-04-08 14:06:11 +0100 | |
---|---|---|
committer | 2019-04-08 14:06:11 +0100 | |
commit | 027475779bfa7db50a1c1ff9935bcb546b33f961 (patch) | |
tree | 1782c502797f4e1cea5a876dcb4b51f99e4a8ba1 /pydis_site/templates/wiki/search.html | |
parent | Remove wiki host, use /wiki - Also some wiki config (diff) |
Add base templates for django-wiki, as provided
Diffstat (limited to 'pydis_site/templates/wiki/search.html')
-rw-r--r-- | pydis_site/templates/wiki/search.html | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/pydis_site/templates/wiki/search.html b/pydis_site/templates/wiki/search.html new file mode 100644 index 00000000..080cf40d --- /dev/null +++ b/pydis_site/templates/wiki/search.html @@ -0,0 +1,53 @@ +{% extends "wiki/base.html" %} +{% load wiki_tags i18n humanize %} + + +{% block wiki_pagetitle %}{% trans "Search results for:" %} {{ search_query }}{% endblock %} + +{% block wiki_contents %} + +<h1 class="page-header">{% trans "Search results for:" %} {{ search_query }}</h1> + +<form class="form-search directory-toolbar"> +<p class="lead"> + <div class="pull-right"> + {% if urlpath %} + {% trans "Searching in" %} {{ urlpath.article }} + {% else %} + {% trans "Searching whole wiki" %} + {% endif %} + <div class="input-group"> + <input type="search" class="form-control search-query" name="q" value="{{ search_query }}" /> + <span class="input-group-btn"> + <button class="btn btn-default" type="submit"> + <span class="fa fa-search"></span> + </button> + </span> + </div> + </div> + <p>{% blocktrans with paginator.object_list.count as cnt %}Your search returned <strong>{{ cnt }}</strong> results.{% endblocktrans %}</p> + <div class="clearfix"></div> +</p> +</form> + +<table class="table table-striped"> + <tr> + <th style="width: 75%">{% trans "Title" %}</th> + <th>{% trans "Last modified" %}</th> + </tr> + {% for article in articles %} + {% block wiki_search_loop %} + {% include "wiki/includes/searchresult.html" %} + {% endblock %} + {% empty%} + <tr> + <td colspan="100"> + <em>{% trans "There are no articles in this level" %}</em> + </td> + </tr> + {% endfor %} +</table> + +{% include "wiki/includes/pagination.html" %} + +{% endblock %} |