Project

General

Profile

« Previous | Next » 

Revision d995ecb4

Added by Paul Kelly almost 14 years ago

  • ID d995ecb41af4d4cb394e89a12983dc168fcf97a3

Ensure that all index views and controllers are consistent

Ensures that all controllers use @search in the index method
Ensure that all index views use pagination

View differences:

app/views/puppetclasses/index.html.erb
<th>Operatingsystems</th>
<th>Environments</th>
<th>Host Groups</th>
<th></th>
</tr>
<% for puppetclass in @puppetclasses %>
<tr class="<%= cycle("even", "odd") -%>">
......
<td><%=h puppetclass.operatingsystems.to_sentence %></td>
<td><%=h puppetclass.environments.to_sentence %></td>
<td><%=h puppetclass.hostgroups.to_sentence %></td>
<td><%= link_to "Destroy", puppetclass, :confirm => 'Are you sure?', :method => :delete %></td>
<td align="right">
<%= link_to "Destroy", puppetclass, :confirm => "Delete #{puppetclass.name}?", :method => :delete %>
</td>
</tr>
<% end %>
</table>

Also available in: Unified diff