]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/note.html.erb
Add zoom to note
[rails.git] / app / views / browse / note.html.erb
index 7f863fef4fd66e14c6a6bbc5eb2e05243ff8cbad..a377ada6a7d857735571478a19b7db473da50086 100644 (file)
@@ -2,12 +2,13 @@
 
 <h2>
   <a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
-  <%= t "browse.note.#{@note.status}_title", :note_name => @note.id %>
+  <%= h(@note.comments.first.body.to_html) %>
 </h2>
 
 <div class="browse-section">
-  <h4><%= h(@note.comments.first.body.to_html) %></h4>
-  <div class="details">
+  <div class="details" data-coordinates="<%= number_with_delimiter(@note.lat) %>,<%=number_with_delimiter(@note.lon) %>" data-status="<%= @note.status %>">
+    <%= t "browse.note.#{@note.status}_title", :note_name => @note.id %>
+      <br/>
     <%= note_event('open', @note.created_at, @note.author) %>
     <% if @note.status == "closed" %>
       <br/>