mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Slight markup changes, same style overall and same form parameters as the PHP implementation. In addition, we've disabled the "left" and "right" navigation buttons when we're at the border of the table. CSS Changes: - Added similar styling to submit `<buttons>` that submit `<input>` had. - Added .results tr td[align="{left,right}"] styling to align the result table's `More -->` button to the right of the table. 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>
|
|
|