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

@ -2,7 +2,7 @@
<h1><%= t ".title" %></h1>
<% end %>
<p><%= t(".request_access_html", :app_name => link_to(@token.client_application.name, @token.client_application.url), :user => link_to(current_user.display_name, user_path(current_user))) %></p>
<p><%= t(".request_access_html", :app_name => link_to(@token.client_application.name, @token.client_application.url), :user => link_to(current_user.display_name, current_user)) %></p>
<%= bootstrap_form_tag do |f| %>
<%= f.hidden_field :oauth_token, :value => @token.token %>