Sha256: 7e98920423c3cc4e01661ac09ff1ac643a5b7ca2f4e2cb4aaaf24e4809fa1cab

Contents?: true

Size: 1.44 KB

Versions: 18

Compression:

Stored size: 1.44 KB

Contents

-#
-# ish_manager / maps / show.haml
-#

.maps-show
  = render 'map_meta_row', map: @map
  %p.addToggle Description [<>]
  .descr= raw @map.description

  %p.addToggle
    The Map (#{@map.w}x#{@map.h})
    = link_to 'Map Editor', location_map_editor_path(@map.id)
    [<>]
  .the-map
    = image_tag @map.image.image.url(:original) rescue nil
    - @markers.each do |marker|
      -# @TODO: this should be a partial
      .marker{ style: "position: absolute; left: #{marker.x - marker.centerOffsetX}px; top: #{marker.y - marker.centerOffsetY}px;" }
        = image_tag marker.image.image.url(:original)

  %p.addToggle Markers (#{@markers.count}) [<>]
  .markers-list
    - @markers.each do |marker|
      .flex-row.bordered
        = image_tag marker.image.image.url(:original)
        .flat-row
          .a= marker.slug
          .a= button_to '~', edit_marker_path(marker), method: :get
          .a= button_to 'x', marker_path(marker), method: :delete, data: { confirm: 'Are you sure?' }
          .a= link_to '[api]', api_marker_path(marker)
          .a= link_to '[this map]', edit_map_path(marker.slug)
      .hide
        %ul.bullets
          %li <b>item_type:</b> #{marker.item_type}

  %p.addToggle Newsitems (#{@map.newsitems.count}) [<>]
  = render 'ish_manager/newsitems/index', newsitems: @map.newsitems

  %p.addToggle Maps (#{@maps.count}) [<>]
  .maps-list
    - @maps.each do |m|
      .item
        = link_to m.slug, edit_map_path(m.id)

%hr
= render 'form'

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
ish_manager-0.1.8.287 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.284 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.282 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.281 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.280 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.279 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.278 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.277 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.274 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.273 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.272 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.271 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.268 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.266 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.265 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.264 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.263 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.261 app/views/ish_manager/maps/show.haml