From 9df541f95f12d2fad5c9911008882b7ff35a9514 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 7 Sep 2010 16:04:56 -0500 Subject: Implement package difference filtering This is done as client-side JS which makes the page nice and fast. Minor versions can be excluded, as can packages in [multilib]. In addition, architecture filtering is in place so you can limit the subset of shown packages to those in any, both, one or the other. Signed-off-by: Dan McGee --- templates/packages/differences.html | 95 +++++++++++++++++++++++++++++++------ 1 file changed, 81 insertions(+), 14 deletions(-) (limited to 'templates') diff --git a/templates/packages/differences.html b/templates/packages/differences.html index 1c3e97e3..4c3b43c6 100644 --- a/templates/packages/differences.html +++ b/templates/packages/differences.html @@ -4,8 +4,30 @@ {% block content %} {% if differences %} -
+

Package Differences by Architecture

+

Filter Differences View

+
+
+ Select filter criteria +
+ +
+
+
+
+
+
+
+
+
+ +
@@ -16,19 +38,19 @@ - {% for name, repo, pkg1, pkg2 in differences %} - - - - {% if pkg1 %} - + {% for diff in differences %} + + + + {% if diff.pkg_a %} + {% else %}{% endif %} - {% if pkg2 %} - + {% if diff.pkg_b %} + {% else %}{% endif %} {% endfor %} @@ -38,8 +60,53 @@ {% load cdn %}{% jquery %} {% endif %} -- cgit v1.2.3-2-g168b
{{ name }}{{ repo.name }} - {{ pkg1.pkgver }}-{{ pkg1.pkgrel }}
{{ diff.pkgname }}{{ diff.repo.name }} + {{ diff.pkg_a.pkgver }}-{{ diff.pkg_a.pkgrel }}- - {{ pkg2.pkgver }}-{{ pkg2.pkgrel }} + {{ diff.pkg_b.pkgver }}-{{ diff.pkg_b.pkgrel }}-