diff options
author | Dan McGee <dan@archlinux.org> | 2010-04-17 18:10:26 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-04-17 18:10:26 +0200 |
commit | ad33813bc14621911ea057b0143493a99048f4cb (patch) | |
tree | 02d1f455fd1d2c9b90b89ace2afffbd23ffbf574 /templates/public/index.html | |
parent | 8ea4aa21d15138461f5ebb8387c595ad8314828a (diff) | |
download | archweb-ad33813bc14621911ea057b0143493a99048f4cb.tar.gz archweb-ad33813bc14621911ea057b0143493a99048f4cb.tar.xz |
Improve front page recent updates list
Instead of linking the package name, link the architecture. This will
prevent the lost links we had when we collapsed the list to show multiple
architectures at the same time.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/public/index.html')
-rw-r--r-- | templates/public/index.html | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/templates/public/index.html b/templates/public/index.html index 9d05d13..cd2b6b2 100644 --- a/templates/public/index.html +++ b/templates/public/index.html @@ -57,11 +57,15 @@ <td><h3>Recent Updates</h3></td> <td style="vertical-align:top;text-align:right"><a href="/feeds/packages/"><img src="/media/rss.png" alt="RSS Feed" /></a></td> </tr> - {% for pkg in pkg_updates %} + {% for update in pkg_updates %} + {% with update|first as fpkg %} <tr> - <td><a href="{{ pkg.get_absolute_url }}" class="{{ pkg.repo.name|lower }}">{{ pkg.pkgname }} {{ pkg.pkgver }}-{{ pkg.pkgrel }}</a></td> - <td style="text-align:right">{{ pkg.allarches }}</td> + <td><span class="{{ fpkg.repo.name|lower }}">{{ fpkg.pkgname }} {{ fpkg.pkgver }}-{{ fpkg.pkgrel }}</span></td> + <td style="text-align:right"> + {% for pkg in update %}<a href="{{ pkg.get_absolute_url }}">{{ pkg.arch }}</a>{% if not forloop.last %}/{% endif %}{% endfor %} + </td> </tr> + {% endwith %} {% endfor %} <tr> <td style="font-size:x-small;white-space:nowrap;"><br /><a href="{% url feeds-list %}">More Feeds...</a></td> |