feat(FastAPI): add /pkgbase/{name}/disown (get, post)

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-10-06 22:07:20 -07:00
parent 0a02df363a
commit 16d516c221
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
4 changed files with 186 additions and 7 deletions

View file

@ -121,13 +121,9 @@
{% endif %}
{% if request.user.has_credential("CRED_PKGBASE_DISOWN", approved=[pkgbase.Maintainer]) %}
<li>
<form action="/pkgbase/{{ result.Name }}/disown/" method="post">
<input type="submit"
class="button text-button"
name="do_Disown"
value="{{ 'Disown Package' | tr }}"
/>
</form>
<a href="/pkgbase/{{ result.Name }}/disown/">
{{ "Disown Package" | tr }}
</a>
</li>
{% endif %}
</ul>