1
0
Fork 0
forked from OpenNeo/impress

say Edit a Copy on outfits#show if it a guest outfit and user is a guest

This commit is contained in:
Emi Matchu 2011-05-14 09:36:18 -04:00
parent 38907bc2d6
commit 6940e098d3
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ module OutfitsHelper
outfit = outfit_or_options outfit = outfit_or_options
end end
query = outfit.to_query query = outfit.to_query
query << "&outfit=#{outfit.id}" if outfit.user == current_user query << "&outfit=#{outfit.id}" if user_signed_in? && outfit.user == current_user
link_to content, wardrobe_path(:anchor => query), options link_to content, wardrobe_path(:anchor => query), options
end end

View file

@ -1,7 +1,7 @@
- title(@outfit.name || "Shared outfit") - title(@outfit.name || "Shared outfit")
= link_to_edit_outfit(@outfit, :class => 'button', :id => 'outfit-wardrobe-link') do = link_to_edit_outfit(@outfit, :class => 'button', :id => 'outfit-wardrobe-link') do
Edit Edit
- unless @outfit.user == current_user - unless user_signed_in? && @outfit.user == current_user
a copy a copy
- if @outfit.user_id - if @outfit.user_id
#outfit-user #outfit-user