diff --git a/app/views/shared/_donate.html.erb b/app/views/shared/_donate.html.erb deleted file mode 100644 index 472aa42a2b052b5354f3e4c2f12d79915fec987b..0000000000000000000000000000000000000000 --- a/app/views/shared/_donate.html.erb +++ /dev/null @@ -1,15 +0,0 @@ - -<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> - diff --git a/app/views/shared/_donate.html.haml b/app/views/shared/_donate.html.haml new file mode 100644 index 0000000000000000000000000000000000000000..38a04b6a6c2f95cdf67fbe48e58799ab46b1ab62 --- /dev/null +++ b/app/views/shared/_donate.html.haml @@ -0,0 +1,11 @@ +%form{:action => "https://www.paypal.com/cgi-bin/webscr", :method => "post"} + %input{:name => "cmd", :type => "hidden", :value => "_s-xclick"} + %input{:name => "hosted_button_id", :type => "hidden", :value => AppConfig[:paypal_hosted_button_id]} + %input{:name => "on0", :type => "hidden", :value => "Type"} + %input{:name => "modify", :type => "hidden", :value => "2"} + %select{:name => "os0"} + %option{:value => "Mocha"} Mocha : $3.00USD + %option{:value => "Americano"} Americano : $5.00USD + %option{:value => "Box o' Joe"} Box o' Joe : $20.00USD + %input{:name => "currency_code", :type => "hidden", :value => "USD"} + %input{:name => "submit", :type => "submit", :value => t('aspects.index.donate')}