{% extends "base.html" %}
{% load url from future %}
{% load i18n %}
+{% load pagination_tags prevnext %}
{% load migdal_tags %}
+
+{% block "main_menu" %}
+ {% if category %}
+ {% main_menu 'object' category %}
+ {% elif entry_type %}
+ {% main_menu 'entry_type' entry_type.db %}
+ {% else %}
+ {{ block.super }}
+ {% endif %}
+{% endblock "main_menu" %}
+
+
{% block "body" %}
-<h1>
{% if category %}
- {% trans "Category" %}: {{ category }}
- <a href="{% url 'migdal_category_feed' category.slug %}">RSS</a>
+ <h1>{% trans "Category" %}: {{ category }}
+ <!--a href="{% url 'migdal_category_feed' category.slug %}">RSS</a-->
+ </h1>
{% elif entry_type %}
- {{ entry_type|capfirst }}
- <a href="{% url 'migdal_entry_list_'|add:entry_type.db|add:'_feed' %}">RSS</a>
-{% else %}
- {% trans "Latest news" %}
+ <h1>{{ entry_type|capfirst }}
+ <!--a href="{% url 'migdal_entry_list_'|add:entry_type.db|add:'_feed' %}">RSS</a-->
+ </h1>
+{% endif %}
+
+{% if object_list.promobox and request.page == 1 %}
+<div id="promobox">
+<ul id="promobox-switcher">
+{% for object in object_list.promobox %}
+ <li {% if forloop.counter == 1 %} class="active"{% endif %}>
+ <a href="{{ object.get_absolute_url }}"
+ >{{ forloop.counter }}</a>
+ </li>
+{% endfor %}
+</ul>
+
+<div id="promobox-wrapper">
+<ul class="promobox">
+{% for object in object_list.promobox %}
+ {% entry_promobox object forloop.counter %}
+{% endfor %}
+</ul>
+</div>
+
+</div>
{% endif %}
-</h1>
+{% if submit %}
+ <p class="submit-link">
+ <a href="{% url 'migdal_submit' %}">{% trans "Submit a new story, create Culture's Right with us!" %}</a>
+ </p>
+{% endif %}
+
+
+{% autopaginate object_list 10 %}
{% for object in object_list %}
{% entry_short object %}
{% endfor %}
+{% prevnext %}
{% endblock %}
\ No newline at end of file