decko-commons/decko

View on GitHub
mod/content/set/abstract/read_only.rb

Summary

Maintainability
A
0 mins
Test Coverage
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