mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
With our FastAPI server, trailing slashes causes a 307 redirect which ends up redirecting users to routes which do not contain trailing slashes. This removes trailing slashes from our templates where FastAPI is concerned to avoid unnecessary redirects. There may still be links or usages around which have unnecessary usages of a trailing slash; please keep a look out for these and remove them where possible. Signed-off-by: Kevin Morris <kevr@0cost.org>
82 lines
2.8 KiB
HTML
82 lines
2.8 KiB
HTML
<table class="results users">
|
|
<thead>
|
|
<tr>
|
|
<th>{{ "Username" | tr }}</th>
|
|
<th>{{ "Type" | tr }}</th>
|
|
<th>{{ "Status" | tr }}</th>
|
|
<th>{{ "Real Name" | tr }}</th>
|
|
<th>{{ "IRC Nick" | tr }}</th>
|
|
<th>{{ "PGP Key Fingerprint" | tr }}</th>
|
|
<th>{{ "Edit Account" | tr }}</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
{% for user in users %}
|
|
<tr>
|
|
<td>
|
|
<a href="/packages/?K={{ user.Username }}&SeB=m">
|
|
{{ user.Username }}
|
|
</a>
|
|
</td>
|
|
<td>{{ user.AccountType.AccountType }}</td>
|
|
<td>{{ "Suspended" if user.Suspended else "Active" }}</td>
|
|
<td>{{ user.RealName | e }}</td>
|
|
<td>{{ user.IRCNick | e }}</td>
|
|
<td>{{ user.PGPKey or '' | e }}</td>
|
|
<td>
|
|
{% if request.user.can_edit_user(user) %}
|
|
<a href="/account/{{ user.Username }}/edit">
|
|
{{ "Edit" | tr }}
|
|
</a>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<table class="results">
|
|
<tr>
|
|
<td align="left">
|
|
<form action="/accounts" method="post">
|
|
<fieldset>
|
|
<input type="hidden" name="O"
|
|
value="{{ offset - pp }}" />
|
|
{% for k, v in params.items() %}
|
|
<input type="hidden" name="{{ k }}"
|
|
value="{{ v }}" />
|
|
{% endfor %}
|
|
<button type="submit" class="button page-prev"
|
|
{% if offset <= 0 %}
|
|
disabled
|
|
{% endif %}
|
|
>
|
|
<-- {{ "Less" | tr }}
|
|
</button>
|
|
</fieldset>
|
|
</form>
|
|
</td>
|
|
<td align="right">
|
|
<form action="/accounts" method="post">
|
|
<fieldset>
|
|
<input type="hidden" name="O"
|
|
value="{{ offset + pp }}" />
|
|
{% for k, v in params.items() %}
|
|
<input type="hidden" name="{{ k }}"
|
|
value="{{ v }}" />
|
|
{% endfor %}
|
|
<button type="submit" class="button page-next"
|
|
{% if offset + pp >= total_users %}
|
|
disabled
|
|
{% endif %}
|
|
>
|
|
{{ "More" | tr }}-->
|
|
</button>
|
|
</fieldset>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|