1 {%extends
"base/page.html"%}
2 {%block title%}Search results{%endblock%}
5 <h1>Site Search
<i class=
"fas fa-link"></i></h1>
6 <form method=
"get" action=
"/search/">
8 <input type=
"hidden" name=
"u" value=
"{{suburl}}">
11 <div class=
"col-lg-6">
12 <div class=
"input-group">
13 <input type=
"text" name=
"q" value=
"{{query}}" class=
"form-control" placeholder=
"Search for...">
14 <span class=
"input-group-btn">
15 <button class=
"btn btn-default" type=
"submit">
16 <i class=
"fas fa-search"></i>
19 </div><!-- /input-group -->
20 <div class=
"form-check search">
21 <input class=
"form-check-input" type=
"checkbox" value=
"" name=
"a" value=
"1" {%if allsites%}
checked=
"checked"{%endif%}
id=
"allsites">
22 <label class=
"form-check-label" for=
"allsites">
23 Include community sites
26 </div><!-- /.col-lg-6 -->
31 <div>{{search_error}}
</div>
33 <!-- docbot goes here -->
35 <p>Your search for
<strong>{{query}}
</strong> returned no hits.
</p>
37 <h2>Results {{firsthit}}-{{lasthit}} of {%if hitcount ==
1000%}more than
1000{%else%}{{hitcount}}{%endif%}.
</h2>
38 {%if pagelinks %}Result pages: {{pagelinks|safe}}
<br/><br/>{%endif%}
40 {{forloop.counter0|add:firsthit}}.
<a href=
"{{hit.url}}">{{hit.title}}
</a> [{{hit.rank|floatformat:
2}}]
<br/>
41 <div>...{{hit.abstract|safe}}...
</div>
42 <a href=
"{{hit.url}}">{{hit.url}}
</a><br/>
45 {%if pagelinks %}Result pages: {{pagelinks|safe}}
<br/><br/>{%endif%}