From 793f9a8d1b9accb7379544e4bda36e2185ab2ea5 Mon Sep 17 00:00:00 2001 From: Helmut Grohne <helmut@subdivi.de> Date: Thu, 25 Apr 2013 14:01:11 +0200 Subject: webapp: make filenames css styleable --- webapp.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'webapp.py') diff --git a/webapp.py b/webapp.py index d5aa617..44f0e8a 100755 --- a/webapp.py +++ b/webapp.py @@ -79,15 +79,15 @@ detail_template = jinjaenv.from_string( <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 }}> - {%- for filename in entry.filenames %}{{ filename|e }}{% if not loop.last %}<br>{% endif %}{% endfor -%}</td><td> + {%- for filename in entry.filenames %}<span class="filename">{{ filename|e }}</span>{% if not loop.last %}<br>{% endif %}{% endfor -%}</td><td> {% for filename, match in entry.matches.items() -%} {% if not loop.first %}<tr><td>{% endif -%} {%- for funccomb, hashvalue in match.items() -%} <a href="../../hash/{{ funccomb[0]|e }}/{{ hashvalue|e }}">{{ funccomb[0]|e }}</a> {%- if funccomb[0] != funccomb[1] %} -> <a href="../../hash/{{ funccomb[1]|e }}/{{ hashvalue|e }}">{{ funccomb[1]|e }}</a>{% endif %} {%- if not loop.last %}, {% endif %} - {%- endfor %}</td><td> - {{- filename|e }}</td></tr> + {%- endfor -%} + </td><td><span class="filename">{{ filename|e }}</span></td></tr> {%- endfor -%} {%- endfor -%} </table> @@ -101,7 +101,7 @@ hash_template = jinjaenv.from_string( <table border='1'><tr><th>package</th><th>filename</th><th>size</th><th>different function</th></tr> {%- for entry in entries -%} <tr><td><a href="../../binary/{{ entry.package|e }}">{{ entry.package|e }}</a></td> - <td>{{ entry.filename|e }}</td><td>{{ entry.size|format_size }}</td> + <td><span class="filename">{{ entry.filename|e }}</span></td><td>{{ entry.size|format_size }}</td> <td>{% if function != entry.function %}{{ entry.function|e }}{% endif %}</td></tr> {%- endfor -%} </table> -- cgit v1.2.3