<%= $name %>
% if ($following and $follows_me) {
group
% }
% elsif ($follow_reqs_me) {
notifications
% }
% elsif ($is_self) {
edit
% }
% if ($bio) {
%== $bio
% }
% if (@{$metadata // []}) {
% for my $entry (@{$metadata}) {
<%= $entry->{key} %> |
<%== $entry->{value}{html} %> |
% }
% }
% if ($following or $follow_requested or $can_follow or $can_request_follow) {
%= form_for "/social-action" => (method => 'POST') => begin
%= csrf_field
%= hidden_field target => $uid
%= hidden_field redirect_to => 'profile'
% if ($following) {
% }
% elsif ($follow_requested) {
% }
% elsif ($can_follow or $can_request_follow) {
% }
%= end