mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Migration and template for email invoice
This commit is contained in:
parent
68352e3d8f
commit
6c9267d791
2 changed files with 22 additions and 0 deletions
9
migrations/108_email_invoice.rb
Normal file
9
migrations/108_email_invoice.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
Sequel.migration do
|
||||
up {
|
||||
DB.add_column :sites, :email_invoice, :boolean, default: false
|
||||
}
|
||||
|
||||
down {
|
||||
DB.drop_column :sites, :email_invoice
|
||||
}
|
||||
end
|
13
views/templates/email/invoice.erb
Normal file
13
views/templates/email/invoice.erb
Normal file
|
@ -0,0 +1,13 @@
|
|||
Neocities Invoice
|
||||
|
||||
For: Neocities Supporter Account
|
||||
|
||||
Date: <%= date.strftime("%D") %>
|
||||
|
||||
Billing Period: <%= period_start.strftime("%D") %> - <%= period_end.strftime("%D") %>
|
||||
|
||||
Amount: <%= Money.new(amount, "USD").format %>
|
||||
|
||||
You have been successfully charged. Thank you for being a Neocities supporter!
|
||||
|
||||
- The Neocities Team
|
Loading…
Add table
Reference in a new issue