summaryrefslogtreecommitdiffstats
path: root/templates/packages/differences.html
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-11-27 22:07:49 +0100
committerDan McGee <dan@archlinux.org>2013-11-27 22:07:49 +0100
commit58356ec5b38c71204895eb77856a45ffd7ac1725 (patch)
tree4b4700dc2d281fc61c1713b16204603334f442f2 /templates/packages/differences.html
parente557545ca803fa215b3a7f43f4c421dff1259fe3 (diff)
downloadarchweb-58356ec5b38c71204895eb77856a45ffd7ac1725.tar.gz
archweb-58356ec5b38c71204895eb77856a45ffd7ac1725.tar.xz
Allow pkg_details_link to honor package flag state
This allows the tag to be used in a few more places we weren't already able to use it, and hopefully speeds up rendering a tad on the package differences page. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/packages/differences.html')
-rw-r--r--templates/packages/differences.html8
1 files changed, 2 insertions, 6 deletions
diff --git a/templates/packages/differences.html b/templates/packages/differences.html
index f4d9315..5ebe18e 100644
--- a/templates/packages/differences.html
+++ b/templates/packages/differences.html
@@ -46,14 +46,10 @@
<td>{{ diff.pkgname }}</td>
<td>{{ diff.repo.name }}</td>
{% if diff.pkg_a %}
- <td><a href="{{ diff.pkg_a.get_absolute_url }}"
- title="View package details for {{ diff.pkg_a.pkgname }}">
- <span{% if diff.pkg_a.flag_date %} class="flagged"{% endif %}>{{ diff.pkg_a.full_version }}</span></a></td>
+ <td>{% pkg_details_link diff.pkg_a diff.pkg_a.full_version True %}</td>
{% else %}<td>-</td>{% endif %}
{% if diff.pkg_b %}
- <td><a href="{{ diff.pkg_b.get_absolute_url }}"
- title="View package details for {{ diff.pkg_b.pkgname }}">
- <span{% if diff.pkg_b.flag_date %} class="flagged"{% endif %}>{{ diff.pkg_b.full_version }}</span></a></td>
+ <td>{% pkg_details_link diff.pkg_b diff.pkg_b.full_version True %}</td>
{% else %}<td>-</td>{% endif %}
</tr>
{% endfor %}