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