impress/app/views/outfits/show.html.haml

27 lines
911 B
Text

- title(@outfit.name || "Shared outfit")
- content_for :before_title, campaign_progress
- open_graph :type => 'openneo-impress:outfit', :title => yield(:title),
:url => outfit_url(@outfit)
- if @outfit.image?
- open_graph :image => absolute_url(@outfit.image.url)
= link_to_edit_outfit(@outfit, :class => 'button', :id => 'outfit-wardrobe-link') do
Edit
- unless user_signed_in? && @outfit.user == current_user
a copy
- 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
#preview-wrapper
#preview-swf
#outfit-items= render @outfit.worn_items
- content_for :javascripts do
:javascript
var INITIAL_OUTFIT_DATA = #{@outfit.to_json};
= include_javascript_libraries :jquery, :swfobject
= include_javascripts :show_outfit_package