diff --git a/app/views/shared/_donatediaspora.html.haml b/app/views/shared/_donatediaspora.html.haml new file mode 100644 index 000000000..1094f0aa3 --- /dev/null +++ b/app/views/shared/_donatediaspora.html.haml @@ -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')} diff --git a/app/views/shared/_donate.html.haml b/app/views/shared/_donatepod.html.haml similarity index 100% rename from app/views/shared/_donate.html.haml rename to app/views/shared/_donatepod.html.haml diff --git a/app/views/shared/_right_sections.html.haml b/app/views/shared/_right_sections.html.haml index a8dab6be4..dc550ffa9 100644 --- a/app/views/shared/_right_sections.html.haml +++ b/app/views/shared/_right_sections.html.haml @@ -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 - .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) +.section + .title + = image_tag('icons/coffee.png') + %h5 + = t('aspects.index.donate') + .content + - 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' diff --git a/config/locales/diaspora/en.yml b/config/locales/diaspora/en.yml index b3df2140a..31804f40e 100644 --- a/config/locales/diaspora/en.yml +++ b/config/locales/diaspora/en.yml @@ -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."