mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
`get_pkgbase` has been replaced with `get_pkg_or_base`, which is quite similar, but it does take a new `cls` keyword argument which is to be the model class which we search for via its `Name` column. Additionally, this change fixes a bug in the `/packages/{name}` route by supplying the Package object in question to the context and modifying the template to use it instead of a hacky through-base workaround. Examples: pkgbase = get_pkg_or_base("some_pkgbase_name", PackageBase) pkg = get_pkg_or_base("some_package_name", Package) Signed-off-by: Kevin Morris <kevr@0cost.org>
24 lines
745 B
HTML
24 lines
745 B
HTML
{% extends "partials/layout.html" %}
|
|
|
|
{% block pageContent %}
|
|
{% include "partials/packages/search.html" %}
|
|
<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 %}
|
|
{% include "partials/packages/details.html" %}
|
|
|
|
<div id="metadata">
|
|
{% include "partials/packages/package_metadata.html" %}
|
|
</div>
|
|
</div>
|
|
|
|
{% set pkgname = result.Name %}
|
|
{% set pkgbase_id = result.ID %}
|
|
{% if comments.count() %}
|
|
{% include "partials/packages/comments.html" %}
|
|
{% endif %}
|
|
{% endblock %}
|