mod/rules/set/rule/table_row.rb in card-1.97.0.1 vs mod/rules/set/rule/table_row.rb in card-1.98.0
- old
+ new
@@ -1,26 +1,26 @@
format :html do
- view :rule_link, tags: :unknown_ok do
+ view :rule_link, unknown: true do
rule_card = find_existing_rule_card
wrap_closed_rule rule_card do
%i[link set].map do |cell|
send "closed_rule_#{cell}_cell", rule_card
end
end
end
- view :rule_modal_link, tags: :unknown_ok do
+ view :rule_modal_link, unknown: true do
rule_card = find_existing_rule_card
wrap_closed_rule rule_card do
%i[modal_link set].map do |cell|
send "closed_rule_#{cell}_cell", rule_card
end
end
end
def wrap_closed_rule rule_card
- klass = rule_card&.real? ? "known-rule" : "missing-rule"
+ klass = rule_card&.real? ? "known-rule" : "table-active"
wrap(true, { class: "closed-rule #{klass}" }, :tr) { yield }
end
def closed_rule_link_cell _rule_card
wrap_rule_cell "rule-setting" do
@@ -32,9 +32,10 @@
def closed_rule_modal_link_cell _rule_card
wrap_rule_cell "rule-setting" do
opts = bridge_link_opts(class: "edit-rule-link")
opts[:path].delete(:layout)
+ opts["data-modal-class"] = "modal-lg"
link_to_view :modal_rule, setting_title, opts
end
end
def closed_rule_setting_cell _rule_card