|
@@ -1,7 +1,7 @@
|
1
|
1
|
{% extends "base.html" %}
|
2
|
2
|
{% block title %}{{ q }} - {% endblock %}
|
3
|
3
|
{% block content %}
|
4
|
|
-<div class="right"><a href="/preferences" id="preferences"><span>preferences</span></a></div>
|
|
4
|
+<div class="right"><a href="{{ url_for('preferences') }}" id="preferences"><span>preferences</span></a></div>
|
5
|
5
|
<div class="small search">
|
6
|
6
|
{% include 'search.html' %}
|
7
|
7
|
</div>
|
|
@@ -10,8 +10,8 @@
|
10
|
10
|
{% if suggestions %}
|
11
|
11
|
<div id="suggestions"><span>{{ _('Suggestions') }}</span>
|
12
|
12
|
{% for suggestion in suggestions %}
|
13
|
|
- <form method="post" action="/">
|
14
|
|
- <input type="hidden" name="q" value="{{suggestion}}">
|
|
13
|
+ <form method="post" action="{{ url_for('index') }}">
|
|
14
|
+ <input type="hidden" name="q" value="{{ suggestion }}">
|
15
|
15
|
<input type="submit" value="{{ suggestion }}" />
|
16
|
16
|
</form>
|
17
|
17
|
{% endfor %}
|
|
@@ -25,7 +25,7 @@
|
25
|
25
|
<div id="apis">
|
26
|
26
|
{{ _('Download results') }}
|
27
|
27
|
{% for output_type in ('csv', 'json', 'rss') %}
|
28
|
|
- <form method="post" action="/">
|
|
28
|
+ <form method="post" action="{{ url_for('index') }}">
|
29
|
29
|
<div class="left">
|
30
|
30
|
<input type="hidden" name="q" value="{{ q }}" />
|
31
|
31
|
<input type="hidden" name="format" value="{{ output_type }}" />
|
|
@@ -52,7 +52,7 @@
|
52
|
52
|
{% if paging %}
|
53
|
53
|
<div id="pagination">
|
54
|
54
|
{% if pageno > 1 %}
|
55
|
|
- <form method="post" action="/">
|
|
55
|
+ <form method="post" action="{{ url_for('index') }}">
|
56
|
56
|
<div class="left">
|
57
|
57
|
<input type="hidden" name="q" value="{{ q }}" />
|
58
|
58
|
{% for category in selected_categories %}
|
|
@@ -63,7 +63,7 @@
|
63
|
63
|
</div>
|
64
|
64
|
</form>
|
65
|
65
|
{% endif %}
|
66
|
|
- <form method="post" action="/">
|
|
66
|
+ <form method="post" action="{{ url_for('index') }}">
|
67
|
67
|
<div class="left">
|
68
|
68
|
{% for category in selected_categories %}
|
69
|
69
|
<input type="hidden" name="category_{{ category }}" value="1"/>
|