[25077] users/jberry/mpwa/app/views/port_pkg/show.rhtml

source_changes at macosforge.org source_changes at macosforge.org
Sun May 13 06:06:16 PDT 2007


Revision: 25077
          http://trac.macosforge.org/projects/macports/changeset/25077
Author:   jberry at macports.org
Date:     2007-05-13 06:06:15 -0700 (Sun, 13 May 2007)

Log Message:
-----------
mpwa: clean up portpkg display a little

Modified Paths:
--------------
    users/jberry/mpwa/app/views/port_pkg/show.rhtml

Modified: users/jberry/mpwa/app/views/port_pkg/show.rhtml
===================================================================
--- users/jberry/mpwa/app/views/port_pkg/show.rhtml	2007-05-13 08:45:45 UTC (rev 25076)
+++ users/jberry/mpwa/app/views/port_pkg/show.rhtml	2007-05-13 13:06:15 UTC (rev 25077)
@@ -1,23 +1,31 @@
-<h3>PortPkg <%= @port_pkg.id %> for
-<%= link_to @port_pkg.port.name, :controller => 'port', :action => 'show', :id => @port_pkg.port %>
-</h3>
+<h3>PortPkg <%= @port_pkg.id %></h3>
 
+<p><strong>Port:</strong>
+    <%= link_to @port_pkg.port.name,
+                :controller => 'port', :action => 'show',
+                :id => @port_pkg.port %>
+</p>
+
 <p>
-  <strong>epoch:</strong> <%= @port_pkg.epoch %>
-  <strong>version:</strong> <%= @port_pkg.version %>
-  <strong>revision:</strong> <%= @port_pkg.revision %>
+	<strong>Version:</strong>
+    <%=h "(#{@port_pkg.epoch})" if @port_pkg.epoch.to_i != 0 %>
+    <%=h "#{@port_pkg.version}_#{@port_pkg.revision}" %>
 </p>
 
 <p>
-  <strong>Submitted at</strong> <%= @port_pkg.submitted_at %>
-  <strong>by</strong> <%= link_to @port_pkg.submitter.user_name,
-                  :controller => 'person', :action => 'show',
-                  :id => @port_pkg.submitter %>
+	<strong>Submitter:</strong>
+  	 <%= link_to @port_pkg.submitter.user_name,
+                     :controller => 'person', :action => 'show',
+                     :id => @port_pkg.submitter %>
 </p>
 
 <p>
+  <strong>Submission Date:</strong> <%= @port_pkg.submitted_at %>
+</p>
+
+<p>
   <strong>Submitter notes:</strong>
-  <%= simple_format(word_wrap(@port_pkg.submitter_notes)) if @port_pkg.submitter_notes %>
+    <%= simple_format(word_wrap(@port_pkg.submitter_notes)) if @port_pkg.submitter_notes %>
 </p>
 
 <p>
@@ -28,17 +36,25 @@
 </p>
 
 <p>
-  <strong>Tags</strong>
+  <strong>Tags:</strong>
 	<% for tag in @port_pkg.tags.sort %>
 		<%= link_to tag.name, :controller => 'tag', :action => 'show', :id => tag %>
 	<% end %>
 </p>
 
-<h4>Files</h4>
+<h4>Files:</h4>
 <table>
+  <tr>
+    <th>Path</td>
+    <th>Length</td>
+    <th>mime-type</td>
+    <th>Download</td>
+  </tr>
 	<% for file in @port_pkg.files %>
 		<tr>
 		<td><%= link_to file.file_path, :controller => 'port_pkg_file', :action => 'show', :id => file %></td>
+		<td><%=h file.length %></td>
+		<td><%=h file.mime_type %></td>
 		<td><%= link_to 'download', :controller => 'port_pkg_file', :action => 'emit', :id => file %></td>
 		</tr>
 	<% end %>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070513/c4bb83ad/attachment.html


More information about the macports-changes mailing list