lots of graphics
[prawokultury.git] / migdal / templates / migdal / entry / entry_list.html
1 {% extends "base.html" %}
2 {% load url from future %}
3 {% load i18n %}
4 {% load pagination_tags %}
5 {% load migdal_tags %}
6
7
8 {% block "main_menu" %}
9     {% if category %}
10         {% main_menu 'object' category %}
11     {% elif entry_type %}
12         {% main_menu 'entry_type' entry_type.db %}
13     {% else %}
14         {{ block.super }}
15     {% endif %}
16 {% endblock "main_menu" %}
17
18
19 {% block "body" %}
20
21 {% if category %}
22     {% trans "Category" %}: {{ category }}
23     <h1><a href="{% url 'migdal_category_feed' category.slug %}">RSS</a></h1>
24 {% elif entry_type %}
25     {{ entry_type|capfirst }}
26     <h1><a href="{% url 'migdal_entry_list_'|add:entry_type.db|add:'_feed' %}">RSS</a></h1>
27 {% endif %}
28
29 {% if object_list.promobox and request.page == 1 %}
30 <div id="promobox">
31 <ul id="promobox-switcher">
32 {% for object in object_list.promobox %}
33     <li>
34         <a href="" 
35         {% if forloop.counter == 1 %} class="active"{% endif %}
36         >{{ forloop.counter }}</a>
37     </li>
38 {% endfor %}
39 </ul>
40
41 <ul class="promobox">
42 {% for object in object_list.promobox %}
43     {% entry_promobox object %}
44 {% endfor %}
45 </ul>
46
47 </div>
48 {% endif %}
49
50 {% if submit %}
51     <p class="submit-link">
52     <a href="{% url 'migdal_submit' %}">{% trans "Submit a new story." %}</a>
53     </p>
54 {% endif %}
55
56
57 {% autopaginate object_list 10 %}
58 {% for object in object_list %}
59     {% entry_short object %}
60 {% endfor %}
61 {% paginate %}
62
63 {% endblock %}