2024-12-07 09:58:24 -08:00
|
|
|
= content_tag "support-outfit-viewer", **html_options do
|
2025-01-02 19:04:48 -08:00
|
|
|
%div
|
|
|
|
.outfit-viewer-area
|
|
|
|
%magic-magnifier{"data-format": "svg"}
|
|
|
|
= outfit_viewer outfit, preferred_image_format: :svg
|
|
|
|
%magic-magnifier{"data-format": "png"}
|
|
|
|
= outfit_viewer outfit, preferred_image_format: :png
|
2024-12-07 12:16:52 -08:00
|
|
|
|
2025-01-02 19:04:48 -08:00
|
|
|
= form_with method: :get, class: "outfit-viewer-controls" do |f|
|
|
|
|
%fieldset
|
|
|
|
%legend Format
|
|
|
|
%label
|
|
|
|
= f.radio_button "preferred_image_format", "svg",
|
|
|
|
checked: true
|
|
|
|
SVG
|
|
|
|
%label
|
|
|
|
= f.radio_button "preferred_image_format", "png"
|
|
|
|
PNG
|
2024-12-07 11:39:37 -08:00
|
|
|
|
2024-12-07 09:58:24 -08:00
|
|
|
%table
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th{scope: "col"} DTI ID
|
|
|
|
%th{scope: "col"} Zone
|
|
|
|
%th{scope: "col"} Links
|
|
|
|
%tbody
|
|
|
|
- outfit.visible_layers.each do |swf_asset|
|
|
|
|
%tr
|
2024-12-07 10:41:52 -08:00
|
|
|
%th{scope: "row", "data-field": "id"}
|
2024-12-07 09:58:24 -08:00
|
|
|
= swf_asset.id
|
|
|
|
%td
|
|
|
|
= swf_asset.zone.label
|
|
|
|
(##{swf_asset.zone.id})
|
2024-12-07 10:41:52 -08:00
|
|
|
%td{"data-field": "links"}
|
2024-12-07 09:58:24 -08:00
|
|
|
%ul
|
|
|
|
- if swf_asset.image_url?
|
|
|
|
%li= link_to "PNG", swf_asset.image_url, target: "_blank"
|
|
|
|
- if swf_asset.svg_url?
|
|
|
|
%li= link_to "SVG", swf_asset.svg_url, target: "_blank"
|
|
|
|
%li= link_to "SWF", swf_asset.url, target: "_blank"
|
|
|
|
- if swf_asset.manifest_url?
|
2024-12-07 10:41:52 -08:00
|
|
|
%li= link_to "Manifest", swf_asset.manifest_url, target: "_blank"
|