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.513 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.512 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.511 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.510 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.509 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.508 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.507 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.506 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.505 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.504 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.503 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.500 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.499 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.498 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.497 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.496 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.495 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.494 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.493 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.492 app/views/ish_manager/maps/show.haml