summaryrefslogtreecommitdiffstats
path: root/templates/public
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-12-09 16:29:15 +0100
committerDan McGee <dan@archlinux.org>2011-12-09 16:29:15 +0100
commit73cd4adf9ff2b38124501fba1a7d9800e4c1f0d0 (patch)
tree10a0babc56899d5957cb4788a8c2e861ec647910 /templates/public
parent4fa709ea86c8eefac05a848187fc7281edff8fa9 (diff)
downloadarchweb-73cd4adf9ff2b38124501fba1a7d9800e4c1f0d0.tar.gz
archweb-73cd4adf9ff2b38124501fba1a7d9800e4c1f0d0.tar.xz
Add CSS classes to front page package update objects
This adds the repo name, 'staging', and 'testing' as appropriate to a classes field on the package updates object. This means we don't have to update the CSS stylesheet to include hardcoded names of repositories (e.g., 'kde-unstable'). Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/public')
-rw-r--r--templates/public/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/public/index.html b/templates/public/index.html
index 4bd26f6..24e6155 100644
--- a/templates/public/index.html
+++ b/templates/public/index.html
@@ -104,7 +104,7 @@
<table>
{% for update in pkg_updates %}
<tr>
- <td class="pkg-name"><span class="{{ update.repo|lower }}">{{ update.pkgbase }} {{ update.version }}</span></td>
+ <td class="pkg-name"><span class="{{ update.classes|join:' ' }}">{{ update.pkgbase }} {{ update.version }}</span></td>
<td class="pkg-arch">
{% for pkg in update.package_links %}<a href="{{ pkg.get_absolute_url }}"
title="Details for {{ pkg.pkgname }} [{{ pkg.repo|lower }}]">{{ pkg.arch }}</a>{% if not forloop.last %}/{% endif %}{% endfor %}