Permalink
Browse files

Added pagination for the profiles page

  • Loading branch information...
1 parent 4f27122 commit 6a4a8e3a8c7a1a8ee6982ab376bf396170f2ee28 @FlaviuSim FlaviuSim committed Mar 16, 2011
Showing with 9 additions and 13 deletions.
  1. +9 −13 templates/idios/profiles.html
@@ -3,6 +3,7 @@
{% load i18n %}
{% load account_tags %}
{% load pagination_tags %}
+{% load sorting_tags %}
{% block head_title %}{% trans "All Profiles" %}{% endblock %}
@@ -12,17 +13,19 @@ <h1>{% trans "All Profiles" %}</h1>
<p>Click table headers to sort</p>
-{% comment %}{% autopaginate users %}{% endcomment %}
+{% autosort users %}
+{% autopaginate users %}
+{% paginate %}
<table id="home-packages">
{{ request.user.admin }}
<thead>
<tr>
- <th>User Name</th>
- <th>Date Joined</th>
- <th>Staff</th>
+ <th>{% anchor username User Name %}</th>
+ <th>{% anchor date_joined Date Joined %}</th>
+ <th>{% anchor is_staff Staff %}</th>
{% if request.user.is_staff %}
<th>Active</th>
{% endif %}
@@ -59,16 +62,9 @@ <h1>{% trans "All Profiles" %}</h1>
</tbody>
</table>
-{% comment %}{% paginate %}{% endcomment %}
+{% paginate %}
{% endblock %}
{% block extra_body %}
- <script type="text/javascript">
- $(document).ready(function()
- {
- $("#home-packages").tablesorter();
- }
- );
- </script>
-{% endblock %}
+{% endblock %}

0 comments on commit 6a4a8e3

Please sign in to comment.