app/helpers/georgia/pages_helper.rb in georgia-0.7.6 vs app/helpers/georgia/pages_helper.rb in georgia-0.7.7
- old
+ new
@@ -16,7 +16,15 @@
def warning_message page, revision, options={}
Georgia::WarningMessage.new(self, page, revision, options)
end
+ def picture_tag picture, options={}
+ return unless picture and picture.url.present?
+ format = options.fetch(:format, :tiny)
+ link_to picture.url_content, class: 'media-link bg-transparent', rel: 'shadowbox[gallery]' do
+ image_tag(picture.url(format), title: picture.data_file_name, class: 'media-image')
+ end
+ end
+
end
end