<% content_for :javascripts do %> <%= javascript_include_tag "refinery/vimeo_videos" %> <% end %> <% description ||= 'vimeo_video' thumbnail ||= 'medium' toggle_vimeo_video_display ||= false randomiser = rand(Time.now.yesterday.to_i * Time.now.to_i) current_vimeo_video_link_href = insert_admin_vimeo_videos_url(:dialog => true, :callback => "vimeo_video_picker_#{randomiser}_changed", :width => 866, :height => 510) current_vimeo_video_title = t('.change', :what => description.titleize) -%>
<%= link_to t('.show'), '', :class => "current_vimeo_video_toggler" if toggle_vimeo_video_display %> <%= f.hidden_field field, :class => "current_vimeo_video_id" -%>
style="margin-top: 10px;"> <% unless vimeo_video.nil? -%> <%= image_fu vimeo_video.image, ::Image.user_image_sizes[thumbnail.to_sym], :class => "brown_border", :class => "current_picked_vimeo_video" %> <% else -%> <% end -%> > <%= t('.none_selected', :what => t('.' + description )) %>
<%= link_to t('.remove_current', :what => t('.' + description )), "#", :class => "remove_picked_vimeo_video", :style => "#{"display:none;" if vimeo_video.nil?}" %>
<% content_for :javascripts do -%> <% end %>