Sha256: b40f0c7bacd04f7e013c9c7db689b8803014338607d558017d49582f39101a10

Contents?: true

Size: 1.34 KB

Versions: 130

Compression:

Stored size: 1.34 KB

Contents

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

.maps-show.max-width
  = render 'map_meta_row', map: @map
  %hr

  .collapse-expand#mapDescription Description
  .descr= raw @map.description

  .collapse-expand#mapPanel
    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;" }
        - if marker.image
          = image_tag marker.image.image.url(:original)
        - else
          = image_missing_tag

  .collapse-expand#markersIndex
    = render 'ish_manager/markers/header', markers: @markers, map: @map
  = render 'ish_manager/markers/index', markers: @markers, map: @map

  .collapse-expand#newsitemsIndex
    = render 'ish_manager/newsitems/header', newsitems: @map.newsitems
  = render 'ish_manager/newsitems/index', newsitems: @map.newsitems

  .collapse-expand#mapChildrenMaps
    Child Maps lvl-1 (#{@maps.count})
  .maps-list
    - @maps.each do |m|
      .item
        = link_to m.slug, edit_map_path(m.id)

  .collapse-expand#mapChildren All Child Maps
  = render 'index_item', map: @map

  .collapse-expand#mapEdit Edit this map
  = render 'form'


Version data entries

130 entries across 130 versions & 1 rubygems

Version Path
ish_manager-0.1.8.471 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.470 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.469 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.468 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.467 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.466 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.465 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.464 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.463 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.462 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.461 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.460 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.459 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.458 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.457 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.456 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.455 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.454 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.453 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.452 app/views/ish_manager/maps/show.haml