Улучшил читаемость кода:

This commit is contained in:
2015-11-14 17:50:49 +05:00
parent a7511b14b7
commit 2d42e910d0

View File

@@ -34,7 +34,13 @@
{% if sketch_list %}
<ul id = "list">
{% for sketch in sketch_list %}
<li id="sketch"> {% thumbnail sketch.sketch_file "200x200" crop="center" as im %} <a class = "sketch_img" href = {{sketch.sketch_file.url}}> <img src = "{{ im.url }}"/> </a>{% endthumbnail %} <a class = "del_icon" title = "Удалить" href= "{% url 'asuzr-del-sketch' %}?pk={{sketch.id}}"><img src = "{% static "del.png" %}"/></a></li>
<li id="sketch">
{% thumbnail sketch.sketch_file "200x200" crop="center" as im %}
<a class = "sketch_img" href = {{sketch.sketch_file.url}}>
<img src = "{{ im.url }}"/>
</a>
{% endthumbnail %}
<a class = "del_icon" title = "Удалить" href= "{% url 'asuzr-del-sketch' %}?pk={{sketch.id}}"><img src = "{% static "del.png" %}"/></a></li>
{% endfor %}
</ul>
{% endif %}