Skip to content

Commit

Permalink
table sorter
Browse files Browse the repository at this point in the history
  • Loading branch information
cormachallinanderilinx committed Oct 15, 2024
1 parent d61d31a commit e3ce22b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ckanext/iati/theme/templates/user/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ <h1 class="page-heading">
<thead>
<tr>
<th title="Sort by name">Name</th>
<th title="Sort by name">Username</th>
<th title="Sort by email">Email</th>
<th title="Sort by created">Date Created</th>
<th title="Sort by number of datasets">Datasets Created</th>
Expand All @@ -35,6 +36,7 @@ <h1 class="page-heading">
<td>
<li>{{ h.linked_user(user['name'], maxlength=80) }}</li>
</td>
<td>{{ user.name }}</td>
<td>{{ user.email }}</td>
<td>{{ h.render_datetime(user.created) }}</td>
<td>{{ h.SI_number_span(user.number_created_packages) }}</td>
Expand All @@ -61,3 +63,9 @@ <h1 class="page-heading">
{% block secondary_content %}
{% snippet 'user/snippets/user_search.html', q=q %}
{% endblock %}

{% block scripts %}
{{ super() }}
{% asset 'ckanext-iati/table_sorter' %}
{% endblock %}

0 comments on commit e3ce22b

Please sign in to comment.