From 7f3d8c5098d23bb43b86e060700170cc41cd22aa Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Sat, 7 Sep 2013 21:04:40 +0200 Subject: permit multiple architectures per package While the importer can easily cope with this change, the web presentation still needs fixing. It works somewhat now. --- dedup/templates/binary.html | 9 +++++---- dedup/templates/compare.html | 14 ++++++-------- dedup/templates/hash.html | 2 +- 3 files changed, 12 insertions(+), 13 deletions(-) (limited to 'dedup/templates') diff --git a/dedup/templates/binary.html b/dedup/templates/binary.html index 46c4fa6..bf9aad8 100644 --- a/dedup/templates/binary.html +++ b/dedup/templates/binary.html @@ -1,6 +1,7 @@ {% extends "base.html" %} -{% block title %}duplication of {{ package|e }}{% endblock %} -{% block content %}

{{ package|e }}

+{% block title %}duplication of {{ package|e }}:{{ architecture|e }}{% endblock %} +{% block content %}

{{ package|e }}:{{ architecture|e }}

+

Package: {{ package|e }}

Version: {{ version|e }}

Architecture: {{ architecture|e }}

Number of files: {{ num_files }}

@@ -11,8 +12,8 @@ {%- for entry in sharing|sort(attribute="savable", reverse=true) -%} - {%- if entry.package %}{{ entry.package|e }}{% else %}self{% endif %} - compare + {%- if entry.package %}{{ entry.package|e }}:{{ entry.architecture|e}}{% else %}self{% endif %} + compare {%- endfor -%} 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 %} -

{{ details1.package|e }} <-> {{ details2.package|e }}

-

Version of {{ details1.package|e }}: {{ details1.version|e }}

-

Architecture of {{ details1.package|e }}: {{ details1.architecture|e }}

-{%- if details1.package != details2.package -%} -

Version of {{ details2.package|e }}: {{ details2.version|e }}

-

Architecture of {{ details2.package|e }}: {{ details2.architecture|e }}

+

{{ details1.package|e }}:{{ details1.architecture|e }} <-> {{ details2.package|e }}:{{ details2.architecture|e }}

+

Version of {{ details1.package|e }}:{{ details1.architecture|e }}: {{ details1.version|e }}

+{%- if details1.package != details2.package or details1.architecture != details2.architecture -%} +

Version of {{ details2.package|e }}:{{ details2.architecture|e }}: {{ details2.version|e }}

{%- endif -%} -
packagefiles shareddata shared
{{ entry.duplicate }} ({{ (100 * entry.duplicate / num_files)|int }}%) {{ entry.savable|filesizeformat }} ({{ (100 * entry.savable / total_size)|int }}%)
+
{{ details1.package|e }}{{ details2.package|e }}
{%- for entry in shared -%} 1 %} rowspan={{ entry.matches|length }}{% endif %}>{{ entry.size|filesizeformat }} 1 %} rowspan={{ entry.matches|length }}{% endif %}> diff --git a/dedup/templates/hash.html b/dedup/templates/hash.html index 7141f96..f700309 100644 --- a/dedup/templates/hash.html +++ b/dedup/templates/hash.html @@ -4,7 +4,7 @@

{{ function|e }} {{ hashvalue|e }}

{{ details1.package|e }}:{{ details1.architecture|e }}{{ details2.package|e }}:{{ details2.architecture|e }}
sizefilenamehash functionsfilename
{%- for entry in entries -%} - + {%- endfor -%} -- cgit v1.2.3
packagefilenamesizedifferent function
{{ entry.package|e }}
{{ entry.package|e }}:{{ entry.architecture|e }} {{ entry.filename|e }}{{ entry.size|filesizeformat }} {% if function != entry.function %}{{ entry.function|e }}{% endif %}