Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 489
- Log:
Jan 2024 bounty system updates
- Author:
- rool
- Date:
- Sun Jan 28 09:30:54 +0000 2024
- Size:
- 2205 Bytes
1 | <h1><%= h @poll.title %></h1> |
2 | |
3 | <% if @poll.target_for_sorting.present? && @poll.target_for_sorting > 0 -%> |
4 | <h3> |
5 | <%= Poll.human_attribute_name( 'target_for_sorting') %> |
6 | <%= currencyhelp_compose( @poll.currency, @poll.target_integer, @poll.target_fraction, false, true ) %> |
7 | </h3> |
8 | <% end -%> |
9 | |
10 | <p /> |
11 | <%= RedCloth.new( @poll.description || '' ).to_html %> |
12 | |
13 | <table border="1" cellspacing="1" cellpadding="0"> |
14 | <tr> |
15 | <th> |
16 | <%= Poll.human_attribute_name( 'votes' ) %> |
17 | </th> |
18 | <td><%= @poll.votes %></td> |
19 | </tr> |
20 | <% if @poll.target_for_sorting.present? && @poll.target_for_sorting > 0 %> |
21 | <tr> |
22 | <th><%= Poll.human_attribute_name( 'target_for_sorting' ) %></th> |
23 | <td><%= currencyhelp_compose( @poll.currency, @poll.target_integer, @poll.target_fraction ) %></td> |
24 | </tr> |
25 | <% end %> |
26 | <tr> |
27 | <th><%= Poll.human_attribute_name( 'total_for_sorting' ) %></th> |
28 | <td> |
29 | <%= currencyhelp_compose( @poll.currency, @poll.total_integer, @poll.total_fraction ) %> |
30 | <%= @poll.percentage_complete( true ) %> |
31 | </td> |
32 | </tr> |
33 | |
34 | <tr> |
35 | <th><%= Poll.human_attribute_name( 'workflow_state' ) %></th> |
36 | <td class="poll_state"> |
37 | <%= apphelp_state( @poll.workflow_state ) %> |
38 | <%= help_link( "poll_states" ) %> |
39 | </td> |
40 | </tr> |
41 | |
42 | <tr valign="top"> |
43 | <th>Help</th> |
44 | <td> |
45 | <a href="/content/documents/bounties">More information about the bounty scheme</a><br /> |
46 | <a href="/forum/forums/8">Bounty scheme discussion forum</a> |
47 | </td> |
48 | </tr> |
49 | </table> |
50 | |
51 | <p /> |
52 | <div class="buttons aligned"> |
53 | <% if ( @poll.workflow_state.to_sym == Poll::STATE_OPEN ) -%> |
54 | <%= |
55 | apphelp_protected_button_to( |
56 | :new, |
57 | { |
58 | :method => :new_poll_donation_path, |
59 | :controller => DonationsController, |
60 | :bypass => true, |
61 | :icon => :donate |
62 | }, |
63 | @poll |
64 | ) |
65 | %> |
66 | <% end -%> |
67 | <%= |
68 | apphelp_protected_buttons_to( |
69 | [ :index, { :method => :polls_path } ], |
70 | [ :edit, { :method => :edit_poll_path }, @poll ] |
71 | ) |
72 | %> |
73 | </div> |
74 | <% if current_user.try( :admin? ) && @poll.donations.count > 0 -%> |
75 | |
76 | <p /> |
77 | <h3><%= apphelp_view_hint( :list_of_donations ) %></h3> |
78 | |
79 | <p /> |
80 | <%= render :partial => 'donations/list' %> |
81 | <% end -%> |