#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}"}} %p %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.has_role? :admin ) \| Export: = link_to "GPX", :action => "show", :id => @map.id, :format => :gpx - if (current_user) && (@map.layers.count > 0) && (@placemarks.count > 0) && (@more) %div.placemarks %hr %h4 Orte = render :partial => "shared/placemarks", :locals => { :placemarks => @placemarks } %p = link_to "Ort hinzufügen", new_placemark_path(:map => "#{@map.id}"), :class => "button" = link_to 'Orte verstecken',{:controller => "maps", :action => "show", :id => @map.id, :more => 0}, :class=>"prev_button" - if current_user %p = link_to "Ort hinzufügen", new_placemark_path(:map => "#{@map.id}"), :class => "button" - if current_user.has_role? :admin %article#admin_panel %p - unless @more = link_to 'Liste der Orte',{:controller => "maps", :action => "show", :id => @map.id, :more => 1}, :class=>"button" = link_to 'Karte Bearbeiten', edit_map_path(@map), :class=>"button" = link_to 'Karten-Index', maps_path, :class=>"button"