#map_title %h3.left = @map.title = render 'shared/edit_map_bar' #map_container.clear #placemark_info.box #placemark_loading = image_tag("ajax-loader.gif") - if @map.icon && !@map.icon.blank? - icon = asset_path(@map.icon) - else - icon = "" %div{:id=>"map",:data => {"map-id" => "#{@map.id}","map-icon-url"=>"#{icon}"}} %noscript %p{:style=>"margin: 75px 0 0 65px; color: #CC0000;"} Javascript muß aktiviert sein, um diese Karte sehen zu können! %section#maps_nav = render :partial => "shared/maps_simple", :locals => { :maps => @maps, :map => @map } %section#map_description.clearer %p %strong = @map.title = @map.subtitle - if @map.description = raw RedCloth.new(@map.description).to_html - else %p (Keine Beschreibung!) %p.small - if @placemarks.count > 0 %span.placemarks_control - if @placemarks.count == 1 #{@placemarks.count} Ort - else #{@placemarks.count} Orte - else Keine Orte - if !@map.public \| Versteckt - if @map.public || ( current_user && ( current_user.has_role? :admin )) \| Export: = link_to "GPX", :action => "show", :id => @map.to_param, :format => :gpx %section#placemarks_list.clear - if (@map.layers.count > 0) && (@placemarks.count > 0) %div.placemarks %hr %h4 Orte = render :partial => "shared/placemarks", :locals => { :placemarks => @placemarks } %article#panel %p.actions = link_to "Ort hinzufügen", new_placemark_path(:map => "#{@map.id}"), :class => "button" - if current_user && (current_user.has_role? :admin) = link_to 'Karte Bearbeiten', edit_map_path(@map), :class=>"admin button"