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

16 lines
445 B
Plaintext
Raw Permalink Normal View History

2024-05-29 16:17:06 +00:00
<%= content_for :title, @user.username %>
<h2><%= @user.username %></h2>
2024-05-30 14:30:25 +00:00
<%= image_tag(url_for(@user.avatar.variant(:standard)), width: "100px", height: "100px") if @user.avatar.attached? %>
2024-05-29 16:17:06 +00:00
2024-05-30 08:07:54 +00:00
<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 %>