<%- # License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later # Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE -%> <% content_for :title_suffix do %> - Donor Profile <% end %> <%= content_for :javascripts do %> <%= javascript_pack_tag 'i18n', 'page__profiles__show'%> <% 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 %>