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

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

+

<%= 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 +26,6 @@ <% end -%>
-
-

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

-

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

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

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

@@ -28,7 +40,8 @@

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

-

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

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

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

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