Sha256: 1ad0c39a871e220ae4e536c0ab61c7a86a59e357d26c123b66267691bca7a943
Contents?: true
Size: 1.38 KB
Versions: 1
Compression:
Stored size: 1.38 KB
Contents
module Taggable module AdminUI def self.included(base) base.class_eval do attr_accessor :tag alias_method :tags, :tag def load_default_regions_with_tags load_default_regions_without_tags @tag = load_default_tag_regions end alias_method_chain :load_default_regions, :tags protected def load_default_tag_regions OpenStruct.new.tap do |tag| tag.edit = Radiant::AdminUI::RegionSet.new do |edit| edit.main.concat %w{edit_header edit_form} edit.form.concat %w{edit_name edit_role edit_description} edit.form_bottom.concat %w{edit_timestamp edit_buttons} end tag.show = Radiant::AdminUI::RegionSet.new do |show| show.main.concat %w{show_header show_pages show_assets} end tag.index = Radiant::AdminUI::RegionSet.new do |index| index.thead.concat %w{title_header link_header description_header usage_header modify_header} index.tbody.concat %w{title_cell link_cell description_cell usage_cell modify_cell} index.bottom.concat %w{new_button} end tag.remove = tag.index tag.new = tag.edit end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
radiant-taggable-extension-2.0.0.rc2 | lib/taggable/admin_ui.rb |