Module: Card::Set::Abstract::ReadOnly::HtmlFormat

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

Instance Method Summary collapse

Instance Method Details

#short_contentObject



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

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

#standard_submit_buttonObject



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

def standard_submit_button
  multi_card_editor? ? super : ""
end

#view: inputObject



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

view :input do
  "Content can't be edited."
end