Commits

James Rivett-Carnac committed be678c3 Draft

included the template for diario_pager

Comments (0)

Files changed (1)

diario/templates/tags/pager_template.html

+
+<div class="pagination pagination-centered">
+    <ul>
+        {# Previous Button #}
+    {% if page.has_previous %}
+    <li>
+    <a href="?page={{ page.prev_page_number }}">&laquo;</a>
+    </li>
+    {% else %}
+    <li class="disabled">
+    <a>&laquo;</a>
+    </li>
+    {% endif %}
+    {% for page_num in pager.page_range %}
+    {% if page_num == current_page %}
+    <li class="active">
+    <a>{{ page_num }}</a>
+    {% else %}
+    <li>
+    <a href="?page={{ page_num }}">{{ page_num }}</a>
+    {% endif %}
+    </li>
+    {% endfor %}
+    {# Next Button #}
+    {% if page.has_next %}
+    <li>
+    <a href="?page={{ page.next_page_number }}">&raquo;</a>
+    </li>
+    {% else %}
+    <li class="disabled">
+    <a>&raquo;</a>
+    </li>
+    {% endif %}
+</ul>
+</div>