Commit 63ec34b7

mo k <mo@mokhan.ca>
2012-06-08 05:29:24
move fan club link to page header.
1 parent 93fa93c
Changed files (1)
app
views
creations
app/views/creations/show.html.erb
@@ -7,7 +7,7 @@
         <%= link_to '(edit)', edit_creation_path(@creation) %> 
         <%= link_to 'Delete', creation_path(@creation),:confirm => "Are you sure", :method => :delete, :class => 'btn btn-danger' %> 
       <% end %>
-      submitted by <%= link_to @creation.user.name, profile_path(@creation.user) %> on <%= @creation.created_at.to_s :foomat %> 
+      submitted by <%= link_to @creation.user.name, profile_path(@creation.user) %> on <%= @creation.created_at.to_s :foomat %> with <%= link_to pluralize(@creation.favorites.length, 'fan'), creation_favorites_path(:creation_id => @creation.id)%>
   </small> 
 </h1>
 <% @creation.categories.each do |category| %>