Sha256: bb8453d23205efeb92287327385c8d367e07823ea67aa73d5fa811a198380113
Contents?: true
Size: 1.29 KB
Versions: 7
Compression:
Stored size: 1.29 KB
Contents
.action_card .title .name = Misc.humanize page_action if page_action .long_name - case page_type - when 'entity_action' = @entity.respond_to?(:name) ? @entity.name || @entity : @entity - when 'entity_list_action' = Misc.humanize page_entity_list - when 'entity_map_action' = Misc.humanize page_entity_map - if card.description .action_description - case card.description - when String = card.description - when Proc = capture_haml &card.description - else - raise "Unknown description: #{fff card.description}" - if card.action_parameters = action_parameters &card.action_parameters - exception_html = nil - require_parameters = false - card.requires.each do |input| - if Array === input - inputs, input_block = input - if inputs.select{|input| @params[input.to_s].nil? }.any? - require_parameters = true - exception_html = capture_haml &input_block - break - else - if @params[input.to_s].nil? - require_parameters = true - break - if exception_html = exception_html .action_content - if require_parameters %p Please configure the parameters to execute the action - else = capture_haml &block
Version data entries
7 entries across 7 versions & 1 rubygems