[38292] branches/gsoc08-mpwa/app/views/packages

digx at macports.org digx at macports.org
Mon Jul 14 21:43:52 PDT 2008


Revision: 38292
          http://trac.macosforge.org/projects/macports/changeset/38292
Author:   digx at macports.org
Date:     2008-07-14 21:43:51 -0700 (Mon, 14 Jul 2008)
Log Message:
-----------
Using index instead of list (rails convention)

Added Paths:
-----------
    branches/gsoc08-mpwa/app/views/packages/index.html.erb

Removed Paths:
-------------
    branches/gsoc08-mpwa/app/views/packages/list.rhtml

Added: branches/gsoc08-mpwa/app/views/packages/index.html.erb
===================================================================
--- branches/gsoc08-mpwa/app/views/packages/index.html.erb	                        (rev 0)
+++ branches/gsoc08-mpwa/app/views/packages/index.html.erb	2008-07-15 04:43:51 UTC (rev 38292)
@@ -0,0 +1,23 @@
+<h1>Listing port_pkgs</h1>
+
+<table>
+  <tr>
+  <% for column in PortPkg.content_columns %>
+    <th><%= column.human_name %></th>
+  <% end %>
+  </tr>
+  
+<% for port_pkg in @port_pkgs %>
+  <tr>
+  <% for column in PortPkg.content_columns %>
+    <td><%=h port_pkg.send(column.name) %></td>
+  <% end %>
+    <td><%= link_to 'Show', :action => 'show', :id => port_pkg %></td>
+    <td><%= link_to 'Edit', :action => 'edit', :id => port_pkg %></td>
+    <td><%= link_to 'Destroy', { :action => 'destroy', :id => port_pkg }, :confirm => 'Are you sure?', :method => :post %></td>
+  </tr>
+<% end %>
+</table>
+
+<%= link_to 'Previous page', { :page => @port_pkg_pages.current.previous } if @port_pkg_pages.current.previous %>
+<%= link_to 'Next page', { :page => @port_pkg_pages.current.next } if @port_pkg_pages.current.next %> 

Deleted: branches/gsoc08-mpwa/app/views/packages/list.rhtml
===================================================================
--- branches/gsoc08-mpwa/app/views/packages/list.rhtml	2008-07-15 04:43:14 UTC (rev 38291)
+++ branches/gsoc08-mpwa/app/views/packages/list.rhtml	2008-07-15 04:43:51 UTC (rev 38292)
@@ -1,23 +0,0 @@
-<h1>Listing port_pkgs</h1>
-
-<table>
-  <tr>
-  <% for column in PortPkg.content_columns %>
-    <th><%= column.human_name %></th>
-  <% end %>
-  </tr>
-  
-<% for port_pkg in @port_pkgs %>
-  <tr>
-  <% for column in PortPkg.content_columns %>
-    <td><%=h port_pkg.send(column.name) %></td>
-  <% end %>
-    <td><%= link_to 'Show', :action => 'show', :id => port_pkg %></td>
-    <td><%= link_to 'Edit', :action => 'edit', :id => port_pkg %></td>
-    <td><%= link_to 'Destroy', { :action => 'destroy', :id => port_pkg }, :confirm => 'Are you sure?', :method => :post %></td>
-  </tr>
-<% end %>
-</table>
-
-<%= link_to 'Previous page', { :page => @port_pkg_pages.current.previous } if @port_pkg_pages.current.previous %>
-<%= link_to 'Next page', { :page => @port_pkg_pages.current.next } if @port_pkg_pages.current.next %> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080714/017040f4/attachment.html 


More information about the macports-changes mailing list