]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/note.html.erb
Format browse page titles in a consistent way
[rails.git] / app / views / browse / note.html.erb
index f6db9f154c114c56e5c8aab28ba95ed9ba2f53a2..5ab29e0d1d0b958f8322b10ad02c9d144eea552d 100644 (file)
@@ -1,14 +1,17 @@
-<% set_title("#{t('browse.note.title')} | #{@note.id}") %>
+<% set_title(t('browse.note.title', :id => @note.id)) %>
 
 <h2>
   <a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
-  <%= h(@note.comments.first.body.to_html) %>
+  <%= t "browse.note.#{@note.status}_title", :note_name => @note.id %>
 </h2>
 
 <div class="browse-section">
-  <div class="details">
-    <%= t "browse.note.#{@note.status}_title", :note_name => @note.id %>
-      <br/>
+  <h4><%= t('browse.note.mine.description') %></h4>
+  <div class="note-description">
+    <%= h(@note.comments.first.body.to_html) %>
+  </div>
+
+  <div class="details" data-coordinates="<%= @note.lat %>,<%= @note.lon %>" data-status="<%= @note.status %>">
     <%= note_event('open', @note.created_at, @note.author) %>
     <% if @note.status == "closed" %>
       <br/>