houdini/app/views/components/fundraising_pages/_campaigner_profile.html.erb
2020-06-15 10:26:57 -05:00

13 lines
637 B
Text

<%- # 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 -%>
<%- @location_array = []
@location_array.push(profile.city) if profile.city.present?
@location_array.push(profile.state_code) if profile.state_code.present?
-%>
<section class='box' style="font-style: italic">
<div class="well" style="padding-left:16px;">
<h4><%= profile.name %><%- if @location_array.any? -%>
<small>(<%= @location_array.join(', ') %>)</small><%- end -%>
</h4>
<blockquote><p>"<%= reason_for_supporting %>"</p></blockquote></div>
</section>