From ae5483c230d08c65d91eb7cece106b4f13a56232 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 25 Aug 2010 13:45:04 -0500 Subject: Package Differences by Architecture view Implements FS#20416. Port over the architecture differences view from archlinux.de and reimplement in Django with our DB schema. Also use a far simpler SQL query to do the dirty work rather than the triple UNION operation. This is accomplished by doing a bit more of the fetching work in code once we know what packages are actually involved. Signed-off-by: Dan McGee --- templates/packages/differences.html | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 templates/packages/differences.html (limited to 'templates/packages/differences.html') diff --git a/templates/packages/differences.html b/templates/packages/differences.html new file mode 100644 index 0000000..bc74901 --- /dev/null +++ b/templates/packages/differences.html @@ -0,0 +1,37 @@ +{% extends "base.html" %} +{% block title %}Arch Linux - Package Differences by Architecture{% endblock %} +{% block navbarclass %}anb-packages{% endblock %} + +{% block content %} +{% if differences %} +
+

Package Differences by Architecture

+ + + + + + + + + + + {% for name, repo, pkg1, pkg2 in differences %} + + + + {% if pkg1 %} + + {% else %}{% endif %} + {% if pkg2 %} + + {% else %}{% endif %} + + {% endfor %} + +
Package NameRepository{{ arch_a.name }} Version{{ arch_b.name }} Version
{{ name }}{{ repo.name }}{{ pkg1.pkgver }}-{{ pkg1.pkgrel }}-{{ pkg2.pkgver }}-{{ pkg2.pkgrel }}-
+
+{% endif %} +{% endblock %} -- cgit v1.2.3-24-g4f1b