X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/51a21e6738c5fe524472971e8171bf2442bea415..684e7db45afda7f26074343a111196aa7b51a093:/app/views/browse/note.html.erb diff --git a/app/views/browse/note.html.erb b/app/views/browse/note.html.erb index dbf384799..8e277d25f 100644 --- a/app/views/browse/note.html.erb +++ b/app/views/browse/note.html.erb @@ -1,5 +1,20 @@

<%= t "browse.note.#{@note.status}_title", :note_name => @note.id %>

+ + <%= t "browse.note.opened" %>: + <%= note_event(@note.created_at, @note.author) %> by + <% if @note.author.nil? %> + <%= t "browse.note.anonymous" %> + <% else %> + <%= note_author(@note.author) %> + <% end %> + <% if @note.status == "closed" %> + + <%= t "browse.note.closed" %>: + <%= note_event(@note.closed_at, @note.author) %> by + <%= @note.comments.last.author %> + <% end %> +
<% if @note.comments.find { |comment| comment.author.nil? } -%> @@ -9,11 +24,6 @@ <% end -%>
-
-

<%= t "browse.note.opened" %>

-

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

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

<%= t "browse.note.closed" %>

@@ -28,7 +38,8 @@

<%= t "browse.note.description" %>

-

<%= h(@note.comments.first.body.to_html) %>

+ <%= h(@note.comments.first.body.to_html) %> +
@@ -38,7 +49,7 @@
<% if @note.comments.length > 1 %> -
+

<%= t "browse.note.comments" %>

    <% @note.comments[1..-1].each do |comment| %>