-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.html
47 lines (40 loc) · 1.31 KB
/
search.html
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
<html>
<head>
<link type="text/css" rel="stylesheet" href="/stylesheets/main.css" />
</head>
<body>
<h1>Search Results</h1>
<p>{{ total }} results found.</p>
{% for result in numbered_results %}
<p>
{{ result[0] }}.
<a href="{{ result[1]['webUrl'] }}">{{ result[1]['fields']['headline'] }}</a>,
{% if result[1]['fields']['byline'] %}
by {{ result[1]['fields']['byline'] }},
{% endif %}
{% if result[1]['sectionName'] %}
in section “{{ result[1]['sectionName'] }}”.
{% endif %}
{% if result[1]['fields']['standfirst'] %}
<blockquote>{{ result[1]['fields']['standfirst'] }}</blockquote>
{% endif %}
</p>
{% endfor %}
<p>Page {{ current_page }} of {{ pages }}</p>
<p>
{% if url_prev_page %}
<a href="{{ url_prev_page }}">Prev</a>
{% else %}
Prev
{% endif %}
{% if url_next_page %}
<a href="{{ url_next_page }} ">Next</a>
{% else %}
Next
{% endif %}
</p>
<div id="attribution">
<a href="http://www.guardian.co.uk/open-platform/"><img src="http://image.guardian.co.uk/sys-images/Guardian/Pix/pictures/2010/03/01/poweredbyguardianBLACK.png" alt="Powered by The Guardian." /></a>
</div>
</body>
</html>