2018-03-25 17:20:54 +00:00
|
|
|
<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%>
|
2018-03-25 17:30:42 +00:00
|
|
|
<!-- 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>
|
|
|
|
|
2019-11-05 19:51:25 +00:00
|
|
|
<% if current_nonprofit_user? %>
|
2018-03-25 17:30:42 +00:00
|
|
|
<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 -->
|