1
0
Fork 0
forked from OpenNeo/impress
impress/app/views/items/_outfit_viewer.html.haml

13 lines
375 B
Text
Raw Normal View History

.outfit-viewer
= render partial: "hanger_spinner"
- outfit.visible_layers.each do |swf_asset|
%outfit-layer{
data: {
"asset-id": swf_asset.id,
"zone": swf_asset.zone.label,
},
}
- if swf_asset.canvas_movie?
%iframe{src: swf_asset_path(swf_asset) + "?playing"}
- else
= image_tag swf_asset.image_url, alt: ""