1 {% extends 'base.html' %}
8 {% block mainmenu %}{{
"/search/"|main_menu }}{% endblock %}
9 {% block sectionmenu %}{{
"/search/"|section_menu }}{% endblock %}
11 {% block title %}{% trans
"Search" %}{% endblock %}
14 <h1>{% trans
"Search" %}
</h1>
20 <form class=
"form-inline" method=
"get" action=
"{% url "search
" %}" class=
"search">
21 <div class=
"input-group">
22 <span class=
"input-group-addon"><i class=
"icon-search"></i></span>
23 <input class=
"form-control" type=
"text" name=
"q" {% if q %}
value=
"{{ q }}"{% endif %}
placeholder=
"{% trans "Search term or feed URL
" %}" autofocus=
"autofocus">
24 <span class=
"input-group-btn">
25 <button class=
"btn btn-primary" type=
"submit">{% trans
"Search" %}
</button>
35 <th>{% trans
"Podcast" %}
</th>
36 <th>{% trans
"Subscribers" %}
</th>
39 {% for podcast in results %}
41 <td class=
"logo">{{ podcast|podcast_logo }}
</td>
42 <td>{% podcast_group_link podcast %}
</td>
43 <td>{% vertical_bar podcast.subscribers max_subscribers %}
</td>
48 <ul class=
"pagination">
49 {% if results.has_previous %}
51 <a href=
"{% url "search
" %}?q={{ q }}&page={{ results.previous_page_number }}">«
</a>
55 {% for page in page_list %}
57 {% if page ==
"..." %}
58 <span>{{ page }}
</span>
61 {% if page == results.number %}
62 <strong>{{ page }}
</strong>
64 <a href=
"{% url "search
" %}?q={{ q }}&page={{ page }}">{{ page }}
</a>
70 {% if results.has_next %}
72 <a href=
"{% url "search
" %}?q={{ q }}&page={{ results.next_page_number }}">»
</a>
79 <div>{% trans
"Nothing found" %}
</div>
91 <h4>{% trans
"Search API" %}
</h4>
92 <p>{% trans
"Access the following address to search for <em>tech</em> podcasts." %}
</p>
93 <a href=
"/search.opml?q=tech">
94 <pre>http://{{domain}}/search.opml?q=tech
</pre>