mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
routers.html: add authenticated dashboard to homepage
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
af51b5c460
commit
5a175bd92a
6 changed files with 269 additions and 2 deletions
38
templates/partials/packages/requests.html
Normal file
38
templates/partials/packages/requests.html
Normal file
|
@ -0,0 +1,38 @@
|
|||
<table id="pkgreq-results" class="results">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ "Package" | tr }}</th>
|
||||
<th>{{ "Type" | tr }}</th>
|
||||
<th>{{ "Comments" | tr }}</th>
|
||||
<th>{{ "Filed by" | tr }}</th>
|
||||
<th>{{ "Date" | tr }}</th>
|
||||
<th>{{ "Status" | tr }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
{% for request in requests %}
|
||||
{% set requested = request.RequestTS | dt | as_timezone(timezone) %}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="/pkgbase/{{ request.PackageBase.Name }}">
|
||||
{{ request.PackageBase.Name }}
|
||||
</a>
|
||||
</td>
|
||||
<td>{{ request.RequestType.name_display() | tr }}</td>
|
||||
<td class="wrap">{{ request.Comments }}</td>
|
||||
<td>
|
||||
<a href="/account/{{ request.User.Username }}"
|
||||
title="{{ 'View account information for %s' | tr | format(request.User.Username) }}">
|
||||
{{ request.User.Username }}
|
||||
</a>
|
||||
</td>
|
||||
<td>{{ requested.strftime("%Y-%m-%d %H:%M") }}</td>
|
||||
<td>{{ request.status_display() | tr }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
Loading…
Add table
Add a link
Reference in a new issue