Sha256: 58b07d59a285de39f6ef778dbcae71a8720b0a398a74da1829d81c724ddb6c49

Contents?: true

Size: 987 Bytes

Versions: 24

Compression:

Stored size: 987 Bytes

Contents

module ClippedAdminUI

 def self.included(base)
   base.class_eval do

      attr_accessor :asset
      alias_method :assets, :asset
      
      protected

        def load_default_asset_regions
          OpenStruct.new.tap do |asset|
            asset.edit = Radiant::AdminUI::RegionSet.new do |edit|
              edit.main.concat %w{edit_header edit_form edit_regenerate}
              edit.form.concat %w{edit_title edit_metadata}
            end
            asset.new = asset.edit
            asset.index = Radiant::AdminUI::RegionSet.new do |index|
              index.top.concat %w{filters}
              index.bottom.concat %w{}
              index.thead.concat %w{thumbnail_header content_type_header actions_header}
              index.tbody.concat %w{thumbnail_cell title_cell content_type_cell actions_cell}
              index.paginate
            end
            asset.remove = asset.index
          end
        end
    end
    
  end
end

Version data entries

24 entries across 24 versions & 3 rubygems

Version Path
radiant-clipped-extension-1.1.2 lib/clipped_admin_ui.rb
radiant-clipped-extension-add-group-1.1.2 lib/clipped_admin_ui.rb
radiant-clipped-extension-1.1.1 lib/clipped_admin_ui.rb
radiant-clipped-extension-1.1.0 lib/clipped_admin_ui.rb
radiant-clipped-extension-1.0.17 lib/clipped_admin_ui.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/radiant-clipped-extension-1.0.16/lib/clipped_admin_ui.rb
radiant-clipped-extension-1.0.16 lib/clipped_admin_ui.rb
radiant-clipped-extension-1.0.15 lib/clipped_admin_ui.rb
radiant-clipped-extension-1.0.14 lib/clipped_admin_ui.rb
radiant-clipped-extension-1.0.13 lib/clipped_admin_ui.rb
radiant-clipped-extension-1.0.12 lib/clipped_admin_ui.rb
radiant-clipped-extension-1.0.11 lib/clipped_admin_ui.rb
radiant-clipped-extension-1.0.10 lib/clipped_admin_ui.rb
radiant-clipped-extension-1.0.9 lib/clipped_admin_ui.rb
radiant-clipped-extension-1.0.8 lib/clipped_admin_ui.rb
radiant-clipped-extension-1.0.7 lib/clipped_admin_ui.rb
radiant-clipped-extension-1.0.6 lib/clipped_admin_ui.rb
radiant-clipped-extension-1.0.5 lib/clipped_admin_ui.rb
radiant-clipped-extension-1.0.4 lib/clipped_admin_ui.rb
radiant-clipped-extension-1.0.3 lib/clipped_admin_ui.rb