From 0504fbeb92e83e92e1f1bc6e003bdb3f93c4318f Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 31 Mar 2011 01:48:19 -0500 Subject: Collapse all split and similar packages in recent updates list I was getting sick of seeing the *-i18n packages completely blow away anything else useful out of the recent updates sidebar. Revamp the logic here again to do something about it. As we did before, grab packages from the database and attempt to group them, but this time do it by only repo and pkgbase. From there, if we have packages in the group with a pkgname matching pkgbase, we will link just those. If not, we will create some stub objects that link to our relatively new virtual package overview screen. Signed-off-by: Dan McGee --- templates/public/index.html | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'templates/public/index.html') diff --git a/templates/public/index.html b/templates/public/index.html index 1f4b2ce5..132412f6 100644 --- a/templates/public/index.html +++ b/templates/public/index.html @@ -80,15 +80,13 @@

Recent Updates ( {% for update in pkg_updates %} - {% with update|first as fpkg %} - {{ fpkg.pkgname }} {{ fpkg.full_version }} - - {% for pkg in update %}{{ update.pkgbase }} {{ update.version }} + + {% for pkg in update.package_links %}{{ pkg.arch }}{% if not forloop.last %}/{% endif %}{% endfor %} - {% endwith %} {% endfor %} -- cgit v1.2.3-54-g00ecf