From 0c27c95a9c55b82b2c7e5e90b885c87578e895d0 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Sat, 27 Jul 2013 09:32:03 +0200 Subject: move templates to dedup package They cluttered webapp.py and now vim can give proper highlighting for the templates. --- dedup/templates/compare.html | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 dedup/templates/compare.html (limited to 'dedup/templates/compare.html') diff --git a/dedup/templates/compare.html b/dedup/templates/compare.html new file mode 100644 index 0000000..f78e80f --- /dev/null +++ b/dedup/templates/compare.html @@ -0,0 +1,27 @@ +{% extends "base.html" %} +{% block title %}sharing between {{ details1.package|e }} and {{ details2.package|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 }}

+{%- endif -%} + + +{%- for entry in shared -%} + 1 %} rowspan={{ entry.matches|length }}{% endif %}>{{ entry.size|filesizeformat }} 1 %} rowspan={{ entry.matches|length }}{% endif %}> + {%- for filename in entry.filenames %}{{ filename|e }}{% endfor -%} + {%- endfor -%} +{%- endfor -%} +
{{ details1.package|e }}{{ details2.package|e }}
sizefilenamehash functionsfilename
+ {% for filename, match in entry.matches.items() -%} + {% if not loop.first %}
{% endif -%} + {%- for funccomb, hashvalue in match.items() -%} + {{ funccomb[0]|e }} + {%- if funccomb[0] != funccomb[1] %} -> {{ funccomb[1]|e }}{% endif %} + {%- if not loop.last %}, {% endif %} + {%- endfor -%} + {{ filename|e }}
+{% endblock %} -- cgit v1.2.3