summaryrefslogtreecommitdiff
path: root/dedup/templates/source.html
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2013-07-27 09:32:03 +0200
committerHelmut Grohne <helmut@subdivi.de>2013-07-27 09:32:03 +0200
commit0c27c95a9c55b82b2c7e5e90b885c87578e895d0 (patch)
treef7b501e59dc15764a84ef9758f5b597e497719cf /dedup/templates/source.html
parent03e7e27b440917081369e797e09de975912cb68c (diff)
downloaddebian-dedup-0c27c95a9c55b82b2c7e5e90b885c87578e895d0.tar.gz
move templates to dedup package
They cluttered webapp.py and now vim can give proper highlighting for the templates.
Diffstat (limited to 'dedup/templates/source.html')
-rw-r--r--dedup/templates/source.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/dedup/templates/source.html b/dedup/templates/source.html
new file mode 100644
index 0000000..fc679b0
--- /dev/null
+++ b/dedup/templates/source.html
@@ -0,0 +1,15 @@
+{% extends "base.html" %}
+{% block title %}overview of {{ source|e }}{% endblock %}
+{% block content %}
+<h1>overview of {{ source|e }}</h1>
+<table border='1'><tr><th>binary from {{ source|e }}</th><th>savable</th><th>other package</th></tr>
+{%- for package, sharing in packages.items() -%}
+ <tr><td><a href="../binary/{{ package|e }}"><span class="binary-package">{{ package|e }}</span></a></td><td>
+ {%- if sharing -%}
+ {{ sharing.savable|filesizeformat }}</td><td><a href="../binary/{{ sharing.package|e }}"><span class="binary-package">{{ sharing.package|e }}</span></a> <a href="../compare/{{ package|e }}/{{ sharing.package|e }}">compare</a>
+ {%- else -%}</td><td>{%- endif -%}
+ </td></tr>
+{%- endfor -%}
+</table>
+<p>Note: Not all sharing listed here. Click on binary packages with non-zero savable to see more.</p>
+{% endblock %}