<%= image_tag profile_user.avatar_url(:profile), class: "card__image card__image--larger" %>
<%= profile_user.name %>
<%= profile_user.nickname %> <% if can_contact_user? %> <%= link_to_current_or_new_conversation_with(profile_holder) %> <% end %>
<%= strip_tags(profile_user.about) %>
<% if profile_user.personal_url.present? %> <%= link_to html_truncate(profile_user.personal_url.gsub(%r{https?\:\/\/}, ""), length: 30), profile_user.personal_url %> <% end %>
<% if profile_user.badge.present? %>
<%= icon profile_user.badge, class: "author__verified" %> <%= officialization_text %>
<% end %> <%= render_hook(:user_profile_bottom) %> <% if current_organization.badges_enabled? && badge_statuses.any? %> <% end %>
<% if own_profile? %>
<%= link_to decidim.account_path, class: "button" do %> <%= t("decidim.profiles.user.edit_profile") %> <% end %>
<% if user_groups_enabled? %>
<%= link_to decidim.new_group_path, class: "button secondary light" do %> <%= t("decidim.profiles.user.create_user_group") %> <% end %>
<% end %> <% elsif logged_in? %> <%= cell "decidim/follow_button", profile_holder, inline: false %> <% end %> <% if user_groups_enabled? %> <% if can_edit_user_group_profile? %> <% if user_group_email_to_be_confirmed? %>
<%= link_to decidim.group_email_confirmation_path(model.nickname), method: :post, class: "button secondary light expanded" do %> <%= t("decidim.profiles.user.resend_email_confirmation_instructions") %> <% end %>
<% end %>
<%= link_to t("decidim.profiles.user.edit_user_group"), edit_group_path(profile_holder.nickname) %>
<%= link_to t("decidim.profiles.user.manage_user_group_users"), group_manage_users_path(profile_holder.nickname) %>
<%= link_to t("decidim.profiles.user.manage_user_group_admins"), group_manage_admins_path(profile_holder.nickname) %>
<%= link_to t("decidim.profiles.user.invite_user"), group_invites_path(profile_holder.nickname) %>
<% end %> <% if can_join_user_group? %>
<%= link_to decidim.group_join_requests_path(model.nickname), method: :post, class: "button light expanded" do %> <%= t("decidim.profiles.user.join_user_group") %> <% end %>
<% end %> <% if can_leave_group? %>
<%= link_to decidim.leave_group_path(model.nickname), method: :delete, data: { confirm: t("decidim.groups.actions.are_you_sure") }, class: "button light expanded" do %> <%= t("decidim.profiles.user.leave_user_group") %> <% end %>
<% end %> <% end %>