-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add invoice mailto link to fund model and update donation page layout
- Loading branch information
Showing
2 changed files
with
85 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -229,6 +229,10 @@ def open_collective_project_donate_url | |
"#{open_collective_project_url}/donate" | ||
end | ||
|
||
def invoice_mailto_url | ||
"mailto:[email protected]?subject=#{name} Fund Invoice&body=Please send an invoice for the #{name} Fund to the following address:" | ||
end | ||
|
||
def oc_project_slug | ||
"oc-#{slug}-fund" | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,110 +49,111 @@ | |
</div> | ||
</div> | ||
|
||
<!-- page --> | ||
<% if params[:embed].blank? && params[:order_id].blank? %> | ||
|
||
<div class="row"> | ||
<div class="col-12 col-lg-8"> | ||
<div class="row"> | ||
<div class="col-12 col-lg-8"> | ||
|
||
<div class="card mb-3 grey-grad-bg p-3 no-border rounded-4"> | ||
<div class="row g-0"> | ||
<div class="col-2 col-md-1 pt-3"> | ||
<%= image_tag("stone-1.svg", alt: "", class: "img-fluid", size: "62x62") %> | ||
</div> | ||
<div class="col-10 col-md-11"> | ||
<div class="card-body"> | ||
<h2 class="card-title">As an individual</h2> | ||
<p class="card-text">Donate instantly with a credit card, or log in to use Open Collective</p> | ||
<p class="card-text mt-4"><a href="#" class="btn btn-primary rounded-pill me-md-3">Donate instantly</a> | ||
<a href="#" class="btn btn-success rounded-pill mt-3 mt-md-0 mt-lg-3 mt-xl-0">Donate with Open Collective</a></p> | ||
<div class="card mb-3 grey-grad-bg p-3 no-border rounded-4"> | ||
<div class="row g-0"> | ||
<div class="col-2 col-md-1 pt-3"> | ||
<%= image_tag("stone-1.svg", alt: "", class: "img-fluid", size: "62x62") %> | ||
</div> | ||
<div class="col-10 col-md-11"> | ||
<div class="card-body"> | ||
<h2 class="card-title">As an individual</h2> | ||
<p class="card-text">Donate instantly with a credit card, or log in to use Open Collective</p> | ||
<p class="card-text mt-4"><a href="<%= donate_fund_path(@fund, embed: true) %>" class="btn btn-primary rounded-pill me-md-3">Donate instantly</a> | ||
<a href="<%= @fund.open_collective_project_donate_url %>" class="btn btn-success rounded-pill mt-3 mt-md-0 mt-lg-3 mt-xl-0">Donate with Open Collective</a></p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="card mb-3 grey-grad-bg p-3 mt-5 no-border rounded-4"> | ||
<div class="row g-0"> | ||
<div class="col-2 col-md-1 pt-3"> | ||
<%= image_tag("stone-group.svg", alt: "", class: "img-fluid", size: "62x55") %> | ||
</div> | ||
<div class=" col-10 col-md-11"> | ||
<div class="card-body"> | ||
<h2 class="card-title">On behalf of an organisation</h2> | ||
<p class="card-text">Request an invoice or vendor registration, or donate on behalf of your organisation with your Open Collective account</p> | ||
<p class="card-text mt-4"><a href="#" class="btn btn-danger rounded-pill me-md-3">Request an invoice</a> | ||
<a href="#" class="btn btn-success rounded-pill mt-3 mt-md-0 mt-lg-3 mt-xl-0">Donate with Open Collective</a></p> | ||
<div class="card mb-3 grey-grad-bg p-3 mt-5 no-border rounded-4"> | ||
<div class="row g-0"> | ||
<div class="col-2 col-md-1 pt-3"> | ||
<%= image_tag("stone-group.svg", alt: "", class: "img-fluid", size: "62x55") %> | ||
</div> | ||
<div class=" col-10 col-md-11"> | ||
<div class="card-body"> | ||
<h2 class="card-title">On behalf of an organisation</h2> | ||
<p class="card-text">Request an invoice or vendor registration, or donate on behalf of your organisation with your Open Collective account</p> | ||
<p class="card-text mt-4"><a href="<%= @fund.invoice_mailto_url %>" class="btn btn-danger rounded-pill me-md-3">Request an invoice</a> | ||
<a href="<%= @fund.open_collective_project_donate_url %>" class="btn btn-success rounded-pill mt-3 mt-md-0 mt-lg-3 mt-xl-0">Donate with Open Collective</a></p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-12 col-lg-4 page-content"> | ||
<h3 class="mt-lg-0">How donating works</h3> | ||
<p>Donations are allocated and distributed between the projects in this ecosystem monthly. The next allocation takes place on <strong>25 December 2024</strong>. | ||
</p> | ||
<p>Projects receive their share based on a combination of observed usage amongst 240m tracked repositories and downloads for 10.7m tracked packages.</p> | ||
<p><a href="#">Read more in our overview</a></p> | ||
</div> | ||
<div class="col-12 col-lg-4 page-content"> | ||
<h3 class="mt-lg-0">How donating works</h3> | ||
<p>Donations are allocated and distributed between the projects in this ecosystem monthly. The next allocation takes place on <strong>25 December 2024</strong>. | ||
</p> | ||
<p>Projects receive their share based on a combination of observed usage amongst 240m tracked repositories and downloads for 10.7m tracked packages.</p> | ||
<p><a href="<%= overview_path %>">Read more in our overview</a></p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<!-- page --> | ||
<% elsif params[:embed].present? %> | ||
|
||
<div class="row"> | ||
<div class="col-12 col-lg-8"> | ||
<div class="row"> | ||
<div class="col-12 col-lg-8"> | ||
|
||
<iframe src="<%= @fund.open_collective_project_embed_url %>" style="width: 100%; min-height: 100vh;"></iframe> | ||
<iframe src="<%= @fund.open_collective_project_embed_url %>" style="width: 100%; min-height: 100vh;"></iframe> | ||
|
||
</div> | ||
<div class="col-12 col-lg-4 page-content"> | ||
<h3 class="mt-lg-0">How donating works</h3> | ||
<p>Donations are allocated and distributed between the projects in this ecosystem monthly. The next allocation takes place on <strong>25 December 2024</strong>. | ||
</p> | ||
<p>Projects receive their share based on a combination of observed usage amongst 240m tracked repositories and downloads for 10.7m tracked packages.</p> | ||
<p><a href="<%= overview_path %>">Read more in our overview</a></p> | ||
</div> | ||
</div> | ||
<div class="col-12 col-lg-4 page-content"> | ||
<h3 class="mt-lg-0">How donating works</h3> | ||
<p>Donations are allocated and distributed between the projects in this ecosystem monthly. The next allocation takes place on <strong>25 December 2024</strong>. | ||
</p> | ||
<p>Projects receive their share based on a combination of observed usage amongst 240m tracked repositories and downloads for 10.7m tracked packages.</p> | ||
<p><a href="#">Read more in our overview</a></p> | ||
</div> | ||
</div> | ||
|
||
<!-- page --> | ||
<% elsif params[:order_id].present? %> | ||
|
||
<div class="row"> | ||
<div class="col-12 col-lg-8"> | ||
|
||
<div class="card mb-3 grey-grad-bg p-3 no-border rounded-4"> | ||
<div class="row g-0"> | ||
<div class="col-7"> | ||
<div class="card-body"> | ||
<h2 class="card-title">Thank you</h2> | ||
<div class="stat-card mt-4"> | ||
<div class="stat-card-body"> | ||
<span class="stat-card-title color-green-dark">$10,000.00</span> | ||
<span class="stat-card-text small">Your donation</span> | ||
<div class="row"> | ||
<div class="col-12 col-lg-8"> | ||
|
||
<div class="card mb-3 grey-grad-bg p-3 no-border rounded-4"> | ||
<div class="row g-0"> | ||
<div class="col-7"> | ||
<div class="card-body"> | ||
<h2 class="card-title">Thank you</h2> | ||
<div class="stat-card mt-4"> | ||
<div class="stat-card-body"> | ||
<span class="stat-card-title color-green-dark">$10,000.00</span> | ||
<span class="stat-card-text small">Your donation</span> | ||
</div> | ||
</div> | ||
</div> | ||
<p class="card-text mt-4">Your generosity has raised the fund total amount and will be sent out to projects in the next allocation</p> | ||
<div class="stat-card mt-4"> | ||
<div class="stat-card-body"> | ||
<span class="stat-card-title color-green-dark">$10,000.00</span> | ||
<span class="stat-card-text small">New fund total</span> | ||
<p class="card-text mt-4">Your generosity has raised the fund total amount and will be sent out to projects in the next allocation</p> | ||
<div class="stat-card mt-4"> | ||
<div class="stat-card-body"> | ||
<span class="stat-card-title color-green-dark">$10,000.00</span> | ||
<span class="stat-card-text small">New fund total</span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-5 pt-3"> | ||
<%= image_tag("success-stones.svg", alt: "", class: "img-fluid pt-2", size: "590x480") %> | ||
<div class="col-5 pt-3"> | ||
<%= image_tag("success-stones.svg", alt: "", class: "img-fluid pt-2", size: "590x480") %> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
<div class="col-12 col-lg-4 page-content"> | ||
<h3 class="mt-lg-0">What happens next?</h3> | ||
<p>Your donation will be sent out to <strong><%= @fund.name %> ecosystem projects</strong> in the next allocation, happening on <strong>25 December 2024</strong>.</p> | ||
<h3>Need to amend your donation?</h3> | ||
<p><a href="<%= "https://#{ENV['OPENCOLLECTIVE_DOMAIN']}" %>">Log in</a> to your Open Collective account to make changes until 25th December 2024. | ||
</p> | ||
<h3>Any problems at all</h3> | ||
<p><a href="mailto:[email protected]">Contact us</a></p> | ||
</div> | ||
</div> | ||
<div class="col-12 col-lg-4 page-content"> | ||
<h3 class="mt-lg-0">What happens next?</h3> | ||
<p>Your donation will be sent out to <strong><%= @fund.name %> ecosystem projects</strong> in the next allocation, happening on <strong>25 December 2024</strong>.</p> | ||
<h3>Need to amend your donation?</h3> | ||
<p><a href="#">Log in</a> to your Open Collective account to make changes until 25th December 2024. | ||
</p> | ||
<h3>Any problems at all</h3> | ||
<p><a href="#">Contact us</a></p> | ||
</div> | ||
</div> | ||
<% end %> | ||
|
||
</div> |