kopia lustrzana https://github.com/hholzgra/maposmatic/
Add the file size information in the map template
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 <maxime.petazzoni@bulix.org>stable
rodzic
8255775d6b
commit
7f8914efa8
|
@ -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." %}
|
||||
|
|
Ładowanie…
Reference in New Issue