removing log dir from .gitignore
[monkeycharger.git] / vendor / rails / actionpack / lib / action_controller / templates / scaffolds / list.erb
blobfea23dc66f327ded287b437cc8a532d2fc91c1d5
1 <h1>Listing <%= @scaffold_plural_name %></h1>
3 <table>
4   <tr>
5   <% for column in @scaffold_class.content_columns %>
6     <th><%= column.human_name %></th>
7   <% end %>
8   </tr>
9   
10 <% for entry in instance_variable_get("@#{@scaffold_plural_name}") %>
11   <tr>
12   <% for column in @scaffold_class.content_columns %>
13     <td><%= entry.send(column.name) %></td>
14   <% end %>
15     <td><%= link_to "Show", :action => "show#{@scaffold_suffix}", :id => entry %></td>
16     <td><%= link_to "Edit", :action => "edit#{@scaffold_suffix}", :id => entry %></td>
17     <td><%= link_to "Destroy", {:action => "destroy#{@scaffold_suffix}", :id => entry}, { :confirm => "Are you sure?", :method => :post } %></td>
18   </tr>
19 <% end %>
20 </table>
22 <%= link_to "Previous page", { :page => instance_variable_get("@#{@scaffold_singular_name}_pages").current.previous } if instance_variable_get("@#{@scaffold_singular_name}_pages").current.previous %>
23 <%= link_to "Next page", { :page => instance_variable_get("@#{@scaffold_singular_name}_pages").current.next } if instance_variable_get("@#{@scaffold_singular_name}_pages").current.next %> 
25 <br />
27 <%= link_to "New #{@scaffold_singular_name}", :action => "new#{@scaffold_suffix}" %>