%h3.title = @map.title = render 'shared/edit_map_bar' %div.clear #map_container #placemark_info.box #placemark_loading = image_tag("ajax-loader.gif") #map %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 %hr.clear %article#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"