Sha256: 864b834f38ab51b4ac1c15fe8fbc57a2945e008b1fe88e908dae54d1b418da66
Contents?: true
Size: 663 Bytes
Versions: 6
Compression:
Stored size: 663 Bytes
Contents
module Godmin module Helpers module BatchActions def batch_action_link(name, options) if (options[:only].nil? && options[:except].nil?) || (options[:only] && options[:only].include?(params[:scope].to_sym)) || (options[:except] && !options[:except].include?(params[:scope].to_sym)) link_to(translate_scoped("batch_actions.#{name}", default: name.to_s.titleize), "#", class: "btn btn-default batch-actions-action-link hidden", data: { value: name, confirm: options[:confirm] ? translate_scoped("batch_actions.confirm_message") : false }) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems