upgrade template to django 1.5 url syntax

This commit is contained in:
Simone Federici
2014-06-15 10:38:26 +02:00
parent 86afb71314
commit 320c701d12
6 changed files with 9 additions and 9 deletions

View File

@@ -50,8 +50,8 @@
{% for page in pages %}
{#{% get_document_size object %}#}
<div class="{% if forloop.counter > 1 and not forloop.last %}break{% endif %}">
{#<img src="{% url document_display_print object.id %}?page={{ page.page_number }}" {% if document_aspect > page_aspect %}width="97%"{% else %}height="97%"{% endif %} />#}
<img src="{% url document_display_print object.id %}?page={{ page.page_number }}" />
{#<img src="{% url 'document_display_print' object.id %}?page={{ page.page_number }}" {% if document_aspect > page_aspect %}width="97%"{% else %}height="97%"{% endif %} />#}
<img src="{% url 'document_display_print' object.id %}?page={{ page.page_number }}" />
</div>
{% endfor %}