Sha256: b7bf0228ead5d512ce4f2f00c5eacf75b8ccbc4fafa7602f7d17835090aff55d

Contents?: true

Size: 899 Bytes

Versions: 28

Compression:

Stored size: 899 Bytes

Contents

<%=
  play_roles = if hostgroup.all_ansible_roles.empty?
    link_to _('Run all Ansible roles'), 'javascript:void(0);', disabled: true, title: 'No Roles assigned'
  else
    display_link_if_authorized(_('Run all Ansible roles'), hash_for_play_roles_hostgroup_path(id: hostgroup), :'data-no-turbolink' => true, title: _('Run all Ansible roles on hosts belonging to this host group'))
  end

  actions = [
    display_link_if_authorized(_('Nest'),    hash_for_nest_hostgroup_path(:id => hostgroup)),
    display_link_if_authorized(_('Clone'),   hash_for_clone_hostgroup_path(:id => hostgroup))
  ]
  actions.push play_roles if User.current.can?(:create_job_invocations)
  actions.push display_delete_if_authorized(hash_for_hostgroup_path(:id => hostgroup).merge(:auth_object => hostgroup, :authorizer => authorizer), :data => { :confirm => warning_message(hostgroup) })

  action_buttons(*actions)
%>

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
foreman_ansible-6.3.4 app/views/foreman_ansible/ansible_roles/_hostgroup_ansible_roles_button.erb
foreman_ansible-6.3.3 app/views/foreman_ansible/ansible_roles/_hostgroup_ansible_roles_button.erb
foreman_ansible-6.3.2 app/views/foreman_ansible/ansible_roles/_hostgroup_ansible_roles_button.erb
foreman_ansible-6.3.1 app/views/foreman_ansible/ansible_roles/_hostgroup_ansible_roles_button.erb
foreman_ansible-6.4.1 app/views/foreman_ansible/ansible_roles/_hostgroup_ansible_roles_button.erb
foreman_ansible-6.4.0 app/views/foreman_ansible/ansible_roles/_hostgroup_ansible_roles_button.erb
foreman_ansible-6.3.0 app/views/foreman_ansible/ansible_roles/_hostgroup_ansible_roles_button.erb
foreman_ansible-6.2.0 app/views/foreman_ansible/ansible_roles/_hostgroup_ansible_roles_button.erb
foreman_ansible-6.1.1 app/views/foreman_ansible/ansible_roles/_hostgroup_ansible_roles_button.erb
foreman_ansible-6.0.2 app/views/foreman_ansible/ansible_roles/_hostgroup_ansible_roles_button.erb
foreman_ansible-6.1.0 app/views/foreman_ansible/ansible_roles/_hostgroup_ansible_roles_button.erb
foreman_ansible-6.0.1 app/views/foreman_ansible/ansible_roles/_hostgroup_ansible_roles_button.erb
foreman_ansible-5.1.3 app/views/foreman_ansible/ansible_roles/_hostgroup_ansible_roles_button.erb
foreman_ansible-6.0.0 app/views/foreman_ansible/ansible_roles/_hostgroup_ansible_roles_button.erb
foreman_ansible-5.1.2 app/views/foreman_ansible/ansible_roles/_hostgroup_ansible_roles_button.erb
foreman_ansible-5.1.1 app/views/foreman_ansible/ansible_roles/_hostgroup_ansible_roles_button.erb
foreman_ansible-5.1.0 app/views/foreman_ansible/ansible_roles/_hostgroup_ansible_roles_button.erb
foreman_ansible-4.0.3.5 app/views/foreman_ansible/ansible_roles/_hostgroup_ansible_roles_button.erb
foreman_ansible-4.0.3.4 app/views/foreman_ansible/ansible_roles/_hostgroup_ansible_roles_button.erb
foreman_ansible-4.0.3.3 app/views/foreman_ansible/ansible_roles/_hostgroup_ansible_roles_button.erb