Sha256: 013de43476001e3ef1da90f63eb299c223aa49de9aba09479b67a17845854bcb

Contents?: true

Size: 938 Bytes

Versions: 82

Compression:

Stored size: 938 Bytes

Contents

module ClippedAdminUI

 def self.included(base)
   base.class_eval {
      attr_accessor :asset
      alias_method :assets, :asset

        def load_default_asset_regions
          OpenStruct.new.tap do |asset|
            asset.edit = TrustyCms::AdminUI::RegionSet.new do |edit|
              edit.main.concat %w{edit_header edit_form}
              edit.form.concat %w{edit_title edit_metadata}
            end
            asset.new = asset.edit
            asset.index = TrustyCms::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

Version data entries

82 entries across 82 versions & 1 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/extensions/clipped-extension/lib/clipped_admin_ui.rb
trusty-cms-7.0.11 vendor/extensions/clipped-extension/lib/clipped_admin_ui.rb
trusty-cms-7.0.10 vendor/extensions/clipped-extension/lib/clipped_admin_ui.rb
trusty-cms-7.0.9 vendor/extensions/clipped-extension/lib/clipped_admin_ui.rb
trusty-cms-7.0.8 vendor/extensions/clipped-extension/lib/clipped_admin_ui.rb
trusty-cms-7.0.7 vendor/extensions/clipped-extension/lib/clipped_admin_ui.rb
trusty-cms-7.0.6 vendor/extensions/clipped-extension/lib/clipped_admin_ui.rb
trusty-cms-7.0.5 vendor/extensions/clipped-extension/lib/clipped_admin_ui.rb
trusty-cms-7.0.4 vendor/extensions/clipped-extension/lib/clipped_admin_ui.rb
trusty-cms-7.0.3 vendor/extensions/clipped-extension/lib/clipped_admin_ui.rb
trusty-cms-6.3.1 vendor/extensions/clipped-extension/lib/clipped_admin_ui.rb
trusty-cms-7.0.2 vendor/extensions/clipped-extension/lib/clipped_admin_ui.rb
trusty-cms-7.0.1 vendor/extensions/clipped-extension/lib/clipped_admin_ui.rb
trusty-cms-7.0.0 vendor/extensions/clipped-extension/lib/clipped_admin_ui.rb
trusty-cms-6.3 vendor/extensions/clipped-extension/lib/clipped_admin_ui.rb
trusty-cms-6.2.1 vendor/extensions/clipped-extension/lib/clipped_admin_ui.rb
trusty-cms-6.2.2.1 vendor/extensions/clipped-extension/lib/clipped_admin_ui.rb
trusty-cms-6.2.0 vendor/extensions/clipped-extension/lib/clipped_admin_ui.rb
trusty-cms-6.1.2 vendor/extensions/clipped-extension/lib/clipped_admin_ui.rb
trusty-cms-6.1.1 vendor/extensions/clipped-extension/lib/clipped_admin_ui.rb