mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-03 00:31:25 -08:00
parent
8ffd02651c
commit
e758389b10
1 changed files with 11 additions and 2 deletions
|
@ -127,9 +127,18 @@
|
||||||
</button>
|
</button>
|
||||||
</th>
|
</th>
|
||||||
<th scope="col">
|
<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>
|
<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>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
Loading…
Add table
Reference in a new issue