Simplify remaining link_to ... user_path in views

This commit is contained in:
Anton Khorev 2024-03-21 18:07:56 +03:00
parent 0dc86d6cd4
commit b8f5a495f2
12 changed files with 26 additions and 11 deletions

View file

@ -1,7 +1,7 @@
<% content_for :heading do %>
<h1><%= t ".heading", :user => @user.display_name %></h1>
<p><%= t ".subheading_html",
:user => link_to(@user.display_name, user_path(@user)),
:user => link_to(@user.display_name, @user),
:submitted => tag.span(t(".subheading_submitted"), :class => "px-2 py-1 bg-primary bg-opacity-25"),
:commented => tag.span(t(".subheading_commented"), :class => "px-2 py-1 bg-white") %></p>
<% end %>