Merge pull request #1959 from lprelle/translate_donate_button

move _donate.html.erb to _donate.html.haml and make it translateable
This commit is contained in:
Jonne Hass 2011-09-12 09:32:01 -07:00
commit df8a2261d1
2 changed files with 11 additions and 15 deletions

View file

@ -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>

View file

@ -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')}