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.451 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.450 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.449 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.448 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.447 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.446 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.445 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.444 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.443 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.442 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.441 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.440 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.439 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.438 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.437 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.436 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.435 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.434 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.433 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.432 app/views/ish_manager/maps/show.haml