Skip to content

Commit

Permalink
Extracted tagged addresses into a partial
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeboxer committed Feb 4, 2010
1 parent 0f5a159 commit cb751f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 5 additions & 0 deletions app/views/tags/_tagged_address.erb
@@ -0,0 +1,5 @@
<li>
<%= link_to goto_shortened_url(tagged_address), goto_shortened_url(tagged_address)%>
(<%= link_to 'stats', tagged_address %>,
<%= link_to 'edit', edit_address_path(tagged_address) %>)
</li>
8 changes: 2 additions & 6 deletions app/views/tags/show.html.erb
Expand Up @@ -4,12 +4,8 @@
<%= pluralize @tag.addresses.size, 'URL' %> tagged '<%=h @tag.name %>'
</h1>

<ul>
<ul id="tagged-addresses">
<% @tag.addresses.each do |address| %>
<li>
<%= link_to goto_shortened_url(address), goto_shortened_url(address) %>
(<%= link_to 'stats', address %>,
<%= link_to 'edit', edit_address_path(address) %>)
</li>
<%= render :partial => 'tagged_address', :object => address %>
<% end %>
</ul>

0 comments on commit cb751f4

Please sign in to comment.