mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
parent
8ffd02651c
commit
e758389b10
1 changed files with 11 additions and 2 deletions
|
@ -127,9 +127,18 @@
|
|||
</button>
|
||||
</th>
|
||||
<th scope="col">
|
||||
<a href="?sort_by=last_active{{ ' asc' if sort_by == 'last_active desc' else ' desc' }}" title="{{ _('Sort by recent activity') }}" rel="nofollow">{{ _('Active') }}
|
||||
<button
|
||||
hx-get="/communities"
|
||||
hx-vals='{"sort_by": "last_active{{ ' asc' if sort_by == 'last_active desc' else ' desc' }}"}'
|
||||
hx-include="form[action='/communities']"
|
||||
hx-target="body"
|
||||
hx-push-url="true"
|
||||
title="{{ _('Sort by recent activity') }}"
|
||||
class="btn"
|
||||
>
|
||||
{{ _('Active') }}
|
||||
<span class="{{ 'fe fe-chevron-up' if sort_by == 'last_active asc' }}{{ 'fe fe-chevron-down' if sort_by == 'last_active desc' }}"></span>
|
||||
</a>
|
||||
</button>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
|
Loading…
Add table
Reference in a new issue