From 1c88a0b136de0d7bf43b66912b618e3e9e83db91 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Thu, 19 Sep 2024 15:58:07 +0300 Subject: [PATCH] Don't use ?: in "Comment from user" changeset discussion strings --- app/views/changesets/show.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/changesets/show.html.erb b/app/views/changesets/show.html.erb index 13f40ce50..a47049e99 100644 --- a/app/views/changesets/show.html.erb +++ b/app/views/changesets/show.html.erb @@ -40,9 +40,9 @@ <% next unless comment.visible || current_user&.moderator? %>
  • - <%= 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"), -- 2.39.5