Commits

Viliam Segeda committed 1ce1546

enlarged admin icon

  • Participants
  • Parent commits f39514e

Comments (0)

Files changed (1)

File filebrowser_safe/templates/filebrowser/custom_field.html

-{% load mezzanine_tags i18n future %}
+{% load thumbnail i18n future %}
 <style>
 .mezz-fb-thumbnail {display:inline; margin-left:5px !important;}
-.mezz-fb-thumbnail img {width:20px; height:20px; margin-top:0 !important;}
+.mezz-fb-thumbnail img {width:100px; height:100px; margin-top:0 !important;}
 .vFileBrowseField {display:none;}
 </style>
 <input id="{{ final_attrs.id }}" type="text" class="vFileBrowseField" name="{{ final_attrs.name }}" value="{{ value }}" />
     <img src="{{ final_attrs.search_icon }}" alt="" />
 </a>
 {% ifequal value.filetype "Image" %}
-<p class="help mezz-fb-thumbnail" id="help_{{ final_attrs.id }}">
-    <a href="{{ value.url }}" target="_blank" id="link_{{ final_attrs.id }}">
-        <img id="image_{{ final_attrs.id }}" src="{{ MEDIA_URL }}{% thumbnail value.path 60 60 %}" class="preview" />
-    </a>
+<p class="help mezz-fb-thumbnail" id="help_{{ final_attrs.id }}">{% with thumbnailer=value.path|thumbnailer_passive %}
+    <a href="{{ MEDIA_URL }}{{ value.path }}" target="_blank" id="link_{{ final_attrs.id }}">
+        <img id="image_{{ final_attrs.id }}" src="{{ thumbnailer.report_admin_thumb.url }}" class="preview" />
+    </a>{% endwith %}
 </p>
 {% else %}
 <p class="help" id="help_{{ final_attrs.id }}" style="display: none;">