%= include_javascript if SETTINGS[:version].short == '1.9' %> <%= javascript 'job_templates' %> <%= javascript 'lookup_keys' %> <%= javascript 'template_input' %> <% title _("Job Templates") %> <% title_actions(documentation_button_rex('3.1JobTemplates'), link_to_function(_('Import'), 'show_import_job_template_modal();', :class => 'btn btn-default'), display_link_if_authorized(_("New Job Template"), hash_for_new_job_template_path)) %>
<%= sort :name, :as => s_("JobTemplate|Name") %> | <%= sort :snippet, :as => s_("JobTemplate|Snippet") %> | <%= sort :locked, :as => s_("JobTemplate|Locked"), :default => "DESC" %> | <%= _('Actions') %> |
---|---|---|---|
<%= link_to_if_authorized job_template, hash_for_edit_job_template_path(:id => job_template).merge(:auth_object => job_template, :authorizer => authorizer) %> | <%= checked_icon job_template.snippet %> | <%= locked_icon job_template.locked?, _("This template is locked for editing.") %> | <%= action_buttons(*permitted_actions(job_template)) %> |