<% 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 hollow" 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 hollow 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 hollow 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 hollow expanded" do %>
<%= t("decidim.profiles.user.leave_user_group") %>
<% end %>
<% end %>
<% end %>