Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 423
- Log:
Add ROOL site-specific links to CMS and forum pages in the
list and details views for bounties. Make the title of a
bounty in the list view a link to the 'show' page too.
- Author:
- rool
- Date:
- Fri Apr 15 16:56:34 +0100 2011
- Size:
- 1595 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 | <tr valign="top"> |
25 | <th>Help</th> |
26 | <td> |
27 | <a href="/content/documents/bounties">More information about the bounty scheme</a><br /> |
28 | <a href="/forum/forums/8">Bounty scheme discussion forum</a> |
29 | </td> |
30 | </tr> |
31 | </table> |
32 | |
33 | <p /> |
34 | <div class="buttons aligned"> |
35 | <% if ( @poll.workflow_state.to_sym == Poll::STATE_OPEN ) -%> |
36 | <%= |
37 | apphelp_protected_button_to( |
38 | :new, |
39 | { |
40 | :method => :new_poll_donation_path, |
41 | :controller => DonationsController, |
42 | :bypass => true, |
43 | :icon => :donate |
44 | }, |
45 | @poll |
46 | ) |
47 | %> |
48 | <% end -%> |
49 | <%= |
50 | apphelp_protected_buttons_to( |
51 | [ :index, { :method => :polls_path } ], |
52 | [ :edit, { :method => :edit_poll_path }, @poll ] |
53 | ) |
54 | %> |
55 | </div> |
56 | <% if current_user.try( :admin? ) && @poll.donations.count > 0 -%> |
57 | |
58 | <p /> |
59 | <h3><%= apphelp_view_hint( :list_of_donations ) %></h3> |
60 | |
61 | <p /> |
62 | <%= render :partial => 'donations/list' %> |
63 | <% end -%> |