summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2013-05-02 18:48:14 +0200
committerHelmut Grohne <helmut@subdivi.de>2013-05-02 18:48:14 +0200
commit6e3a71007a468356201fe1e9e6014a05392d1a7b (patch)
treee3c63ac6f145867832ede62d678ef396d4ade11c
parentd1300055ec319e6638be66df232a8f5883f6e024 (diff)
downloaddebian-dedup-6e3a71007a468356201fe1e9e6014a05392d1a7b.tar.gz
webapp: reduce size of comparison output
Only add rowspan when it carries a meaning.
-rwxr-xr-xwebapp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp.py b/webapp.py
index 345bb40..2cc8a7e 100755
--- a/webapp.py
+++ b/webapp.py
@@ -78,7 +78,7 @@ detail_template = jinjaenv.from_string(
<table border='1'><tr><th colspan="2">{{ details1.package|e }}</th><th colspan="2">{{ details2.package|e }}</th></tr>
<tr><th>size</th><th>filename</th><th>hash functions</th><th>filename</th></tr>
{%- for entry in shared -%}
- <tr><td rowspan={{ entry.matches|length }}>{{ entry.size|format_size }}</td><td rowspan={{ entry.matches|length }}>
+ <tr><td{% if entry.matches|length > 1 %} rowspan={{ entry.matches|length }}{% endif %}>{{ entry.size|format_size }}</td><td{% if entry.matches|length > 1 %} rowspan={{ entry.matches|length }}{% endif %}>
{%- for filename in entry.filenames %}<span class="filename">{{ filename|e }}</span>{% endfor -%}</td><td>
{% for filename, match in entry.matches.items() -%}
{% if not loop.first %}<tr><td>{% endif -%}