<%= h @poll.title %>
<% if @poll.target_for_sorting.present? && @poll.target_for_sorting > 0 -%>
<%= Poll.human_attribute_name( 'target_for_sorting') %>
<%= currencyhelp_compose( @poll.currency, @poll.target_integer, @poll.target_fraction, false, true ) %>
<% end -%>
<%= RedCloth.new( @poll.description || '' ).to_html %>
<%= Poll.human_attribute_name( 'votes' ) %>
|
<%= @poll.votes %> |
<% if @poll.target_for_sorting.present? && @poll.target_for_sorting > 0 %>
<%= Poll.human_attribute_name( 'target_for_sorting' ) %> |
<%= currencyhelp_compose( @poll.currency, @poll.target_integer, @poll.target_fraction ) %> |
<% end %>
<%= Poll.human_attribute_name( 'total_for_sorting' ) %> |
<%= currencyhelp_compose( @poll.currency, @poll.total_integer, @poll.total_fraction ) %>
<%= @poll.percentage_complete( true ) %>
|
<%= Poll.human_attribute_name( 'workflow_state' ) %> |
<%= apphelp_state( @poll.workflow_state ) %>
<%= help_link( "poll_states" ) %>
|
Help |
More information about the bounty scheme
Bounty scheme discussion forum
|
<% if ( @poll.workflow_state.to_sym == Poll::STATE_OPEN ) -%>
<%=
apphelp_protected_button_to(
:new,
{
:method => :new_poll_donation_path,
:controller => DonationsController,
:bypass => true,
:icon => :donate
},
@poll
)
%>
<% end -%>
<%=
apphelp_protected_buttons_to(
[ :index, { :method => :polls_path } ],
[ :edit, { :method => :edit_poll_path }, @poll ]
)
%>
<% if current_user.try( :admin? ) && @poll.donations.count > 0 -%>
<%= apphelp_view_hint( :list_of_donations ) %>
<%= render :partial => 'donations/list' %>
<% end -%>