% title _('Application Instances') %> <% title_actions button_group(new_link(_('New Application Instance'))) %>
<%= sort :name, :as => s_('AppInstance|Name') %> | <%= sort :application, :as => _('Application'), :default => 'DESC' %> | <%= _('Description') %> | <%= _('Report') %> | |
---|---|---|---|---|
<%=link_to_if_authorized h(app_instance.name), hash_for_edit_app_instance_path(:id => app_instance) %> | <%= app_instance.app_definition %> | <%= app_instance.description %> | <%= link_to_if((authorized_for(:auth_object => app_instance, :authorizer => authorizer, :permission => :report_app_instances) && !app_instance.last_deploy_task.nil? && app_instance.last_deploy_task.ended_at?), _("Show Report"), hash_for_report_app_instance_path(:id => app_instance), :method => :get, :title => _("Show last deployment report for application #{app_instance}")) %> | <%= action_buttons( display_link_if_authorized(_("Deploy"), { :use_route=>"#", :id => app_instance.id, :action => :deploy, :auth_object => app_instance, :controller => :app_instances }, :remote => true, 'data-toggle': "modal", 'data-target': "#deploy#{app_instance.id}", :title => _("Deploy application #{app_instance}")), display_link_if_authorized(_("Run Playbook"), hash_for_remote_execution_path(:id => app_instance.id), :method => :post, :title => _("Run ansible playbook for application #{app_instance}")), display_link_if_authorized(_("Run Playbook - customize first"), hash_for_remote_execution_path(:id => app_instance.id, :customize => true), :method => :post, :title => _("Prepare job to run ansible playbook for application #{app_instance}")), display_link_if_authorized(_("Delete"), { :use_route=>"#", :id => app_instance.id, :action => :destroy, :auth_object => app_instance, :controller => :app_instances }, :remote => true, 'data-toggle': "modal", 'data-target': "#delete#{app_instance.id}", :title => _("Delete application #{app_instance}")) ) %> |