2012-12-29 22:56:58 -08:00
|
|
|
- title(@outfit.name || t('.default_outfit_name'))
|
2011-07-09 08:45:30 -07:00
|
|
|
- content_for :before_title, campaign_progress
|
|
|
|
|
2012-07-29 13:45:12 -07:00
|
|
|
- open_graph :type => 'openneo-impress:outfit', :title => yield(:title),
|
|
|
|
:url => outfit_url(@outfit)
|
|
|
|
- if @outfit.image?
|
|
|
|
- open_graph :image => absolute_url(@outfit.image.url)
|
|
|
|
|
2011-03-23 15:23:01 -07:00
|
|
|
= link_to_edit_outfit(@outfit, :class => 'button', :id => 'outfit-wardrobe-link') do
|
2012-12-29 22:56:58 -08:00
|
|
|
- if user_signed_in? && @outfit.user == current_user
|
|
|
|
= t '.edit'
|
|
|
|
- else
|
|
|
|
= t '.clone'
|
|
|
|
|
2011-02-10 14:50:47 -08:00
|
|
|
- if @outfit.user_id
|
|
|
|
#outfit-user
|
2012-12-29 22:56:58 -08:00
|
|
|
= outfit_creation_summary(@outfit)
|
2014-03-28 13:15:04 -07:00
|
|
|
|
2014-03-28 13:22:21 -07:00
|
|
|
- if @outfit.color.prank?
|
|
|
|
= prank_color_message(@outfit.color.unfunny_human_name)
|
2014-03-28 13:15:04 -07:00
|
|
|
|
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
|
2012-10-20 15:56:38 -07:00
|
|
|
var INITIAL_OUTFIT_DATA = #{safely_to_json @outfit};
|
2010-12-06 15:50:13 -08:00
|
|
|
= include_javascript_libraries :jquery, :swfobject
|
2013-03-05 20:26:14 -08:00
|
|
|
= javascript_include_tag 'wardrobe', 'outfits/show'
|