gallery.rb
603 Bytes
class Gallery < Folder
settings_items :allow_download, :type => :boolean, :default => false
attr_accessible :allow_download
def self.type_name
_('Gallery')
end
def self.short_description
_('Gallery')
end
def self.description
_('A gallery, inside which you can put images.')
end
include ActionView::Helpers::TagHelper
def to_html(options={})
article = self
proc do
render :file => 'content_viewer/image_gallery', :locals => {:article => article}
end
end
def gallery?
true
end
def self.icon_name(article = nil)
'gallery'
end
end