X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/52591c55610b656cca3ef37269a8eef713368fc6..57899f8851e56fc8deb1d70d97611554922a989d:/app/views/notes/show.html.erb?ds=inline diff --git a/app/views/notes/show.html.erb b/app/views/notes/show.html.erb index 2378d8c2e..a7baccf85 100644 --- a/app/views/notes/show.html.erb +++ b/app/views/notes/show.html.erb @@ -34,7 +34,9 @@ <% @note_comments.drop(1).each do |comment| %>
  • <%= note_event(comment.event, comment.created_at, comment.author) %> - <%= comment.body.to_html %> +
    + <%= comment.body.to_html %> +
  • <% end %> @@ -47,6 +49,8 @@
    +
    <% if current_user.moderator? -%> <%= submit_tag t(".hide"), :name => "hide", :class => "btn btn-light", @@ -63,10 +67,16 @@ :url => comment_api_note_url(@note, "json") } %>
    + <% else -%> +

    + <%= link_to t(".log_in_to_comment"), login_path(:referer => request.fullpath) %> +

    <% end -%> <% else %>
    +
    <% if @note.status != "hidden" and current_user and current_user.moderator? -%> " class="btn btn-light" data-method="DELETE" data-url="<%= api_note_url(@note, "json") %>"> @@ -93,7 +103,7 @@ <% if @note.freshly_closed? %> - <%= t ".disappear_date_html", :disappear_in => disappear_in(@note) %> + <%= t ".disappear_date_html", :disappear_in => friendly_date(@note.freshly_closed_until) %> <% end %>