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-prepend input-append">
22 <span class=
"add-on"><i class=
"icon-search"></i></span><input class=
"input-xxlarge" type=
"text" name=
"q" {% if q %}
value=
"{{ q }}"{% endif %}
><button class=
"btn btn-primary" type=
"submit">{% trans
"Search" %}
</button>
31 <th>{% trans
"Podcast" %}
</th>
32 <th>{% trans
"Subscribers" %}
</th>
35 {% for podcast in results %}
37 <td class=
"logo">{{ podcast|podcast_logo }}
</td>
38 <td>{% podcast_group_link podcast %}
</td>
39 <td>{% vertical_bar podcast.subscriber_count max_subscribers %}
</td>
44 <div class=
"pagination pagination-centered">
46 {% if results.has_previous %}
48 <a href=
"{% url "search
" %}?q={{ q }}&page={{ results.previous_page_number }}">«
</a>
52 {% for page in page_list %}
54 {% if page ==
"..." %}
55 <a href=#
" class="disabled
">
60 {% if page == results.number %}
61 <strong>{{ page }}</strong>
63 <a href="{% url
"search" %}?q={{ q }}&page={{ page }}
">{{ page }}</a>
69 {% if results.has_next %}
71 <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>