diff options
-rw-r--r-- | public/utils.py | 7 | ||||
-rw-r--r-- | sitestatic/archweb.css | 8 | ||||
-rw-r--r-- | templates/public/index.html | 2 |
3 files changed, 10 insertions, 7 deletions
diff --git a/public/utils.py b/public/utils.py index 30c76ac..6566b8c 100644 --- a/public/utils.py +++ b/public/utils.py @@ -11,6 +11,13 @@ class RecentUpdate(object): self.pkgbase = first.pkgbase self.repo = first.repo self.version = '' + self.classes = set() + + self.classes.add(self.repo.name.lower()) + if self.repo.testing: + self.classes.add('testing') + if self.repo.staging: + self.classes.add('staging') packages = sorted(packages, key=attrgetter('arch', 'pkgname')) # split the packages into two lists. we need to prefer packages diff --git a/sitestatic/archweb.css b/sitestatic/archweb.css index 3407cb4..46fd784 100644 --- a/sitestatic/archweb.css +++ b/sitestatic/archweb.css @@ -481,15 +481,11 @@ h3 span.arrow { text-align: right; } - #pkg-updates span.testing, - #pkg-updates span.community-testing, - span.multilib-testing { + #pkg-updates span.testing { font-style: italic; } - #pkg-updates span.staging, - #pkg-updates span.community-staging, - span.multilib-staging { + #pkg-updates span.staging { font-style: italic; color: #ff8040; } 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 %} |