Sha256: 05a6cac0195a26a5c348ccc1510fca4e41e6bcd30dfa0f978dee8fe432ad928f
Contents?: true
Size: 1.91 KB
Versions: 32
Compression:
Stored size: 1.91 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_css_classes('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, :container => true %> <% 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
32 entries across 32 versions & 1 rubygems