<%= image_tag(@user.avatar.variant(resize_to_fill: [400,400]), class: "avatar") %>

<%= @user.username %>

<% if own_profile?(@user) %> <%= link_to edit_registration_path(current_user), class: "tag" do %> <%= image_tag("cog-solid.svg") %> Edit Profile <% end %> <% end %> <% unless @user == current_user %> <%= link_to new_conversation_message_path(receiver_id: @user), class: "tag" do %> <%= image_tag("envelope-regular.svg") %> Send Message <% end %> <% end %>
<%= form_for(@user, url: user_path(@user), html: {class: "tags-wrapper "}) do |f| %>
<%= f.label :user_tag_list, "Preferred Tags" %> <%= f.text_field :user_tag_list, value: @user.user_tag_list.join(",") %>
<% if own_profile?(@user) %>
<%= f.submit "Save preferred tags", class: "submit small", method: :patch %>
<% end %> <% end %>

Post Count

<%= @post_count %>

Upvotes received

<%= @received_upvotes %>

Upvotes given

<%= @given_upvotes %>

Member since

<%= @user.created_at.strftime("%Y %d %b.") %>