X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c24c2e481cc6d27e76274ed4e32668a4690a7788..d66ad4a4555c6ae9cb7257f53e2df375e5c4c73f:/app/views/browse/note.html.erb
diff --git a/app/views/browse/note.html.erb b/app/views/browse/note.html.erb
index 1be7d9041..6dcd46e76 100644
--- a/app/views/browse/note.html.erb
+++ b/app/views/browse/note.html.erb
@@ -1,9 +1,6 @@
<% set_title(t(".title", :id => @note.id)) %>
-
-
- <%= t ".#{@note.status}_title", :note_name => @note.id %>
-
+<%= render "sidebar_header", :title => t(".#{@note.status}_title", :note_name => @note.id) %>
<%= t(".description") %>
@@ -19,7 +16,10 @@
<% end %>
<%= t "browse.location" %>
- <%= link_to(tag.span(number_with_delimiter(@note.lat), :class => "latitude") + ", " + tag.span(number_with_delimiter(@note.lon), :class => "longitude"), root_path(:anchor => "map=18/#{@note.lat}/#{@note.lon}")) %>
+ <%= link_to(t(".coordinates_html",
+ :latitude => tag.span(number_with_delimiter(@note.lat), :class => "latitude"),
+ :longitude => tag.span(number_with_delimiter(@note.lon), :class => "longitude")),
+ root_path(:anchor => "map=18/#{@note.lat}/#{@note.lon}")) %>
@@ -35,7 +35,7 @@
<% if @note_comments.length > 1 %>
- <% @note_comments[1..].each do |comment| %> + <% @note_comments.drop(1).each do |comment| %>-
<%= note_event(comment.event, comment.created_at, comment.author) %>
<%= comment.body.to_html %>
@@ -47,26 +47,28 @@
<% if @note.status == "open" %>
<% if current_user -%>
-