add title for category/type pages, remove commented out rss links
[django-migdal.git] / migdal / templates / migdal / entry / entry_list.html
1 {% extends "base.html" %}
2 {% load i18n %}
3 {% load pagination_tags fnp_prevnext %}
4 {% load migdal_tags %}
5
6
7 {% block titleextra %}{% if category %}{{ category.title }} :: {% elif entry_type %}{{ entry_type|capfirst }} :: {% endif %}{% endblock %}
8
9
10 {% block body %}
11
12 {% if category %}
13     <h1>{% trans "Category" %}: {{ category }}</h1>
14 {% elif entry_type %}
15     <h1>{{ entry_type|capfirst }}</h1>
16 {% endif %}
17
18 {% if object_list.promobox and request.page == 1 %}
19 <div id="promobox">
20 <ul id="promobox-switcher">
21 {% for object in object_list.promobox %}
22     <li {% if forloop.counter == 1 %} class="active"{% endif %}>
23         <a href="{{ object.get_absolute_url }}"
24         >{{ forloop.counter }}</a>
25     </li>
26 {% endfor %}
27 </ul>
28
29 <div id="promobox-wrapper">
30 <ul class="promobox">
31 {% for object in object_list.promobox %}
32     {% entry_promobox object forloop.counter %}
33 {% endfor %}
34 </ul>
35 </div>
36
37 </div>
38 {% endif %}
39
40 {% if submit %}
41     <p class="submit-link">
42     <a href="{% url 'migdal_submit' %}">{% trans "Submit a new story, create Right to Culture with us!" %}</a>
43     </p>
44 {% endif %}
45
46 {% if not object_list %}
47    <p class="warning">{% trans "Work in progress." %}</p>
48 {% endif %}
49
50 {% autopaginate object_list 10 %}
51 {% for object in object_list %}
52     {% entry_short object %}
53 {% endfor %}
54 {% prevnext %}
55
56 {% endblock %}