Sha256: 9c707bd85ac27705dd0edc809759868c036b10cafa66d2703a184db2a3de950a

Contents?: true

Size: 281 Bytes

Versions: 11

Compression:

Stored size: 281 Bytes

Contents

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

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

  def standard_submit_button
    multi_card_editor? ? super : ""
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
card-mod-content-0.18.1 set/abstract/read_only.rb
card-mod-content-0.18.0 set/abstract/read_only.rb
card-mod-content-0.17.0 set/abstract/read_only.rb
card-mod-content-0.16.0 set/abstract/read_only.rb
card-mod-content-0.15.6 set/abstract/read_only.rb
card-mod-content-0.15.5 set/abstract/read_only.rb
card-mod-content-0.15.4 set/abstract/read_only.rb
card-mod-content-0.15.3 set/abstract/read_only.rb
card-mod-content-0.15.2.pre1 set/abstract/read_only.rb
card-mod-content-0.15.1.1 set/abstract/read_only.rb
card-mod-content-0.15.1 set/abstract/read_only.rb