summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-05-04 17:49:33 +0200
committerDan McGee <dan@archlinux.org>2010-05-04 17:49:33 +0200
commitc546630ad8609bf30b6ac24326bc7f04aac8d99c (patch)
tree912dfad91a5facdde7586542fd31a77d6e405592 /templates
parentc4a953c38834fb168309306f7d4f8949165d16dd (diff)
downloadarchweb-c546630ad8609bf30b6ac24326bc7f04aac8d99c.tar.gz
archweb-c546630ad8609bf30b6ac24326bc7f04aac8d99c.tar.xz
Fix invalid template syntax
Django 1.1 doesn't support arbitrary logic in if statements, but we can use ifnotequal instead. Fixes breakage from commit 58566e. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates')
-rw-r--r--templates/packages/details.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/packages/details.html b/templates/packages/details.html
index 099b8c6..78209d8 100644
--- a/templates/packages/details.html
+++ b/templates/packages/details.html
@@ -38,10 +38,10 @@
</tr><tr>
<th>Repository:</th>
<td>{{ pkg.repo.name|capfirst }}</td>
- </tr>{% if pkg.pkgname != pkg.pkgbase %}<tr>
+ </tr>{% ifnotequal pkg.pkgname pkg.pkgbase %}<tr>
<th>Base Package Name:</th>
<td>{{ pkg.pkgbase }}</td>
- </tr>{% endif %}<tr>
+ </tr>{% endifnotequal %}<tr>
<th>Description:</th>
<td>{% if pkg.pkgdesc %}{{ pkg.pkgdesc }}{% endif %}</td>
</tr><tr>