Skip to content

Commit

Permalink
Fix erblint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Jun 5, 2021
1 parent 2903284 commit 2c5e981
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions app/views/browse/_common_details.html.erb
Expand Up @@ -4,7 +4,7 @@
</h4>

<p class="font-italic">
<% if common_details.changeset.tags['comment'].present? %>
<% if common_details.changeset.tags["comment"].present? %>
<%= linkify(common_details.changeset.tags["comment"]) %>
<% else %>
<%= t "browse.no_comment" %>
Expand All @@ -13,7 +13,7 @@

<div class="details">
<%= t "browse.#{common_details.visible? ? :edited : :deleted}_by_html",
:time => time_ago_in_words(common_details.timestamp, :scope => :'datetime.distance_in_words_ago'),
:time => time_ago_in_words(common_details.timestamp, :scope => :"datetime.distance_in_words_ago"),
:user => changeset_user_link(common_details.changeset),
:title => l(common_details.timestamp) %>
&middot;
Expand Down
2 changes: 1 addition & 1 deletion app/views/diary_entries/comments.html.erb
Expand Up @@ -17,7 +17,7 @@
<% @comments.each do |comment| -%>
<tr class="<%= "text-muted" unless comment.visible? %>">
<td width="25%"><%= link_to comment.diary_entry.title, diary_entry_path(comment.diary_entry.user, comment.diary_entry) %></td>
<td width="25%"><span title="<%= l comment.created_at, :format => :friendly %>"><%= time_ago_in_words(comment.created_at, :scope => :'datetime.distance_in_words_ago') %></span></td>
<td width="25%"><span title="<%= l comment.created_at, :format => :friendly %>"><%= time_ago_in_words(comment.created_at, :scope => :"datetime.distance_in_words_ago") %></span></td>
<td width="50%" class="richtext text-break"><%= comment.body.to_html %></td>
</tr>
<% end -%>
Expand Down
4 changes: 2 additions & 2 deletions app/views/issues/index.html.erb
Expand Up @@ -62,10 +62,10 @@
<td>
<% if issue.user_updated %>
<%= t ".last_updated_time_user_html", :user => link_to(issue.user_updated.display_name, user_path(issue.user_updated)),
:time => time_ago_in_words(issue.updated_at, :scope => :'datetime.distance_in_words_ago'),
:time => time_ago_in_words(issue.updated_at, :scope => :"datetime.distance_in_words_ago"),
:title => l(issue.updated_at) %>
<% else %>
<%= t ".last_updated_time_html", :time => time_ago_in_words(issue.updated_at, :scope => :'datetime.distance_in_words_ago'),
<%= t ".last_updated_time_html", :time => time_ago_in_words(issue.updated_at, :scope => :"datetime.distance_in_words_ago"),
:title => l(issue.updated_at) %>
<% end %>
</td>
Expand Down
2 changes: 1 addition & 1 deletion app/views/traces/_trace.html.erb
Expand Up @@ -30,7 +30,7 @@
</ul>
<p class="text-muted mb-0">
<span title="<%= trace.timestamp %>">
<%= time_ago_in_words(trace.timestamp, :scope => :'datetime.distance_in_words_ago') %>
<%= time_ago_in_words(trace.timestamp, :scope => :"datetime.distance_in_words_ago") %>
</span>
<%= t ".by" %> <%= link_to trace.user.display_name, user_path(trace.user) %>
<% if !trace.tags.empty? %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/user_blocks/revoke.html.erb
Expand Up @@ -28,6 +28,6 @@
<% else %>
<p>
<%= t(".past", :time => time_ago_in_words(@user_block.ends_at, :scope => :'datetime.distance_in_words_ago')) %>
<%= t(".past", :time => time_ago_in_words(@user_block.ends_at, :scope => :"datetime.distance_in_words_ago")) %>
</p>
<% end %>
2 changes: 1 addition & 1 deletion app/views/users/_contact.html.erb
Expand Up @@ -21,7 +21,7 @@
<p>
<% changeset = contact.changesets.first %>
<% if changeset %>
<%= t("users.show.latest edit", :ago => time_ago_in_words(changeset.created_at, :scope => :'datetime.distance_in_words_ago')) %>
<%= t("users.show.latest edit", :ago => time_ago_in_words(changeset.created_at, :scope => :"datetime.distance_in_words_ago")) %>
<% comment = changeset.tags["comment"].to_s == "" ? t("browse.no_comment") : changeset.tags["comment"] %>
<q><%= link_to(comment,
{ :controller => "browse", :action => "changeset", :id => changeset.id },
Expand Down

0 comments on commit 2c5e981

Please sign in to comment.