Fix erblint warnings
This commit is contained in:
parent
29032847d9
commit
2c5e981684
6 changed files with 8 additions and 8 deletions
|
@ -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" %>
|
||||
|
@ -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) %>
|
||||
·
|
||||
|
|
|
@ -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 -%>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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? %>
|
||||
|
|
|
@ -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 %>
|
||||
|
|
|
@ -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 },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue