WIP
This commit is contained in:
parent
87dc491ef4
commit
cc225ba6fd
2 changed files with 25 additions and 26 deletions
app
|
@ -180,11 +180,7 @@ class Campaign < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def child_campaign?
|
def child_campaign?
|
||||||
if parent_campaign.present?
|
parent_campaign.present?
|
||||||
true
|
|
||||||
else
|
|
||||||
false
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def parent_campaign?
|
def parent_campaign?
|
||||||
|
|
|
@ -1,23 +1,26 @@
|
||||||
<section class='box'>
|
<section class='box' style="font-style:italic">
|
||||||
<section class="campaigner-profile">
|
<div class="well">
|
||||||
<figure>
|
<h4><%= profile.name %> <small>(<%= profile.city %><% if profile.state_code && profile.city %><%= profile.city_state %> <%= profile.state_code %><% end %>)</small></h4>
|
||||||
<div class="avatar">
|
<blockquote><p>"<%= reason_for_supporting %>"</p></blockquote></div>
|
||||||
<img src='<%= profile.picture %>' />
|
<!-- <section class="campaigner-profile">-->
|
||||||
</div>
|
<!-- <figure>-->
|
||||||
<figcaption>
|
<!-- <div class="avatar">-->
|
||||||
<p><%= profile.name %></p>
|
<!-- <img src='<%#= profile.picture %>' />-->
|
||||||
<p><%= profile.city %></p>
|
<!-- </div>-->
|
||||||
<% if profile.state_code && profile.city %>
|
<!-- <figcaption>-->
|
||||||
<p><%= profile.city_state %> <%= profile.state_code %></p>
|
<!-- <p><%#= profile.name %></p>-->
|
||||||
<% end %>
|
<!-- <p><%#= profile.city %></p>-->
|
||||||
</figcaption>
|
<%# if profile.state_code && profile.city %>
|
||||||
</figure>
|
<!-- <p><%#= profile.city_state %> <%#= profile.state_code %></p>-->
|
||||||
|
<%# end %>
|
||||||
|
<!-- </figcaption>-->
|
||||||
|
<!-- </figure>-->
|
||||||
|
|
||||||
<section class='u-marginBottom--15 pastelBox--grey'>
|
<!-- <section class='u-marginBottom--15 pastelBox--grey'>-->
|
||||||
<header>What's your reason for supporting <%= campaign_name %>?</header>
|
<!-- <header>What's your reason for supporting <%#= campaign_name %>?</header>-->
|
||||||
<div class='pastelBox-body'>
|
<!-- <div class='pastelBox-body'>-->
|
||||||
<%= reason_for_supporting %>
|
<%#= reason_for_supporting %>
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</section>
|
<!-- </section>-->
|
||||||
</section>
|
<!-- </section>-->
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Reference in a new issue