<%= t('.size') %>
<%
thumbnail_sizes = RefinerySetting.find_or_set(:image_thumbnails, {})
(sizes = RefinerySetting.find_or_set(:image_dialogue_sizes, [:small, :medium, :large])).each_with_index do |size, index|
if thumbnail_sizes.keys.include?(size) and (pixels = thumbnail_sizes[size]).present?
pixels.to_s.gsub!(/[<>=]/, '')
-%>
-
<%= link_to size.to_s, "##{size}",
:rel => size.to_s,
:title => "#{size} image (#{pixels} px)",
:tooltip => "#{size} image (#{pixels} px)" %>
<% end
end -%>
<% end %>
<%= render :partial => "/shared/admin/form_actions",
:locals => {
:f => nil,
:cancel_url => '',
:submit_button_text => t('.submit_insert'),
:hide_cancel => false,
:hide_delete => true,
:cancel_title => nil
} if @app_dialog or @images.any? %>