mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix: package description on /packages/{name} view
...What in the world happened here. We were literally just populating `pkg` based on `pkgbase.packages.first()`. We should have been focusing on the package passed by the context, which is always available when `show_package_details` is true. Closes #384 Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
83ddbd220f
commit
0388b12896
1 changed files with 3 additions and 4 deletions
|
@ -1,4 +1,3 @@
|
||||||
{% set pkg = pkgbase.packages.first() %}
|
|
||||||
<table id="pkginfo">
|
<table id="pkginfo">
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{ "Git Clone URL" | tr }}:</th>
|
<th>{{ "Git Clone URL" | tr }}:</th>
|
||||||
|
@ -20,13 +19,13 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{ "Description" | tr }}:</th>
|
<th>{{ "Description" | tr }}:</th>
|
||||||
<td class="wrap">{{ pkg.Description }}</td>
|
<td class="wrap">{{ package.Description }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{ "Upstream URL" | tr }}:</th>
|
<th>{{ "Upstream URL" | tr }}:</th>
|
||||||
<td class="wrap">
|
<td class="wrap">
|
||||||
{% if pkg.URL %}
|
{% if package.URL %}
|
||||||
<a href="{{ pkg.URL }}">{{ pkg.URL }}</a>
|
<a href="{{ package.URL }}">{{ package.URL }}</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ "None" | tr }}
|
{{ "None" | tr }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue