Skip to content
Extraits de code Groupes Projets
Valider 00571b84 rédigé par Ilyaaaaaaaaaaaaa Zhitomirskiy's avatar Ilyaaaaaaaaaaaaa Zhitomirskiy
Parcourir les fichiers

completed donate option

parent 7327c882
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Fichier déplacé
...@@ -82,12 +82,13 @@ ...@@ -82,12 +82,13 @@
.content .content
!= t('bookmarklet.explanation', :link => link_to(t('bookmarklet.explanation_link_text'), bookmarklet)) != t('bookmarklet.explanation', :link => link_to(t('bookmarklet.explanation_link_text'), bookmarklet))
.section - unless AppConfig[:paypal_hosted_button_id].blank?
.title .section
= image_tag('/images/icons/coffee.png') .title
%h5 = image_tag('/images/icons/coffee.png')
Donate %h5
.content = t('.donate')
Keep JoinDiaspora.com running fast, buy our servers their monthly coffee fix! .content
%br = t('.keep_us_running', :pod => URI.parse(AppConfig[:pod_url]).host)
= render 'shared/donate' %br
= render 'shared/donate'
<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>
...@@ -130,6 +130,8 @@ defaults: &defaults ...@@ -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. # Set this to true if you want to do everything synchronously instead of using resque, our redis-backed queue system.
single_process_mode: true single_process_mode: true
# Use paypal for recurring donations
paypal_hosted_button_id: ''
# Use this section to override default settings in specific environments # Use this section to override default settings in specific environments
development: development:
......
...@@ -147,6 +147,8 @@ en: ...@@ -147,6 +147,8 @@ en:
family: "Family" family: "Family"
work: "Work" work: "Work"
index: index:
donate: "Donate"
keep_us_running: "Keep %{pod} running fast, buy our servers their monthly coffee fix!"
your_aspects: "Your Aspects" your_aspects: "Your Aspects"
tags_following: "Followed Tags" tags_following: "Followed Tags"
no_tags: "No tags" no_tags: "No tags"
......
public/images/icons/coffee.png

267 octets | W: | H:

public/images/icons/coffee.png

309 octets | W: | H:

public/images/icons/coffee.png
public/images/icons/coffee.png
public/images/icons/coffee.png
public/images/icons/coffee.png
  • 2-up
  • Swipe
  • Onion skin
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter