Sha256: 9d3b2379b2f04932c9b423ab1046f7150ff1537f58848838d7b0e08ae56f8ee4

Contents?: true

Size: 1.89 KB

Versions: 22

Compression:

Stored size: 1.89 KB

Contents

<% if job_invocation.resolved? %>
  <%= form_tag job_invocation_path(job_invocation), :method => "get",:id =>"search-form" do %>
    <div class="row">
      <div class="title_filter col-md-6">
        <div class="input-group">
            <%= auto_complete_search(:search, params[:search].try(:squeeze, " "), :placeholder => _("Filter") + ' ...', :path => hosts_path) %>
            <span class="input-group-btn">
              <button class="btn btn-default" type="submit">
                <%= icon_text('search', content_tag(:span, _('Search'), :class => 'hidden-xs', :kind => 'fa')) %>
              </button>
            </span>
        </div>
      </div>
    </div>
  <% end %>
  <br>

  <table class="table table-bordered table-striped table-condensed">
    <thead>
    <tr>
      <th><%= sort :name, :as => _('Host') %></th>
      <th><%= _('Status') %></th>
      <th><%= _('Actions') %></th>
    </tr>
    </thead>

    <tbody>
    <% hosts.each do |host| %>
      <% template_invocation = job_invocation.template_invocations.find { |template_invocation| template_invocation.host_id == host.id } %>
      <% task = template_invocation.try(:run_host_job_task) %>
      <tr>
        <% options = { :host => host, :task => task, :job_invocation => job_invocation, :template_invocation => template_invocation } %>
        <%= render 'host_name_td', options %>
        <%= render 'host_status_td', options %>
        <%= render 'host_actions_td', options %>
      </tr>
    <% end %>
    </tbody>
  </table>

  <%= will_paginate_with_info @hosts %>
<% else %>
  <div class="alert alert-warning">
    <%=
        _("The dynamic query '%{query}' was not resolved yet. The list of hosts to which it would resolve now can be seen %{here}." %
            { :query => job_invocation.targeting.search_query,
              :here => link_to(_('here'), hosts_url(:search => job_invocation.targeting.search_query))})
     %>
  </div>
<% end %>

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
foreman_remote_execution-1.4.5 app/views/job_invocations/_tab_hosts.html.erb
foreman_remote_execution-1.4.4 app/views/job_invocations/_tab_hosts.html.erb
foreman_remote_execution-1.4.3 app/views/job_invocations/_tab_hosts.html.erb
foreman_remote_execution-1.4.2 app/views/job_invocations/_tab_hosts.html.erb
foreman_remote_execution-1.3.7 app/views/job_invocations/_tab_hosts.html.erb
foreman_remote_execution-1.3.6 app/views/job_invocations/_tab_hosts.html.erb
foreman_remote_execution-1.4.1 app/views/job_invocations/_tab_hosts.html.erb
foreman_remote_execution-1.3.5 app/views/job_invocations/_tab_hosts.html.erb
foreman_remote_execution-1.3.4 app/views/job_invocations/_tab_hosts.html.erb
foreman_remote_execution-1.3.3 app/views/job_invocations/_tab_hosts.html.erb
foreman_remote_execution-1.3.2 app/views/job_invocations/_tab_hosts.html.erb
foreman_remote_execution-1.3.1 app/views/job_invocations/_tab_hosts.html.erb
foreman_remote_execution-1.3.0 app/views/job_invocations/_tab_hosts.html.erb
foreman_remote_execution-1.2.2 app/views/job_invocations/_tab_hosts.html.erb
foreman_remote_execution-1.2.1 app/views/job_invocations/_tab_hosts.html.erb
foreman_remote_execution-1.2.0 app/views/job_invocations/_tab_hosts.html.erb
foreman_remote_execution-1.1.1 app/views/job_invocations/_tab_hosts.html.erb
foreman_remote_execution-1.1.0 app/views/job_invocations/_tab_hosts.html.erb
foreman_remote_execution-1.0.0 app/views/job_invocations/_tab_hosts.html.erb
foreman_remote_execution-0.3.2 app/views/job_invocations/_tab_hosts.html.erb