Sha256: ae6751240234a9513d9506a302dbc0dce6467a28136b51cf14315a1d56777169
Contents?: true
Size: 677 Bytes
Versions: 8
Compression:
Stored size: 677 Bytes
Contents
module ForemanRemoteExecution module JobTemplatesExtensions extend ActiveSupport::Concern included do alias_method_chain :permitted_actions, :run_button end def permitted_actions_with_run_button(template) original = permitted_actions_without_run_button(template) if template.is_a?(JobTemplate) original.unshift(display_link_if_authorized(_('Export'), hash_for_export_job_template_path(:id => template.id), 'data-no-turbolink' => true)) original.unshift(display_link_if_authorized(_('Run'), hash_for_new_job_invocation_path(:template_id => template.id))) unless template.snippet end original end end end
Version data entries
8 entries across 8 versions & 1 rubygems