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

Extended by:
AbstractFormat
Defined in:
tmpsets/set/mod015-settings/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 'tmpsets/set/mod015-settings/right/style.rb', line 28

def default_item_view
  :bar
end

#selectable_themesObject



38
39
40
41
42
43
# File 'tmpsets/set/mod015-settings/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 'tmpsets/set/mod015-settings/right/style.rb', line 34

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