Sha256: b1d69d9dd7d5ad4c3133bb7fd8a1c1257f911eca23509bc535f8456caeae09b1
Contents?: true
Size: 1.34 KB
Versions: 1
Compression:
Stored size: 1.34 KB
Contents
module AssetsAdminUI def self.included(base) base.class_eval do attr_accessor :asset alias_method :assets, :asset protected def load_default_asset_regions returning OpenStruct.new do |asset| asset.edit = Radiant::AdminUI::RegionSet.new do |edit| edit.main.concat %w{edit_header edit_form assets_container edit_regenerate} edit.form.concat %w{edit_title edit_metadata} # need to DRY this up... edit.bucket_pane.concat %w{bucket_notes bucket bucket_bottom} edit.asset_tabs.concat %w{bucket_tab} end asset.new = asset.edit asset.index = Radiant::AdminUI::RegionSet.new do |index| index.top.concat %w{filters} index.assets_container index.bottom.concat %w{} index.thead.concat %w{thumbnail_header title_header content_type_header modify_header} index.tbody.concat %w{thumbnail_cell title_cell content_type_cell bucket_cell remove_cell} index.bucket_pane.concat %w{bucket_notes bucket bucket_bottom} index.asset_tabs.concat %w{bucket_tab} index.paginate end asset.remove = asset.index end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
radiant-paperclipped-extension-0.8.1 | lib/assets_admin_ui.rb |