cas
[prawokultury.git] / migdal / templates / migdal / entry / entry_list.html
index a68bd2a..eede699 100755 (executable)
@@ -1,7 +1,7 @@
 {% extends "base.html" %}
 {% load url from future %}
 {% load i18n %}
-{% load pagination_tags %}
+{% load pagination_tags prevnext %}
 {% load migdal_tags %}
 
 
 {% block "body" %}
 
 {% if category %}
-    {% trans "Category" %}: {{ category }}
-    <h1><a href="{% url 'migdal_category_feed' category.slug %}">RSS</a></h1>
+    <h1>{% trans "Category" %}: {{ category }}
+    <!--a href="{% url 'migdal_category_feed' category.slug %}">RSS</a-->
+    </h1>
 {% elif entry_type %}
-    {{ entry_type|capfirst }}
-    <h1><a href="{% url 'migdal_entry_list_'|add:entry_type.db|add:'_feed' %}">RSS</a></h1>
+    <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>
-        <a href="" 
-        {% if forloop.counter == 1 %} class="active"{% endif %}
+    <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 %}
+    {% entry_promobox object forloop.counter %}
 {% endfor %}
 </ul>
+</div>
 
 </div>
 {% endif %}
 
 {% if submit %}
     <p class="submit-link">
-    <a href="{% url 'migdal_submit' %}">{% trans "Submit a new story." %}</a>
+    <a href="{% url 'migdal_submit' %}">{% trans "Submit a new story, create Culture's Right with us!" %}</a>
     </p>
 {% endif %}
 
@@ -58,6 +61,6 @@
 {% for object in object_list %}
     {% entry_short object %}
 {% endfor %}
-{% paginate %}
+{% prevnext %}
 
 {% endblock %}
\ No newline at end of file