From 24fed6824749fe4bde5349eb8783866bb2eed77c Mon Sep 17 00:00:00 2001 From: Ilyaaaaaaaaaaaaa Zhitomirskiy Date: Thu, 28 Jul 2011 16:38:43 -0700 Subject: [PATCH] added the buttons --- app/views/aspects/index.html.haml | 24 ++++++++++++++++++++++++ public/images/icons/coffee.png | Bin 0 -> 267 bytes 2 files changed, 24 insertions(+) create mode 100644 public/images/icons/coffee.png diff --git a/app/views/aspects/index.html.haml b/app/views/aspects/index.html.haml index a0ef6f2c2..f1949cf81 100644 --- a/app/views/aspects/index.html.haml +++ b/app/views/aspects/index.html.haml @@ -81,3 +81,27 @@ = t('bookmarklet.heading') .content != t('bookmarklet.explanation', :link => link_to(t('bookmarklet.explanation_link_text'), bookmarklet)) + + .section + .title + = image_tag('/images/icons/coffee.png') + %h5 + Donate + .content + Keep JoinDiaspora running fast, buy our servers coffee + = form_tag "https://www.paypal.com/cgi-bin/webscr", :method => 'post' do + = hidden_field_tag "cmd", "_s-xclick" + + = hidden_field_tag "hosted_button_id", "WPG875V39Y9RA" + = hidden_field_tag "on0", "Type" + = hidden_field_tag "modify" , "2" + + What monthly amount + %br + + = select_tag :os0, options_from_collection_for_select(["Caffee mocha : $3.00USD", "Caffee Americano : $5.00USD", "Box of Joe : $20.00USD"], "to_s", "to_s") + = hidden_field_tag "currency_code", "USD" + = submit_tag "Coffee!!" + / "https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.gif" +/= hidden_field_tag "cmd", "_s-xclick" + diff --git a/public/images/icons/coffee.png b/public/images/icons/coffee.png new file mode 100644 index 0000000000000000000000000000000000000000..ba9540216f5b3461550f8b5047fe201a2640b63c GIT binary patch literal 267 zcmeAS@N?(olHy`uVBq!ia0vp^0zk~g!3HGv?z=Y!NHG=%xjQkeJ16rJ$YD$Jc6VX; z4}uH!E}sk(;VkfoEM{Qf76xHPhFNnYfP(BLp1!W^x7lUH6uIS95-$OTx;DNumrLBD+WVn!(oS3wRLuI6PdGS@jQbV3