[38294] branches/gsoc08-mpwa/app/views/ports/show.rhtml
digx at macports.org
digx at macports.org
Mon Jul 14 21:44:42 PDT 2008
Revision: 38294
http://trac.macosforge.org/projects/macports/changeset/38294
Author: digx at macports.org
Date: 2008-07-14 21:44:42 -0700 (Mon, 14 Jul 2008)
Log Message:
-----------
Fixed to Ports#show page
Modified Paths:
--------------
branches/gsoc08-mpwa/app/views/ports/show.rhtml
Modified: branches/gsoc08-mpwa/app/views/ports/show.rhtml
===================================================================
--- branches/gsoc08-mpwa/app/views/ports/show.rhtml 2008-07-15 04:44:12 UTC (rev 38293)
+++ branches/gsoc08-mpwa/app/views/ports/show.rhtml 2008-07-15 04:44:42 UTC (rev 38294)
@@ -5,16 +5,17 @@
<div class='tagbox'>
<h4>Tags</h4>
- <form action='/port/tag' method='post'>
- <input type='hidden' name='id' value='<%=h @port.id %>'>
- <p><input type='text' size='20' name='tags'></input>
+ <% form_tag tag_port_url, :method => :get do %>
+ <p>
+ <input type='text' size='20' name='tag'></input>
<input type='submit' name='add_tags' value='Add'></input>
- </p>
- </form>
+ </p>
+ <% end %>
<p>
- <% for tag in @port.tags.sort %>
- <%= link_to tag.name, :controller => 'tag', :action => 'show', :id => tag %><br />
+ <% for tag in @port.tags %>
+ <%= link_to tag.name, :controller => 'tag', :action => 'show', :id => tag %>
+ (<%= link_to "remove", untag_port_url(:tag => tag.name) %>)<br />
<% end %>
</p>
</div>
@@ -29,7 +30,7 @@
<p>
<strong>Maintainers:</strong>
<% for maintainer in @port.maintainers %>
- <%= link_to email_obfuscate(maintainer.user_name), :controller => 'person', :action => 'show', :id => maintainer %>
+ <%= link_to maintainer.user_name, :controller => 'person', :action => 'show', :id => maintainer %>
<% end %>
</p>
@@ -49,8 +50,7 @@
<tr>
<td><%= link_to pkg.id, :controller => 'port_pkg', :action => 'show', :id => pkg %></td>
<td><%= link_to pkg_ver, :controller => 'port_pkg', :action => 'show', :id => pkg %></td>
- <td><%= link_to pkg.submitter.user_name, :controller => 'person', :action => 'show',
- :id => pkg.submitter %></td>
+ <td><%= link_to_unless pkg.submitter.id == 1, pkg.submitter.user_name, pkg.submitter %></td>
<td><%= pkg.submitted_at.to_formatted_s(:long) %></td>
<td><%= link_to 'download', :controller => 'port_pkg', :action => 'emit_portpkg', :id => pkg %></td>
</tr>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080714/5df243aa/attachment.html
More information about the macports-changes
mailing list