]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/note.html.erb
Isolate object names from the database with a <bdi> tag
[rails.git] / app / views / browse / note.html.erb
index f6db9f154c114c56e5c8aab28ba95ed9ba2f53a2..fa6f75ff9e01f40e5aaee8b93691a6e3269589e6 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.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/>