tabletop-companion/app/views/users/show.html.erb

16 lines
445 B
Plaintext

<%= content_for :title, @user.username %>
<h2><%= @user.username %></h2>
<%= image_tag(url_for(@user.avatar.variant(:standard)), width: "100px", height: "100px") if @user.avatar.attached? %>
<aside>
<% if @user == Current.user %>
<%= link_to t(".edit_profile"), edit_user_path(@user) %>
<% if @table_invites.any? %>
<%= link_to t(".your_invites"), table_invites_path %>
<% end %>
<% end %>
</aside>
<%= @user.profile %>