diff options
author | Helmut Grohne <helmut@subdivi.de> | 2013-09-07 21:04:40 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2013-09-07 21:04:40 +0200 |
commit | 7f3d8c5098d23bb43b86e060700170cc41cd22aa (patch) | |
tree | 5e0ee4d269259b4b0d205d1f89895d8f46cccf93 /dedup/templates/compare.html | |
parent | 49cac8bdae0ec787372d227545411ef14905d6a8 (diff) | |
download | debian-dedup-7f3d8c5098d23bb43b86e060700170cc41cd22aa.tar.gz |
permit multiple architectures per package
While the importer can easily cope with this change, the web
presentation still needs fixing. It works somewhat now.
Diffstat (limited to 'dedup/templates/compare.html')
-rw-r--r-- | dedup/templates/compare.html | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/dedup/templates/compare.html b/dedup/templates/compare.html index f78e80f..7d4564c 100644 --- a/dedup/templates/compare.html +++ b/dedup/templates/compare.html @@ -1,14 +1,12 @@ {% extends "base.html" %} -{% block title %}sharing between {{ details1.package|e }} and {{ details2.package|e }}{% endblock%} +{% block title %}sharing between {{ details1.package|e }}:{{ details1.architecture|e }} and {{ details2.package|e }}:{{ details2.architecture|e }}{% endblock%} {% block content %} -<h1><a href="../../binary/{{ details1.package|e }}">{{ details1.package|e }}</a> <-> <a href="../../binary/{{ details2.package|e }}">{{ details2.package|e }}</a></h1> -<p>Version of {{ details1.package|e }}: {{ details1.version|e }}</p> -<p>Architecture of {{ details1.package|e }}: {{ details1.architecture|e }}</p> -{%- if details1.package != details2.package -%} -<p>Version of {{ details2.package|e }}: {{ details2.version|e }}</p> -<p>Architecture of {{ details2.package|e }}: {{ details2.architecture|e }}</p> +<h1><a href="../../binary/{{ details1.package|e }}:{{ details1.architecture|e }}">{{ details1.package|e }}:{{ details1.architecture|e }}</a> <-> <a href="../../binary/{{ details2.package|e }}:{{ details2.architecture|e }}">{{ details2.package|e }}:{{ details2.architecture|e }}</a></h1> +<p>Version of {{ details1.package|e }}:{{ details1.architecture|e }}: {{ details1.version|e }}</p> +{%- if details1.package != details2.package or details1.architecture != details2.architecture -%} +<p>Version of {{ details2.package|e }}:{{ details2.architecture|e }}: {{ details2.version|e }}</p> {%- endif -%} -<table border='1'><tr><th colspan="2">{{ details1.package|e }}</th><th colspan="2">{{ details2.package|e }}</th></tr> +<table border='1'><tr><th colspan="2">{{ details1.package|e }}:{{ details1.architecture|e }}</th><th colspan="2">{{ details2.package|e }}:{{ details2.architecture|e }}</th></tr> <tr><th>size</th><th>filename</th><th>hash functions</th><th>filename</th></tr> {%- for entry in shared -%} <tr><td{% if entry.matches|length > 1 %} rowspan={{ entry.matches|length }}{% endif %}>{{ entry.size|filesizeformat }}</td><td{% if entry.matches|length > 1 %} rowspan={{ entry.matches|length }}{% endif %}> |