blob: 154b6934aa5ca77e5508c8d9953e7a14689fe1a5 (
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
|
{% extends "wiki/base.html" %}
{% load i18n %}
{% load wiki_tags %}
{% block wiki_pagetitle %}Search results for: "{{ search_query }}"{% endblock %}
{% block wiki_contents %}
<h1 class="page-header">Search results for: "{{ search_query }}"</h1>
<form class="form-search directory-toolbar">
<p>
{% if urlpath %}
Searching: <strong>in {{ urlpath.article }}</strong>
{% else %}
Searching: <strong>everywhere</strong>
{% endif %}
</p>
<div class="field has-addons">
<div class="control has-icons-left is-expanded">
<input type="search" class="input" name="q" value="{{ search_query }}" />
<span class="icon is-left">
<i class="fas fa-search"></i>
</span>
</div>
<div class="control">
<button class="button is-primary" type="submit">
Search
</button>
</div>
</div>
<p>
{% blocktrans with paginator.object_list.count as cnt %}
Your search returned <strong>{{ cnt }}</strong> results.
{% endblocktrans %}
</p>
</form>
{% include "wiki/includes/pagination.html" %}
<table class="table is-striped">
<tr>
<th>Title</th>
<th class="has-text-right">Last modified</th>
</tr>
{% for article in articles %}
{% block wiki_search_loop %}
{% include "wiki/includes/searchresult.html" %}
{% endblock %}
{% empty %}
<tr>
<td colspan="2">
<em>No articles were found for that search query.</em>
</td>
</tr>
{% endfor %}
</table>
{% include "wiki/includes/pagination.html" %}
{% endblock %}
|