- <%= 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) %>