Sha256: b8ec65cd2202a6fc41e4eb53d1a065c316aebb2b1f3cf6e1b1e91daed315f185

Contents?: true

Size: 1.4 KB

Versions: 9

Compression:

Stored size: 1.4 KB

Contents

# -*- encoding : utf-8 -*-
class Card; module Set; class Rule
# Set: All rule cards (BridgeRulesEditor)
#
module BridgeRulesEditor;
extend Card::Set
def self.source_location; "/Users/ethan/dev/decko/gem/card/mod/rules/set/rule/bridge_rules_editor.rb"; end
module HtmlFormat; parent.send :register_set_format, Card::Format::HtmlFormat, self; extend Card::Set::AbstractFormat
  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 :overlay_rule_help, unknown: true, perms: :none, cache: :never do
    # wrap_with :div, class: "help-text rule-instruction d-flex justify-content-between"
    # do

    # output [wrap_with(:div, rule_based_help), setting_link]
    # end
    popover_link([rule_based_help, setting_link].join(" "))
  end

  def setting_link
    wrap_with :div, class: "ml-auto" do
      # FIXME: hardcoded count
      link_to_card card.rule_setting_name, " (37 #{card.rule_setting_title} rules)",
                   class: "text-muted", target: "wagn_setting"
    end
  end
end
end;end;end;end;
# ~~ generated from /Users/ethan/dev/decko/gem/card/mod/rules/set/rule/bridge_rules_editor.rb ~~

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
card-1.99.4 tmpsets/set/mod022-rules/rule/bridge_rules_editor.rb
card-1.99.3 tmpsets/set/mod022-rules/rule/bridge_rules_editor.rb
card-1.99.2 tmpsets/set/mod022-rules/rule/bridge_rules_editor.rb
card-1.99.1 tmpsets/set/mod022-rules/rule/bridge_rules_editor.rb
card-1.99.0 tmpsets/set/mod022-rules/rule/bridge_rules_editor.rb
card-1.98.3 tmpsets/set/mod022-rules/rule/bridge_rules_editor.rb
card-1.98.2 tmpsets/set/mod022-rules/rule/bridge_rules_editor.rb
card-1.98.1 tmpsets/set/mod022-rules/rule/bridge_rules_editor.rb
card-1.98.0 tmpsets/set/mod022-rules/rule/bridge_rules_editor.rb