mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
feat(FastAPI): add /pkgbase/{name}/voters (get)
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
836af2d588
commit
fbd91f346a
3 changed files with 54 additions and 0 deletions
27
templates/pkgbase/voters.html
Normal file
27
templates/pkgbase/voters.html
Normal file
|
@ -0,0 +1,27 @@
|
|||
{% extends "partials/layout.html" %}
|
||||
|
||||
{% block pageContent %}
|
||||
<div class="box">
|
||||
<h2>
|
||||
{{ "Votes" | tr }} for
|
||||
<a href="/pkgbase/{{ pkgbase.Name }}">
|
||||
{{ pkgbase.Name }}
|
||||
</a>
|
||||
</h2>
|
||||
|
||||
<div class="boxbody">
|
||||
<ul>
|
||||
{% for pkg_vote in pkgbase.package_votes %}
|
||||
<li>
|
||||
<a href="/account/{{ pkg_vote.User.Username }}">
|
||||
{{ pkg_vote.User.Username }}
|
||||
</a>
|
||||
|
||||
{% set voted_at = pkg_vote.VoteTS | dt | as_timezone(timezone) %}
|
||||
({{ voted_at.strftime("%Y-%m-%d %H:%M") }})
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue