impress/app/views/items/_outfit_viewer.html.haml

21 lines
No EOL
573 B
Text

%outfit-viewer
.loading-indicator= render partial: "hanger_spinner"
%label.play-pause-button
%input.play-pause-toggle{
type: "checkbox",
checked: outfit_viewer_is_playing,
}
Play/pause
- 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: outfit_viewer_is_playing ? true : nil)}
- else
= image_tag swf_asset.image_url, alt: ""