Project

General

Profile

« Previous | Next » 

Revision dc11280f

Added by Ohad Levy over 12 years ago

  • ID dc11280f19740d7a6510c9c8450f3b78e794a2ee

fixes #1199 - hosts count in puppetclass page always shows 0

Note that this fix still ignores classes assgined via hostgroups.

View differences:

app/views/puppetclasses/index.html.erb
<% end %>
</td>
<td><%= puppetclass.hostgroups.map {|hg| link_to hg, hostgroup_path(hg)}.to_sentence %></td>
<td> <%= link_to @counter[puppetclass.id] || 0 , hosts_path(:search => "class = #{puppetclass.name}")%></td>
<td> <%= link_to host_counter(puppetclass), hosts_path(:search => "class = #{puppetclass.name}")%></td>
<td>
<%= link_to puppetclass.lookup_keys.count, puppetclass_lookup_keys_path(puppetclass) %>
</td>

Also available in: Unified diff