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:
- 3073 Bytes
1 | <% |
2 | # Make sure that "@items" contains the pagination-enabled list of items to |
3 | # show and render with "render :partial => 'list'". |
4 | -%> |
5 | <div class="searchable_list" id="polls"> |
6 | <% if @items.empty? -%> |
7 | <%= apphelp_view_hint( :no_index_items ) %> |
8 | <p /> |
9 | <div class="buttons"> |
10 | <%= apphelp_protected_button_to( :new, { :method => :new_poll_path } ) %> |
11 | </div> |
12 | <br /><br /> |
13 | <% else -%> |
14 | <table border="1" cellspacing="1" cellpadding="0"> |
15 | <thead> |
16 | <tr> |
17 | <% |
18 | sort_headers_for :poll, Poll.translated_sort_columns() do | header | |
19 | Poll.human_attribute_name( Poll.untranslated_column( header ) ) |
20 | end |
21 | %> |
22 | <th><%= Poll.human_attribute_name( 'percentage_complete' ) %></th> |
23 | <th class="spinner corner"><div id="spinner" style="display: none"></div></th> |
24 | </tr> |
25 | </thead> |
26 | |
27 | <tbody> |
28 | <% for poll in @items %> |
29 | <tr class="<%= cycle( 'odd', 'even' ) %> poll_state <%= poll.workflow_state %>"> |
30 | <td><%= link_to( ( h poll.title ), poll ) %></td> |
31 | <td class="poll_state <%= poll.workflow_state %>"> |
32 | <%= apphelp_state( poll.workflow_state ) %> |
33 | <%= help_link( "poll_states" ) %> |
34 | </td> |
35 | <td align="center"><%=h poll.votes %></td> |
36 | <td align="right"><%= currencyhelp_compose( poll.currency, poll.total_integer, poll.total_fraction ) %></td> |
37 | <td align="center"><%= poll.percentage_complete() %></td> |
38 | <td class="actions"><%= apphelp_index_actions( 'poll', poll ) %></td> |
39 | </tr> |
40 | <% end -%> |
41 | </tbody> |
42 | |
43 | <tfoot> |
44 | <tr> |
45 | <td colspan="6"> |
46 | <div class="buttons"> |
47 | <%= apphelp_protected_button_to( :new, { :method => :new_poll_path } ) %> |
48 | <%= render :partial => 'shared/leightbox_button' %> |
49 | </div> |
50 | <%= apphelp_i18n_will_paginate( @items ) %> |
51 | <div class="links"> |
52 | <% |
53 | if ( defined?( MATCHING_POT_LOCATION ) && |
54 | defined?( MATCHING_POT_CURRENCY ) && |
55 | File.exists?( MATCHING_POT_LOCATION ) ) |
56 | |
57 | string = ( File.open( MATCHING_POT_LOCATION, 'r' ) { | f | f.readline } ).chomp() |
58 | currency = Currency.find_by_code( MATCHING_POT_CURRENCY ) |
59 | |
60 | unless ( currency.nil? || string.to_f.zero? ) |
61 | -%> |
62 | <strong> |
63 | <%= |
64 | link_to( |
65 | apphelp_view_hint( |
66 | :matching_pot, |
67 | controller, |
68 | :amount => currencyhelp_print( currency, string ) |
69 | ), |
70 | '/content/documents/bounties/matching' |
71 | ) |
72 | %> |
73 | </strong> | |
74 | <% end -%> |
75 | <% end -%> |
76 | <a href="/content/documents/bounties">More information</a> | |
77 | <% if params[ :closed ].blank? -%> |
78 | <%= link_to "Show closed & expired items", polls_path( :closed => 'yes' ) %> |
79 | <% else -%> |
80 | <%= link_to "Hide closed & expired items", polls_path() %> |
81 | <% end -%> |
82 | | <a href="/forum/forums/8">Forum</a> |
83 | </div> |
84 | </td> |
85 | </tr> |
86 | </tfoot> |
87 | </table> |
88 | <% end -%> |
89 | </div> |