more adaptations to Bootstrap 3
[mygpo.git] / mygpo / share / templates / list_search.html
blob642cfb20407540fe899defcf904bd9b5ab1cd274
1 {% extends "embed.html" %}
3 {% load i18n %}
4 {% load podcasts %}
5 {% load charts %}
7 {% block head %}
8 <base target="_parent" />
9 {% endblock %}
11 {% block content %}
13 {% if results %}
14 <table class="list">
15 {% for podcast in results %}
16 <tr>
17 <td class="logo">{{ podcast|podcast_logo }}</td>
18 <td>{% podcast_group_link podcast %}</td>
19 <td>{% vertical_bar podcast.subscriber_count max_subscribers %}</td>
20 <td>
21 <form action="{% url "list-add-podcast" user.username listname podcast.get_id %}" method="post" target="_parent">
22 {% csrf_token %}
23 <button class="btn btn-success btn-sm" type="submit">
24 <i class="icon-plus"></i>
25 </button>
26 </form>
27 </td>
28 </tr>
29 {% endfor %}
30 </table>
32 <ul class="pagination">
34 {% if results.has_previous %}
35 <li>
36 <a href="{% url "list-search" user.username listname %}?q={{ q }}&page={{ results.previous_page_number }}">«</a>
37 </li>
38 {% endif %}
40 {% for page in page_list %}
41 <li>
42 {% if page == "..." %}
43 <span>{{ page }}</span>
44 {% else %}
46 {% if page == results.number %}
47 <strong>{{ page }}</strong>
48 {% else %}
49 <a href="{% url "list-search" user.username listname %}?q={{ q }}&page={{ page }}">{{ page }}</a>
50 {% endif %}
51 {% endif %}
52 </li>
53 {% endfor %}
55 {% if results.has_next %}
56 <li>
57 <a href="{% url "list-search" user.username listname %}?q={{ q }}&page={{ results.next_page_number }}">»</a>
58 </li>
59 {% endif %}
61 </ul>
63 {% else %}
65 <div>{% trans "Nothing found" %}</div>
67 {% endif %}
69 {% endblock %}