Project

General

Profile

« Previous | Next » 

Revision 83683ed0

Added by Tomer Brisker over 9 years ago

Fixes #844 #5725 - correct hosts count in puppetclass

View differences:

app/views/puppetclasses/index.html.erb
<tr>
<th><%= sort :name, :as => s_("Puppetclass|Name") %></th>
<th><%= sort :environment, :as => _("Environments and documentation") %></th>
<th><%= _('Host group') %></th>
<th><%= sort :hosts_count, :as => _('Hosts'), :default => "DESC" %></th>
<th><%= _('Host groups') %></th>
<th><%= sort :total_hosts, :as => _('Hosts'), :default => "DESC" %></th>
<th><%= sort :params_count, :as => _('Parameters'), :default => "DESC" %></th>
<th><%= sort :variables_count, :as => _('Variables'), :default => "DESC" %></th>
<th></th>
......
<% end %>
</td>
<td><%= puppetclass.hostgroups.map {|hg| link_to_if_authorized trunc(hg), hash_for_edit_hostgroup_path(:id=>hg).merge(:auth_object => hg, :authorizer => @hostgroups_authorizer)}.to_sentence.html_safe %></td>
<td> <%= link_to puppetclass.hosts_count, hosts_path(:search => "class = #{puppetclass.name}")%></td>
<td> <%= link_to puppetclass.total_hosts, hosts_path(:search => "class = #{puppetclass.name}")%></td>
<td><%= puppetclass.global_class_params_count %> </td>
<td><%= puppetclass.lookup_keys_count %> </td>
<td>

Also available in: Unified diff