houdini/app/views/nonprofits/_actions.html.erb

21 lines
771 B
Text

<!-- partial start: nonprofits/_actions -->
<aside class='u-marginBottom--15'>
<% if current_nonprofit_user? %>
<button class='button--jumbo u-width--full' open-modal='newCampaign' if-branded='background-color, dark'>
Start a Campaign
</button>
<% else %>
<a class='button u-width--full' if-branded='background-color, dark' target='_blank' href='/peer-to-peer?npo_id=<%=@nonprofit.id %>'>
Start a Campaign for <%= @nonprofit.name %>
</a>
<% end %>
</button>
<% if current_plan_tier >= 1 && current_nonprofit_user? %>
<button class='button--jumbo u-width--full' open-modal='newEvent' data-when-confirmed if-branded='background-color, dark'>
Create an Event
</button>
<% end %>
</aside>
<!-- partial end: nonprofits/_actions -->