%h4.left = link_to "#{@map.title}", map_path(@map) %p.left - referer = request.env["HTTP_REFERER"].to_s - if referer.match(/\/maps\/#{@map.id}/) = link_to "Zurück", { :controller => "maps", :action => "show", :id => @map.to_param, :anchor => @placemark.id}, :class => "prev_button" - else = link_to "Karte", { :controller => "maps", :action => "show", :id => @map.id, :anchor => @placemark.id}, :class => "prev_button" #map_container.clear #map.small %p #{@placemark.place} (#{@placemark.district}) %h3.title = @placemark.title = render 'shared/edit_placemark_bar' %div.clear %h4 = @placemark.subtitle %p.small - if @placemark.user Erstellt am #{@placemark.created_at.strftime("%d.%m.%Y") }, zuletzt geändert am #{@placemark.updated_at.strftime("%d.%m.%Y") } - if !@placemark.public \| Versteckt \| = link_to "#{@map.title}", map_path(@map) - if !@placemark.image.blank? %div.p_image %p - if @placemark.image.thumb.url = link_to image_tag(@placemark.image.thumb.url, :title => @placemark.image_credit, :width => "300"), @placemark.image.url, :class=>"fancybox", :title => @placemark.image_credit - else = link_to image_tag(@placemark.image.url, :title => @placemark.image_credit, :width => "300"), @placemark.image.url, :class=>"fancybox", :title => @placemark.image_credit %br %span.image_credit.info = @placemark.image_credit - if !@placemark.teaser.blank? %div.p_teaser = raw RedCloth.new(@placemark.teaser).to_html - if !@placemark.content.blank? %div.p_content = raw RedCloth.new(@placemark.content).to_html %div.p_metadaten %p #{@placemark.place} (#{@placemark.district}) %h3.title #{@placemark.title} = render 'shared/edit_placemark_bar' %div.clear %h4 = @placemark.subtitle %table %tr %th Karte: %td = link_to "#{@map.title}", map_path(@map) - if current_user %tr %th Status: %td - if @placemark.public Veröffentlicht - else Versteckt - if !@placemark.creator.blank? %tr %th Autor_in %td = @placemark.creator - if !@placemark.published_at.blank? %tr %th Veröffentlicht %td= @placemark.published_at.strftime("%d.%m.%Y") %tr %th Zuletzt bearbeitet: %td= @placemark.updated_at.strftime("%d.%m.%Y") - if !@placemark.url.blank? %th Weitere Informationen %td = link_to @placemark.url, @placemark.url - if !@placemark.source.blank? %tr %th Quelle %td= @placemark.source - if !@placemark.geo_relation.blank? %tr %th Global Link (Geografischer Bezug): %td= @placemark.geo_relation %tr %th Adresse: %td - if !@placemark.place.blank? #{@placemark.place}, #{@placemark.address}, #{@placemark.district}, #{@placemark.zip} #{@placemark.city} %tr %th Koordinaten (Lat/Lon) %td #{@placemark.lat}/#{@placemark.lon} - if !@placemark.comment.blank? %tr %th Kommentar %td %div.p_comment = raw RedCloth.new(@placemark.comment).to_html - if current_user.has_role? :admin %hr.clear %article#admin_panel %p = link_to 'Bearbeiten', edit_placemark_path(@placemark), :class=>"button"   = link_to "Karte", map_path(@map), :class => "button" = link_to "Index", placemarks_path, :class => "button"