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/binary.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/binary.html')
-rw-r--r-- | dedup/templates/binary.html | 9 |
1 files changed, 5 insertions, 4 deletions
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 %}<h1>{{ package|e }}</h1> +{% block title %}duplication of {{ package|e }}:{{ architecture|e }}{% endblock %} +{% block content %}<h1>{{ package|e }}:{{ architecture|e }}</h1> +<p>Package: {{ package|e }}</p> <p>Version: {{ version|e }}</p> <p>Architecture: {{ architecture|e }}</p> <p>Number of files: {{ num_files }}</p> @@ -11,8 +12,8 @@ <table border='1'><tr><th>package</th><th>files shared</th><th>data shared</th></tr> {%- for entry in sharing|sort(attribute="savable", reverse=true) -%} <tr><td{% if not entry.package or entry.package in dependencies %} class="dependency"{% endif %}> - {%- if entry.package %}<a href="{{ entry.package|e }}"><span class="binary-package">{{ entry.package|e }}</span></a>{% else %}self{% endif %} - <a href="../compare/{{ package|e }}/{{ entry.package|default(package, true)|e }}">compare</a></td> + {%- if entry.package %}<a href="./{{ entry.package|e }}:{{ entry.architecture|e }}"><span class="binary-package">{{ entry.package|e }}:{{ entry.architecture|e}}</span></a>{% else %}self{% endif %} + <a href="../compare/{{ package|e }}:{{ architecture|e }}/{{ entry.package|default(package, true)|e }}:{{ entry.architecture|default(architecture, true)|e }}">compare</a></td> <td>{{ entry.duplicate }} ({{ (100 * entry.duplicate / num_files)|int }}%)</td> <td>{{ entry.savable|filesizeformat }} ({{ (100 * entry.savable / total_size)|int }}%)</td></tr> {%- endfor -%} |