Skip to content

Commit 9474997

Browse files
committed
fix: editing buttons missing in admin when file present
Fixes #1499
1 parent 8f7f96f commit 9474997

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

filer/templates/admin/filer/widgets/admin_file.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</span>
1515
</div>
1616

17-
<div class="js-filer-dropzone filer-dropzone{% if object %} js-object-attached{% endif %}"
17+
<div class="js-filer-dropzone filer-dropzone{% if object %} js-object-attached{% endif %} "
1818
data-url="{% url 'admin:filer-ajax_upload' %}"
1919
data-max-files="1"
2020
{% if max_filesize %}data-max-filesize="{{ max_filesize|safe }}"{% endif %}>
@@ -26,7 +26,7 @@
2626
<span class="filerFile js-file-selector">
2727
{% if object %}
2828
{% if object.file.exists %}
29-
<a href="{{ object.url }}" target="_blank">{% file_icon object detail=True %}</a>
29+
<a href="{{ object.url }}" target="_blank">{% file_icon object detail="thumbnail" %}</a>
3030
&nbsp;<span class="description_text">{{ object.label }}</span>
3131
{% else %}
3232
{% file_icon object %}

0 commit comments

Comments
 (0)