completed donate option

This commit is contained in:
Ilyaaaaaaaaaaaaa Zhitomirskiy 2011-07-29 11:33:04 -07:00
parent 7327c882b2
commit 00571b84cd
6 changed files with 29 additions and 9 deletions

View file

@ -82,12 +82,13 @@
.content
!= t('bookmarklet.explanation', :link => link_to(t('bookmarklet.explanation_link_text'), bookmarklet))
- unless AppConfig[:paypal_hosted_button_id].blank?
.section
.title
= image_tag('/images/icons/coffee.png')
%h5
Donate
= t('.donate')
.content
Keep JoinDiaspora.com running fast, buy our servers their monthly coffee fix!
= t('.keep_us_running', :pod => URI.parse(AppConfig[:pod_url]).host)
%br
= render 'shared/donate'

View file

@ -0,0 +1,15 @@
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="<%= AppConfig[:paypal_hosted_button_id] %>">
<input type="hidden" name="on0" value="Type">
<input type="hidden" name="modify" value="2">
<select name="os0">
<option value="Mocha">Mocha : $3.00USD</option>
<option value="Americano">Americano : $5.00USD</option>
<option value="Box o' Joe">Box o' Joe : $20.00USD</option>
</select>
<input type="hidden" name="currency_code" value="USD">
<input type="submit" name="submit" value="Donate">
</form>

View file

@ -130,6 +130,8 @@ defaults: &defaults
# Set this to true if you want to do everything synchronously instead of using resque, our redis-backed queue system.
single_process_mode: true
# Use paypal for recurring donations
paypal_hosted_button_id: ''
# Use this section to override default settings in specific environments
development:

View file

@ -147,6 +147,8 @@ en:
family: "Family"
work: "Work"
index:
donate: "Donate"
keep_us_running: "Keep %{pod} running fast, buy our servers their monthly coffee fix!"
your_aspects: "Your Aspects"
tags_following: "Followed Tags"
no_tags: "No tags"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 267 B

After

Width:  |  Height:  |  Size: 309 B