Sha256: b7cb8e359f7c148f6aa495dfdcc00500d96323e0658030dbd21615dcf4bf4613

Contents?: true

Size: 1.33 KB

Versions: 60

Compression:

Stored size: 1.33 KB

Contents

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

.maps-show
  = 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

60 entries across 60 versions & 1 rubygems

Version Path
ish_manager-0.1.8.380 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.379 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.378 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.377 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.376 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.374 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.373 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.372 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.371 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.370 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.369 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.368 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.367 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.366 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.365 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.364 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.363 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.362 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.361 app/views/ish_manager/maps/show.haml
ish_manager-0.1.8.360 app/views/ish_manager/maps/show.haml