This commit is contained in:
Eric Schultz 2018-11-08 15:02:35 -06:00
parent 87dc491ef4
commit cc225ba6fd
2 changed files with 25 additions and 26 deletions

View file

@ -180,11 +180,7 @@ class Campaign < ActiveRecord::Base
end
def child_campaign?
if parent_campaign.present?
true
else
false
end
parent_campaign.present?
end
def parent_campaign?

View file

@ -1,23 +1,26 @@
<section class='box'>
<section class="campaigner-profile">
<figure>
<div class="avatar">
<img src='<%= profile.picture %>' />
</div>
<figcaption>
<p><%= profile.name %></p>
<p><%= profile.city %></p>
<% if profile.state_code && profile.city %>
<p><%= profile.city_state %> <%= profile.state_code %></p>
<% end %>
</figcaption>
</figure>
<section class='box' style="font-style:italic">
<div class="well">
<h4><%= profile.name %> <small>(<%= profile.city %><% if profile.state_code && profile.city %><%= profile.city_state %> <%= profile.state_code %><% end %>)</small></h4>
<blockquote><p>"<%= reason_for_supporting %>"</p></blockquote></div>
<!-- <section class="campaigner-profile">-->
<!-- <figure>-->
<!-- <div class="avatar">-->
<!-- <img src='<%#= profile.picture %>' />-->
<!-- </div>-->
<!-- <figcaption>-->
<!-- <p><%#= profile.name %></p>-->
<!-- <p><%#= profile.city %></p>-->
<%# if profile.state_code && profile.city %>
<!-- <p><%#= profile.city_state %> <%#= profile.state_code %></p>-->
<%# end %>
<!-- </figcaption>-->
<!-- </figure>-->
<section class='u-marginBottom--15 pastelBox--grey'>
<header>What's your reason for supporting <%= campaign_name %>?</header>
<div class='pastelBox-body'>
<%= reason_for_supporting %>
</div>
</section>
</section>
<!-- <section class='u-marginBottom--15 pastelBox--grey'>-->
<!-- <header>What's your reason for supporting <%#= campaign_name %>?</header>-->
<!-- <div class='pastelBox-body'>-->
<%#= reason_for_supporting %>
<!-- </div>-->
<!-- </section>-->
<!-- </section>-->
</section>