feat(FastAPI): add /pkgbase/{name}/voters (get)

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-09-22 18:33:58 -07:00
parent 836af2d588
commit fbd91f346a
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
3 changed files with 54 additions and 0 deletions

View 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 %}