Module: Card::Set::Abstract::CodeContent::HtmlFormat

Extended by:
Card::Set::AbstractFormat
Defined in:
platypus/tmp/set/gem-defaults/mod003-content/abstract/01_code_content.rb

Instance Method Summary collapse

Instance Method Details

#short_contentObject



18
19
20
21
# File 'platypus/tmp/set/gem-defaults/mod003-content/abstract/01_code_content.rb', line 18

def short_content
  icon_tag(:warning, class: "text-muted pe-2") +
    wrap_with(:span, "file", class: "text-muted")
end

#standard_submit_buttonObject



23
24
25
# File 'platypus/tmp/set/gem-defaults/mod003-content/abstract/01_code_content.rb', line 23

def standard_submit_button
  multi_card_editor? ? super : ""
end

#view: bar_middleObject



14
15
16
# File 'platypus/tmp/set/gem-defaults/mod003-content/abstract/01_code_content.rb', line 14

view :bar_middle do
  short_content
end

#view: inputObject



9
10
11
12
# File 'platypus/tmp/set/gem-defaults/mod003-content/abstract/01_code_content.rb', line 9

view :input do
  # Localize
  "Content is stored in file and can't be edited."
end