Permalink
Browse files

Merge branch 'bug-615671-pager_in_dasboard' into production

  • Loading branch information...
2 parents 9befa68 + bba7f1d commit 9876577d60ab17242e2bc2f0314908ab7f8f761e @zalun zalun committed Dec 1, 2010
Showing with 38 additions and 0 deletions.
  1. +19 −0 apps/person/templates/user_addons.html
  2. +19 −0 apps/person/templates/user_libraries.html
@@ -15,5 +15,24 @@ <h2 class="UI_Heading">Your {% if disabled %}Disabled{% else %}Latest{% endif %}
{% include "_package_browser_addon.html" %}
</li>
{% endfor %}
+ {% if pager.has_other_pages %}
+ <ul class="UI_Pagination">
+ {% if pager.has_previous %}
+ <li class="UI_Pagin_Action prev">
+ <span></span>
+ <a title="" href="{% url person_addons_page pager.previous_page_number %}">
+ Previous
+ </a>
+ </li>
+ {% endif %}
+ <li class='current'>{{ pager.number }}</li>
+ {% if pager.has_next %}
+ <li class="UI_Pagin_Action next">
+ <a title="" href="{% url person_addons_page pager.next_page_number %}">Next</a>
+ <span></span>
+ </li>
+ {% endif %}
+ </ul>
+ {% endif %}
</ul>
{% endblock %}
@@ -15,5 +15,24 @@ <h2 class="UI_Heading">Your {% if disabled %}Disabled{% else %}Latest{% endif %}
{% include "_package_browser_library.html" %}
</li>
{% endfor %}
+ {% if pager.has_other_pages %}
+ <ul class="UI_Pagination">
+ {% if pager.has_previous %}
+ <li class="UI_Pagin_Action prev">
+ <span></span>
+ <a title="" href="{% url person_libraries_page pager.previous_page_number %}">
+ Previous
+ </a>
+ </li>
+ {% endif %}
+ <li class='current'>{{ pager.number }}</li>
+ {% if pager.has_next %}
+ <li class="UI_Pagin_Action next">
+ <a title="" href="{% url person_libraries_page pager.next_page_number %}">Next</a>
+ <span></span>
+ </li>
+ {% endif %}
+ </ul>
+ {% endif %}
</ul>
{% endblock %}

0 comments on commit 9876577

Please sign in to comment.