Module: Card::Set::Right::Style::HtmlFormat

Extended by:
AbstractFormat
Defined in:
card/tmpsets/set/mod019-card-mod-style/right/style.rb,
card/tmpsets/set/mod020-card-mod-style/right/style.rb

Constant Summary collapse

HIDDEN_SKINS =
%w[bootstrap_default_skin themeless_bootstrap_skin bootstrap_default_skin
classic_bootstrap_skin].freeze

Instance Method Summary collapse

Instance Method Details

#default_item_viewObject



28
29
30
# File 'card/tmpsets/set/mod019-card-mod-style/right/style.rb', line 28

def default_item_view
  :bar
end

#selectable_themesObject



38
39
40
41
42
43
# File 'card/tmpsets/set/mod019-card-mod-style/right/style.rb', line 38

def selectable_themes
  themes.reject do |theme_card|
    theme_card.right&.codename == :stylesheets ||
      theme_card.key.in?(HIDDEN_SKINS)
  end
end

#themesObject



34
35
36
# File 'card/tmpsets/set/mod019-card-mod-style/right/style.rb', line 34

def themes
  card.rule_card(:content_options).item_cards
end

#view: inputObject



32
# File 'card/tmpsets/set/mod019-card-mod-style/right/style.rb', line 32

view :input, template: :haml