X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2882a65d21fd5758c2a90d1cbd808103ab7b8000..5d5d0beefad0436781e0813f9f97d6b3fc313c28:/app/views/notes/show.html.erb diff --git a/app/views/notes/show.html.erb b/app/views/notes/show.html.erb index 8dda65c25..4f20cdd44 100644 --- a/app/views/notes/show.html.erb +++ b/app/views/notes/show.html.erb @@ -5,23 +5,21 @@

<%= t(".description") %>

- <%= h(@note_comments.first.body.to_html) %> + <%= note_description(@note.author, @note.description).to_html %>
- +

<%= note_event("opened", @note.created_at, @note.author) %>

+ <% if @note.status == "closed" %> +

<%= note_event(@note.status, @note.closed_at, @note.all_comments.last.author) %>

+ <% end %> +

+ <%= t "browse.location" %> + <%= 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}") %> +

<% if @note_comments.find { |comment| comment.author.nil? } -%>