Updated EDB Windows + macOS installers pages for PG12
[pgweb/local.git] / templates / search / sitesearch.html
blob6fcbf6fae43ecf4f9e0169f111f51719f5fd2fe9
1 {%extends "base/page.html"%}
2 {%block title%}Search results{%endblock%}
3 {%block contents%}
5 <h1>Site Search <i class="fas fa-link"></i></h1>
6 <form method="get" action="/search/">
7 {%if suburl%}
8 <input type="hidden" name="u" value="{{suburl}}">
9 {%endif%}
10 <div class="row">
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>
17 </button>
18 </span>
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
24 </label>
25 </div>
26 </div><!-- /.col-lg-6 -->
27 </div><!-- /.row -->
28 </form>
30 {%if search_error %}
31 <div>{{search_error}}</div>
32 {%else%}
33 <!-- docbot goes here -->
34 {%if hitcount == 0 %}
35 <p>Your search for <strong>{{query}}</strong> returned no hits.</p>
36 {%else%}
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%}
39 {%for hit in hits %}
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/>
43 <br/>
44 {%endfor%}
45 {%if pagelinks %}Result pages: {{pagelinks|safe}}<br/><br/>{%endif%}
46 {%endif%}
47 {%endif%}
48 {%endblock%}