Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/pull/5225'
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Sep 19, 2024
2 parents f9e29ff + 1c88a0b commit 578a3ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/changesets/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
<% next unless comment.visible || current_user&.moderator? %>
<li id="c<%= comment.id %>">
<small class='text-body-secondary'>
<%= t comment.visible ? ".comment_by_html" : ".hidden_comment_by_html",
:time_ago => friendly_date_ago(comment.created_at),
:user => link_to(comment.author.display_name, comment.author) %>
<%= comment_by_options = { :time_ago => friendly_date_ago(comment.created_at),
:user => link_to(comment.author.display_name, comment.author) }
comment.visible ? t(".comment_by_html", **comment_by_options) : t(".hidden_comment_by_html", **comment_by_options) %>
<% if current_user&.moderator? %>
<%= tag.button t(".#{comment.visible ? 'hide' : 'unhide'}_comment"),
Expand Down

0 comments on commit 578a3ae

Please sign in to comment.