summaryrefslogtreecommitdiffstats
path: root/templates/packages
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-03-04 04:07:26 +0100
committerDan McGee <dan@archlinux.org>2010-03-06 22:37:02 +0100
commitd4155f7d0fcec64f45f713e5bfdd33db990023b0 (patch)
tree1cd1248a8ad7ee2425eb6b806b41880558bc6cbd /templates/packages
parent96b4c52f6d536e5fc21389b65528f2b116aa74ca (diff)
downloadarchweb-d4155f7d0fcec64f45f713e5bfdd33db990023b0.tar.gz
archweb-d4155f7d0fcec64f45f713e5bfdd33db990023b0.tar.xz
Use repo.testing flag instead of test-based checks
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/packages')
-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 496ca42..def0750 100644
--- a/templates/packages/details.html
+++ b/templates/packages/details.html
@@ -77,7 +77,7 @@
{% ifequal depend.pkg None %}
<li>{{ depend.dep.depname }} (virtual)</li>
{% else %}
- <li><a href="{{ depend.pkg.get_absolute_url }}">{{ depend.dep.depname }}</a>{{ depend.dep.depvcmp }}{% ifequal depend.pkg.repo.name "Testing" %} (testing){% endifequal %}</li>
+ <li><a href="{{ depend.pkg.get_absolute_url }}">{{ depend.dep.depname }}</a>{{ depend.dep.depvcmp }}{% if depend.pkg.repo.testing %} (testing){% endif %}</li>
{% endifequal %}
{% endfor %}
</ul>
@@ -92,7 +92,7 @@
{% if rqdby %}
<ul style="font-size:small;list-style:none">
{% for req in rqdby %}
- <li><a href="{{req.get_absolute_url}}">{{ req.pkgname }}</a>{% ifequal req.repo.name "Testing" %} (testing){% endifequal %}</li>
+ <li><a href="{{req.get_absolute_url}}">{{ req.pkgname }}</a>{% if req.repo.testing %} (testing){% endif %}</li>
{% endfor %}
</ul>
{% endif %}