source: branches/gsoc08-mpwa/app/views/port_pkg/list.rhtml @ 38165

Last change on this file since 38165 was 38165, checked in by digx@…, 11 years ago

Initial import

File size: 811 bytes
Line 
1<h1>Listing port_pkgs</h1>
2
3<table>
4  <tr>
5  <% for column in PortPkg.content_columns %>
6    <th><%= column.human_name %></th>
7  <% end %>
8  </tr>
9 
10<% for port_pkg in @port_pkgs %>
11  <tr>
12  <% for column in PortPkg.content_columns %>
13    <td><%=h port_pkg.send(column.name) %></td>
14  <% end %>
15    <td><%= link_to 'Show', :action => 'show', :id => port_pkg %></td>
16    <td><%= link_to 'Edit', :action => 'edit', :id => port_pkg %></td>
17    <td><%= link_to 'Destroy', { :action => 'destroy', :id => port_pkg }, :confirm => 'Are you sure?', :method => :post %></td>
18  </tr>
19<% end %>
20</table>
21
22<%= link_to 'Previous page', { :page => @port_pkg_pages.current.previous } if @port_pkg_pages.current.previous %>
23<%= link_to 'Next page', { :page => @port_pkg_pages.current.next } if @port_pkg_pages.current.next %> 
Note: See TracBrowser for help on using the repository browser.