Sha256: b04919594c3718c6835821683ebbc762997de10499122836455781f04a84dabb

Contents?: true

Size: 761 Bytes

Versions: 17

Compression:

Stored size: 761 Bytes

Contents

format :html do
  view :overlay_rule, cache: :never, unknown: true do
    wrap_with_overlay slot: breadcrumb_data("Rule editing", "rules") do
      current_rule_form
    end
  end

  view :modal_rule, cache: :never, unknown: true,
                    wrap: { modal: { title: ->(format) { format.render_title } } } do
    current_rule_form
  end

  view :overlay_title do
    edit_rule_title
  end

  view :help_text, unknown: true, cache: :never do
    wrap_help_text [rule_based_help, setting_link].join(" ")
  end

  def setting_link
    wrap_with :div, class: "ml-auto" do
      link_to_card card.rule_setting_name,
                   " (#{card.rule_setting.count} #{card.rule_setting_title} rules)",
                   class: "text-muted"
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
card-mod-rules-0.14.2 set/rule/bridge_rules_editor.rb
card-mod-rules-0.14.1 set/rule/bridge_rules_editor.rb
card-mod-rules-0.14.0 set/rule/bridge_rules_editor.rb
card-mod-rules-0.13.4 set/rule/bridge_rules_editor.rb
card-mod-rules-0.13.3 set/rule/bridge_rules_editor.rb
card-mod-rules-0.13.2 set/rule/bridge_rules_editor.rb
card-mod-rules-0.13.1 set/rule/bridge_rules_editor.rb
card-mod-rules-0.13.0 set/rule/bridge_rules_editor.rb
card-mod-rules-0.11.7 set/rule/bridge_rules_editor.rb
card-mod-rules-0.12.0 set/rule/bridge_rules_editor.rb
card-mod-rules-0.11.6 set/rule/bridge_rules_editor.rb
card-mod-rules-0.11.5 set/rule/bridge_rules_editor.rb
card-mod-rules-0.11.4 set/rule/bridge_rules_editor.rb
card-mod-rules-0.11.3 set/rule/bridge_rules_editor.rb
card-mod-rules-0.11.2 set/rule/bridge_rules_editor.rb
card-mod-rules-0.11.1 set/rule/bridge_rules_editor.rb
card-mod-rules-0.11.0 set/rule/bridge_rules_editor.rb