Improve formatting of p2p campaigns
This commit is contained in:
parent
1c1e62d091
commit
478825a47a
2 changed files with 5 additions and 26 deletions
|
@ -103,7 +103,7 @@
|
|||
</div>
|
||||
</aside>
|
||||
|
||||
<% unless current_campaign_editor? %>
|
||||
<% unless current_campaign_editor? || @campaign.child_campaign? %>
|
||||
<aside class='u-marginTop--15'>
|
||||
<a class='button u-width--full' target='_blank' if-branded='background-color, dark' href='/peer-to-peer?npo_id=<%=@nonprofit.id %>'>
|
||||
Start Your Own Campaign for <%= @nonprofit.name %>
|
||||
|
@ -120,8 +120,8 @@
|
|||
reason_for_supporting: @campaign.reason_for_supporting
|
||||
%>
|
||||
|
||||
<section class='box'>
|
||||
<a class='button u-width--full' target='_blank' if-branded='background-color, dark' href='/peer-to-peer?campaign_id=<%= @peer_to_peer_campaign_param %>'>
|
||||
<section class='box u-centered' style="margin-top:20px; margin-bottom:20px;">
|
||||
<a class='button--jumbo' target='_blank' if-branded='background-color, dark' href='/peer-to-peer?campaign_id=<%= @peer_to_peer_campaign_param %>'>
|
||||
Start Your Own Campaign for <%= @nonprofit.name %>
|
||||
</a>
|
||||
</section>
|
||||
|
|
|
@ -1,26 +1,5 @@
|
|||
<section class='box' style="font-style:italic">
|
||||
<div class="well">
|
||||
<section class='box' style="font-style: italic">
|
||||
<div class="well" style="padding-left:16px;">
|
||||
<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>
|
||||
|
|
Loading…
Reference in a new issue