Skip to content

Commit

Permalink
allow customisable thumbnail size in the image picker.
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
parndt committed Feb 7, 2012
1 parent 5b4db71 commit fc23691
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/app/views/refinery/admin/_image_picker.html.erb
Expand Up @@ -7,6 +7,8 @@
current_image_link_href = refinery.insert_admin_images_path(:dialog => true, :callback => "image_picker_#{randomiser}_changed",
:width => 866, :height => 510, :conditions => conditions)
current_image_title = t('.change', :what => description.titleize)

geometry ||= Refinery::Images.user_image_sizes[thumbnail.to_sym]
-%>
<div id='image_picker_container_<%= randomiser %>'>
<%= link_to t('.show'), '', :class => "current_image_toggler" if toggle_image_display %>
Expand All @@ -15,7 +17,7 @@
<div class='current_image_container' style="margin-top: 10px<%= ";display: none" if toggle_image_display %>">
<a class='current_image_link dialog' href="<%= current_image_link_href %>" style='border: 0px' title='<%= current_image_title %>' name='<%= current_image_title %>'>
<% unless image.nil? -%>
<%= image_fu image, Refinery::Images.user_image_sizes[thumbnail.to_sym],
<%= image_fu image, geometry,
:class => "brown_border",
:class => "current_picked_image" %>
<% else -%>
Expand Down

0 comments on commit fc23691

Please sign in to comment.