<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%> <% content_for :title_suffix do %> - Donor Profile <% end %> <% content_for :javascripts do %> <%= IncludeAsset.js '/client/js/profiles/show/page.js' %> <% end %> <% content_for :stylesheets do %> <%= stylesheet_link_tag 'profiles/show/page' %> <% end %>
<% supporter = (@profile.supporters && @profile.supporters.length != 0) ? supporter : false %> <% if supporter %>

<%= supporter.name ? supporter.name : supporter.email %>

<% else %>

<%= @profile.name ? @profile.name : @profile.email %>

<% end %> <% if supporter && supporter.city %> <%= Format::Address.city_and_state(supporter.city, supporter.state_code) %> <% elsif @profile.city %> <%= Format::Address.city_and_state(@profile.city, @profile.state_code) %> <% end %> <% if @profile.mini_bio %>

<%= @profile.mini_bio %>

<% end %>
<% if current_role?(:super_admin) || (current_user && current_user.profile == @profile) %> <%= render 'profile_tabs', profile_id: @profile.id, active: :profile %> Edit Profile <% end %>
<%= render 'supported_nonprofits' %>
Supported Campaigns
<% if @campaigns.empty? %>

None currently

<% else %> <%= render 'campaigns/campaigns_table', campaigns: @campaigns %> <% end %>