forked from OpenNeo/impress
Add some data attributes to outfit-layer elements
This is mostly for debugging, the zone label especially, to just eyeball what we're looking at!
This commit is contained in:
parent
e9145251a9
commit
76d2cc6c21
1 changed files with 6 additions and 1 deletions
|
@ -16,7 +16,12 @@
|
||||||
= turbo_frame_tag "item-preview" do
|
= turbo_frame_tag "item-preview" do
|
||||||
.outfit-viewer
|
.outfit-viewer
|
||||||
- @preview_outfit.visible_layers.each do |swf_asset|
|
- @preview_outfit.visible_layers.each do |swf_asset|
|
||||||
%outfit-layer
|
%outfit-layer{
|
||||||
|
data: {
|
||||||
|
"asset-id": swf_asset.id,
|
||||||
|
"zone": swf_asset.zone.label,
|
||||||
|
},
|
||||||
|
}
|
||||||
= image_tag swf_asset.image_url, alt: ""
|
= image_tag swf_asset.image_url, alt: ""
|
||||||
|
|
||||||
= form_for item_path(@item), method: :get, class: "species-color-picker",
|
= form_for item_path(@item), method: :get, class: "species-color-picker",
|
||||||
|
|
Loading…
Reference in a new issue