Sha256: fbc637eb0eedf2bcd577b8cf2a633b9d9a0088700efd201033289138e4a3b2a5
Contents?: true
Size: 979 Bytes
Versions: 2
Compression:
Stored size: 979 Bytes
Contents
.maps-map-editor %h1 Map Editor .map-editor = image_tag @map.image.image.url(:original) - @markers.each do |m| .marker{ data: { 'slug': m.slug, 'center-offset-x': m.centerOffsetX, 'center-offset-y': m.centerOffsetY }, style: "top: #{m.y-m.centerOffsetY}px; left: #{m.x-m.centerOffsetX}px;" } = image_tag m.image.image.url(:original) = image_tag('icons/10x10_red-cross.png', class: 'red-cross', style: "top: #{m.centerOffsetY-10}px; left: #{m.centerOffsetX-10}px;" ) .markers-list %h1 Markers (#{@markers.length}) = link_to '[+]', new_marker_path({ map_id: @map.id }) - @markers.each do |m| = form_for m, { html: { class: "item #{m.slug}" }, url: marker_path(m.id) } do |f| = m.slug = link_to '[~]', edit_marker_path(m.id) .field = f.label :x = f.text_field :x .field = f.label :y = f.text_field :y .field = f.submit 'Save'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ish_manager-0.1.8.260 | app/views/ish_manager/maps/map_editor.haml |
ish_manager-0.1.8.259 | app/views/ish_manager/maps/map_editor.haml |