# encoding: utf-8
- if !@placemark.place.blank?
- @page_title = "#{@placemark.title} (#{@placemark.place})"
- else
- @page_title = "#{@placemark.title}"
#map_title
%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
%div{:id=>"map",:class=>"small",:data => {"map-id" => "#{@map.id}","map-icon-url"=>"#{asset_path(@map.icon)}"}}
%p
#{@placemark.place} (#{@placemark.district})
%h3.title
= @placemark.title
= render 'shared/edit_placemark_bar'
%div.clear
%h4.subtitle
= @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
#metadaten
%p
= link_to "#{@map.title}", map_path(@map)
\>
#{@placemark.place} (#{@placemark.district})
%h3.title
#{@placemark.title}
= render 'shared/edit_placemark_bar'
%div.clear
%h5
= @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
(Global Links #{link_to "Karte", globallinks_path } zeigen)
%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
#comments
#comments_list
%h3 Kommentare
= render :partial => "shared/comments", :locals => { :comments => @comments[0..10] }
%p
Wir freuen uns sehr über Anregungen!
%p
Hier kannst Du Ergänzungen, Fragen und Kritik zu diesem Text eintragen. Bitte beachte unsere
- if @tos
= link_to @tos.title, page_path(@tos)
- else
Nutzungsbedingungen
!
Nach einer zügigen Prüfung veröffentlichen wir Deinen Beitrag.
#comment_show_form
= link_to "Kommentar schreiben", "#", :class=>"button"
#comment_form
= form_for(@comment, :url => create_comment_placemark_path(@placemark) ) do |c|
= hidden_field_tag 'placemark_id', @placemark.id
#comment_status
= render :partial => "shared/comments_form", :locals => { :c => c, :c_type => "new", :legend_text => "Neuer Kommentar" }
%p.actions
%br
= c.submit "Kommentar senden", :id => "submit"
= link_to "Abbrechen", "#", :id=>"comment_reset_form", :class => "button"
%br
- if current_user
%hr.clear
%article#panel
%p
= link_to 'Ort Bearbeiten', edit_placemark_path(@placemark), :class=>"button"
= link_to "Karte", map_path(@map), :class => "button"
= link_to "Index", placemarks_path, :class => "button"