diff options
author | Helmut Grohne <helmut@subdivi.de> | 2013-05-02 18:48:14 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2013-05-02 18:48:14 +0200 |
commit | 6e3a71007a468356201fe1e9e6014a05392d1a7b (patch) | |
tree | e3c63ac6f145867832ede62d678ef396d4ade11c /webapp.py | |
parent | d1300055ec319e6638be66df232a8f5883f6e024 (diff) | |
download | debian-dedup-6e3a71007a468356201fe1e9e6014a05392d1a7b.tar.gz |
webapp: reduce size of comparison output
Only add rowspan when it carries a meaning.
Diffstat (limited to 'webapp.py')
-rwxr-xr-x | webapp.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 -%} |