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:
- 1368 Bytes
1 | <h1><%= h @poll.title %></h1> |
2 | |
3 | <p /> |
4 | <%= RedCloth.new( @poll.description || '' ).to_html %> |
5 | |
6 | <table border="1" cellspacing="1" cellpadding="0"> |
7 | <tr> |
8 | <th> |
9 | <%= Poll.human_attribute_name( 'votes' ) %> |
10 | </th> |
11 | <td><%= @poll.votes %></td> |
12 | </tr> |
13 | <tr> |
14 | <th><%= Poll.human_attribute_name( 'total' ) %></th> |
15 | <td><%= currencyhelp_compose( @poll.currency, @poll.total_integer, @poll.total_fraction ) %></td> |
16 | </tr> |
17 | <tr> |
18 | <th><%= Poll.human_attribute_name( 'workflow_state' ) %></th> |
19 | <td class="poll_state"> |
20 | <%= apphelp_state( @poll.workflow_state ) %> |
21 | <%= help_link( "poll_states" ) %> |
22 | </td> |
23 | </tr> |
24 | </table> |
25 | |
26 | <p /> |
27 | <div class="buttons aligned"> |
28 | <% if ( @poll.workflow_state.to_sym == Poll::STATE_OPEN ) -%> |
29 | <%= |
30 | apphelp_protected_button_to( |
31 | :new, |
32 | { |
33 | :method => :new_poll_donation_path, |
34 | :controller => DonationsController, |
35 | :bypass => true, |
36 | :icon => :donate |
37 | }, |
38 | @poll |
39 | ) |
40 | %> |
41 | <% end -%> |
42 | <%= |
43 | apphelp_protected_buttons_to( |
44 | [ :index, { :method => :polls_path } ], |
45 | [ :edit, { :method => :edit_poll_path }, @poll ] |
46 | ) |
47 | %> |
48 | </div> |
49 | <% if current_user.try( :admin? ) && @poll.donations.count > 0 -%> |
50 | |
51 | <p /> |
52 | <h3><%= apphelp_view_hint( :list_of_donations ) %></h3> |
53 | |
54 | <p /> |
55 | <%= render :partial => 'donations/list' %> |
56 | <% end -%> |