1 <% content_for :head do %>
2 <%= stylesheet_link_tag 'browse' %>
5 <% content_for :heading do %>
7 <%= image_tag "#{@note.status}_note_marker.png", :alt => @note.status %>
8 <%= t "browse.note.#{@note.status}_title", :note_name => @note.id %>
12 <%= render :partial => "navigation" %>
14 <%= render :partial => "map", :object => @note %>
16 <div class='column-1'>
18 <% if @note.comments.find { |comment| comment.author.nil? } -%>
19 <div class='browse-section common'>
20 <p class="warning"><%= t "javascripts.notes.show.anonymous_warning" %></p>
24 <div class='browse-section common'>
26 <h4><%= t "browse.note.opened" %></h4>
27 <p><%= note_event(@note.created_at, @note.author) %></p>
30 <% if @note.status == "closed" %>
32 <h4><%= t "browse.note.closed" %></h4>
33 <p><%= note_event(@note.closed_at, @note.comments.last.author) %></p>
35 <% elsif @note.comments.length > 1 %>
37 <h4><%= t "browse.note.last_modified" %></h4>
38 <p><%= note_event(@note.updated_at, @note.comments.last.author) %></p>
43 <h4><%= t "browse.note.description" %></h4>
44 <p><%= h(@note.comments.first.body) %></p>
48 <h4><%= t "browse.node_details.coordinates" %></h4>
49 <p class="geo"><%= link_to ("<span class='latitude'>#{number_with_delimiter(@note.lat)}</span>, <span class='longitude'>#{number_with_delimiter(@note.lon)}</span>".html_safe), {:controller => 'site', :action => 'index', :lat => h(@note.lat), :lon => h(@note.lon), :zoom => "18"} %></p>
53 <% if @note.comments.length > 1 %>
54 <div class='browse-section clearfix'>
55 <h4><%= t "browse.note.comments" %></h4>
57 <% @note.comments[1..-1].each do |comment| %>
59 <%= comment.body.to_html %>
60 <small class="deemphasize"><%= note_event(comment.created_at, comment.author) %></small>