Merge pull request #3101 from despora/fallback_for_donation

added fallback for donation
This commit is contained in:
Maxwell Salzberg 2012-04-09 10:24:20 -07:00
commit 0eb946497f
4 changed files with 21 additions and 11 deletions

View file

@ -0,0 +1,6 @@
%form{:action => "https://diaspora-project-site.heroku.com/donate", :method => "get"}
%select{:name => "monthly_amount"}
%option{:value => "1"} Supporter : $5.00USD
%option{:value => "2"} Member : $10.00USD
%option{:value => "3"} Freedom Fighter : $20.00USD
%input{:name => "submit", :type => "submit", :value => t('aspects.index.donate')}

View file

@ -76,14 +76,17 @@
.content
!= t('bookmarklet.explanation', :link => link_to(t('bookmarklet.explanation_link_text'), bookmarklet))
- if AppConfig[:paypal_hosted_button_id].present?
.section
.section
.title
= image_tag('icons/coffee.png')
%h5
= t('aspects.index.donate')
.content
= t('aspects.index.keep_us_running', :pod => URI.parse(AppConfig[:pod_url]).host)
- if AppConfig[:paypal_hosted_button_id].present?
= t('aspects.index.keep_pod_running', :pod => URI.parse(AppConfig[:pod_url]).host)
%br
= render 'shared/donate'
= render 'shared/donatepod'
- else
= t('aspects.index.keep_diaspora_running')
%br
= render 'shared/donatediaspora'

View file

@ -167,7 +167,8 @@ en:
friends: "Friends"
index:
donate: "Donate"
keep_us_running: "Keep %{pod} running fast and buy servers their coffee fix with a monthly donation!"
keep_pod_running: "Keep %{pod} running fast and buy servers their coffee fix with a monthly donation!"
keep_diaspora_running: "Keep Diaspora development fast with a monthly donation!"
no_tags: "+ Find a tag to follow"
unfollow_tag: "Stop following #%{tag}"
handle_explanation: "This is your Diaspora ID. Like an email address, you can give this to people to reach you."