From: Tom Hughes Date: Thu, 6 Jun 2019 17:20:21 +0000 (+0100) Subject: Fix erblint warnings X-Git-Tag: live~2529 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/63186dc161324a123724f666910b58db4c3a235e Fix erblint warnings --- diff --git a/app/views/diary_entries/_diary_comment.html.erb b/app/views/diary_entries/_diary_comment.html.erb index 7742069a4..301739eef 100644 --- a/app/views/diary_entries/_diary_comment.html.erb +++ b/app/views/diary_entries/_diary_comment.html.erb @@ -1,4 +1,4 @@ -
+
"> <%= user_thumbnail diary_comment.user %>

<%= raw(t(".comment_from", :link_user => (link_to h(diary_comment.user.display_name), user_path(diary_comment.user)), :comment_created_at => link_to(l(diary_comment.created_at, :format => :friendly), :anchor => "comment#{diary_comment.id}"))) %> <% if current_user and diary_comment.user.id != current_user.id %> diff --git a/app/views/diary_entries/_diary_entry.html.erb b/app/views/diary_entries/_diary_entry.html.erb index 026ccee0e..5674a37b7 100644 --- a/app/views/diary_entries/_diary_entry.html.erb +++ b/app/views/diary_entries/_diary_entry.html.erb @@ -1,4 +1,4 @@ -

'> +
<% if !@user %> <%= user_thumbnail diary_entry.user %>