This commit is contained in:
Gregory Koberger 2011-01-20 15:41:48 -08:00
Родитель 2babd25871
Коммит 8c4ee60c4f
2 изменённых файлов: 13 добавлений и 13 удалений

Просмотреть файл

@ -66,11 +66,12 @@
<div id="file-list">
{% for form in preview_form.forms %}
<div class="preview">
<div class="preview-thumb">
{% if form.instance.id %}
<img src="{{ form.instance.thumbnail_url }}">
{% endif %}
</div>
{% if form.instance.id %}
<div class="preview-thumb" style="background-image:url({{ form.instance.thumbnail_url }})">
</div>
{% else %}
<div class="preview-thumb"></div>
{% endif %}
{{ form.id|safe }}
<span class="js-hidden delete">{{ form.DELETE|safe }}{{ form.DELETE.label_tag()|safe }}</span>
<div class="edit-previews-text">

Просмотреть файл

@ -86,11 +86,12 @@
{% for form in preview_form.forms %}
<div class="preview">
<span class="handle">&nbsp;</span>
<div class="preview-thumb">
{% if form.instance.id %}
<img src="{{ form.instance.thumbnail_url }}">
{% endif %}
</div>
{% if form.instance.id %}
<div class="preview-thumb" style="background-image:url({{ form.instance.thumbnail_url }})">
</div>
{% else %}
<div class="preview-thumb"></div>
{% endif %}
{{ form.id|safe }}
<span class="js-hidden delete">{{ form.DELETE|safe }}{{ form.DELETE.label_tag()|safe }}</span>
<div class="edit-previews-text">
@ -118,9 +119,7 @@
{% endif %}
{% else %}
{% for preview in addon.previews.all() %}
<div class="preview-thumb">
<img src="{{ preview.thumbnail_url }}">
</div>
<div class="preview-thumb" style="background-image:url({{ preview.thumbnail_url }})"></div>
{% endfor %}
{% endif %}
</td>