[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Maposmatic-dev] [PATCH maposmatic] Add the file size information in the
From: |
Maxime Petazzoni |
Subject: |
[Maposmatic-dev] [PATCH maposmatic] Add the file size information in the map template |
Date: |
Thu, 4 Feb 2010 22:39:09 +0100 |
The rendered files sizes information was added to the job template, but
not to the map template for the maps page. This change fixes that, so we
have the info everywhere.
Signed-off-by: Maxime Petazzoni <address@hidden>
---
www/templates/maposmatic/map.html | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/www/templates/maposmatic/map.html
b/www/templates/maposmatic/map.html
index df094ff..0d1febc 100644
--- a/www/templates/maposmatic/map.html
+++ b/www/templates/maposmatic/map.html
@@ -42,10 +42,10 @@
<p>{% trans "Rendering completed on" %} {{ job.endofrendering_time|date:"l
d M Y\, H:i:s" }}.</p>
{% if job.has_output_files %}
- <strong>{% trans "Files: " %}</strong>
+ <h4>{% trans "Files: " %}</h4>
<ul>
- <li>{% trans "Map: " %} {% for file in job.output_files.maps %}<a
href="{{ file.1 }}" title="{{ file.2 }}">{{ file.0|upper }}</a>{% if not
forloop.last %}, {% endif %}{% endfor %}.</li>
- <li>{% trans "Index: " %} {% for file in job.output_files.indeces %}<a
href="{{ file.1 }}" title="{{ file.2 }}">{{ file.0|upper }}</a>{% if not
forloop.last %}, {% endif %}{% endfor %}.</li>
+ <li>{% trans "Map: " %} {% for file in job.output_files.maps %}<a
href="{{ file.1 }}" title="{{ file.2 }}">{{ file.0|upper }}</a> ({{
file.3|filesizeformat }}){% if not forloop.last %}, {% endif %}{% endfor
%}.</li>
+ <li>{% trans "Index: " %} {% for file in job.output_files.indeces %}<a
href="{{ file.1 }}" title="{{ file.2 }}">{{ file.0|upper }}</a> ({{
file.3|filesizeformat }}){% if not forloop.last %}, {% endif %}{% endfor
%}.</li>
</ul>
{% else %}
{% trans "The generated files are no longer available." %}
--
1.6.3.3.277.g88938c
- [Maposmatic-dev] [PATCH maposmatic] Add the file size information in the map template,
Maxime Petazzoni <=