Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 390
- Log:
Initial import of Canvass, a donations-based poll application.
- Author:
- rool
- Date:
- Mon Mar 21 14:58:04 +0000 2011
- Size:
- 2275 Bytes
1 | <table border="1" cellspacing="1" cellpadding="0"> |
2 | <tr> |
3 | <th><%= Currency.human_attribute_name( 'name' ) %></th> |
4 | <td><%=h @currency.name %></td> |
5 | </tr> |
6 | <tr> |
7 | <th> |
8 | <%= Currency.human_attribute_name( 'code' ) %> |
9 | (<a target="_blank" href="http://www.iso.org/iso/support/faqs/faqs_widely_used_standards/widely_used_standards_other/currency_codes/currency_codes_list-1.htm">ISO 4217</a>) |
10 | (<a target="_blank" href="http://en.wikipedia.org/wiki/ISO_4217">?</a>) |
11 | </th> |
12 | <td><%=h @currency.code %></td> |
13 | </tr> |
14 | <tr> |
15 | <th><%= Currency.human_attribute_name( 'symbol' ) %></th> |
16 | <td>"<%=h @currency.symbol %>"</td> |
17 | </tr> |
18 | <tr> |
19 | <th><%= Currency.human_attribute_name( 'show_after_number' ) %></th> |
20 | <td><%= apphelp_boolean( @currency.show_after_number ) %></td> |
21 | </tr> |
22 | <tr> |
23 | <th><%= Currency.human_attribute_name( 'decimal_precision' ) %></th> |
24 | <td><%=h @currency.decimal_precision %></td> |
25 | </tr> |
26 | <tr> |
27 | <th><%= Currency.human_attribute_name( 'rounding_algorithm' ) %></th> |
28 | <td><%=h currencyhelp_rounding_algorithm( @currency.rounding_algorithm ) %></td> |
29 | </tr> |
30 | <tr> |
31 | <th><%= Currency.human_attribute_name( 'formatting_template' ) %></th> |
32 | <td> |
33 | "<%=h @currency.integer_template %>" |
34 | <% if @currency.decimal_precision > 0 -%> |
35 | "<%=h @currency.delimiter %>" |
36 | "<%=h @currency.fraction_template %>" |
37 | <% end -%> |
38 | </td> |
39 | </tr> |
40 | <tr valign="top"> |
41 | <th><%= Currency.human_attribute_name( 'examples' ) %></th> |
42 | <td> |
43 | <%= currencyhelp_print( @currency, rand( 10000 ) / ( rand * 10000 ) ) %><br /> |
44 | <%= currencyhelp_print( @currency, rand( 1000000 ) / ( rand * 10000 ) ) %><br /> |
45 | <%= currencyhelp_print( @currency, rand( 100000000 ) / ( rand * 10000 ) ) %><br /> |
46 | <%= currencyhelp_print( @currency, '1212121212.1212121212' ) %><br /> |
47 | <%= currencyhelp_print( @currency, '8989898989.8989898989' ) %><br /> |
48 | <%= currencyhelp_print( @currency, '5555555555.5555555555' ) %> |
49 | </td> |
50 | </tr> |
51 | </table> |
52 | |
53 | <p /> |
54 | <div class="buttons"> |
55 | <%= |
56 | apphelp_protected_buttons_to( |
57 | [ :edit, { :method => :edit_currency_path }, @currency ], |
58 | [ :index, { :method => :currencies_path } ] |
59 | ) |
60 | %> |
61 | </div> |