mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(FastAPI): use pkgbase in package actions
Previously, `result` was being used which was directly set to `pkgbase` before rendering the actions.html partial. It didn't make much sense. This commit cleans things up a bit. Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
2d46811c45
commit
8040ef5a9c
2 changed files with 20 additions and 21 deletions
|
@ -5,7 +5,6 @@
|
|||
<div id="pkgdetails" class="box">
|
||||
<h2>{{ 'Package Details' | tr }}: {{ package.Name }} {{ package.Version }}</h2>
|
||||
|
||||
{% set result = pkgbase %}
|
||||
{% include "partials/packages/actions.html" %}
|
||||
|
||||
{% set show_package_details = True %}
|
||||
|
@ -16,7 +15,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
{% set pkgname = result.Name %}
|
||||
{% set pkgbase_id = result.ID %}
|
||||
{% set pkgname = package.Name %}
|
||||
{% set pkgbase_id = pkgbase.ID %}
|
||||
{% include "partials/packages/comments.html" %}
|
||||
{% endblock %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue