2011-02-10 14:50:47 -08:00
|
|
|
- title(@outfit.name || "Shared outfit")
|
2011-03-23 15:23:01 -07:00
|
|
|
= link_to_edit_outfit(@outfit, :class => 'button', :id => 'outfit-wardrobe-link') do
|
|
|
|
Edit
|
2011-05-14 06:36:18 -07:00
|
|
|
- unless user_signed_in? && @outfit.user == current_user
|
2011-03-23 15:23:01 -07:00
|
|
|
a copy
|
2011-02-10 14:50:47 -08:00
|
|
|
- if @outfit.user_id
|
|
|
|
#outfit-user
|
|
|
|
Created by
|
|
|
|
== #{link_to @outfit.user.name, user_contributions_path(@outfit.user)},
|
|
|
|
%span{:title => @outfit.created_at}= time_ago_in_words @outfit.created_at
|
|
|
|
ago
|
2010-11-13 14:26:14 -08:00
|
|
|
#preview-wrapper
|
|
|
|
#preview-swf
|
|
|
|
#outfit-items= render @outfit.worn_items
|
2010-12-06 15:50:13 -08:00
|
|
|
- content_for :javascripts do
|
|
|
|
:javascript
|
|
|
|
var INITIAL_OUTFIT_DATA = #{@outfit.to_json};
|
|
|
|
= include_javascript_libraries :jquery, :swfobject
|
|
|
|
= include_javascripts :show_outfit_package
|
2011-03-23 15:23:01 -07:00
|
|
|
|