Sha256: 86fb77d63c42dc85044170734908ac587230df6521775da8374090b2d2959f91
Contents?: true
Size: 749 Bytes
Versions: 3
Compression:
Stored size: 749 Bytes
Contents
<%= div_for(poll) do %> <%#, :class => formol_poll_klass(poll, current_formol_user)) do %> <div class="question"> <%= poll.question %> </div> <% unless display_poll_form?(poll, topic, current_formol_user) %> <ol> <% poll.options.each do |option| %> <li> <%= option.answer %> <%= number_to_percentage((option.votes_count.to_f / poll.votes_count.to_f) * 100) %> </li> <% end %> </ol> <% else %> <%= render 'formol/poll_votes/form', :poll => poll, :topic => topic %> <div class="metas"> <span class="expires_at"> <%= t('.expires_at') %> <time><%= distance_of_time_in_words_to_now(poll.expires_at) %></time> </span> </div> <% end %> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
formol-0.0.6 | app/views/formol/polls/_poll.html.erb |
formol-0.0.5 | app/views/formol/polls/_poll.html.erb |
formol-0.0.4 | app/views/formol/polls/_poll.html.erb |