Sha256: 1d66fcc6b522fbf87cc3e1bcecd9a599bb2d0c1b627bd5b0b3687566b73c1045
Contents?: true
Size: 776 Bytes
Versions: 2
Compression:
Stored size: 776 Bytes
Contents
.poll-answer{:id => poll_answer.to_anchor} - if f = local_assigns[:f] - unless poll_answered?(poll_answer.poll) = f.radio_button :vote, poll_answer.id, :id => "#{poll_answer.to_anchor}_input" %label{:for => "#{poll_answer.to_anchor}_input"} = poll_answer.value - if poll_answered?(poll_answer.poll, poll_answer) %span.poll-answer-voted = t(:your_vote, :scope => :e9_polls) - else %span.poll-answer-value = poll_answer.value %span.poll-answer-bar-outer %span.poll-answer-bar{:style => "width:#{poll_answer.percentage}%", :class => "pab-#{cycle(*(1..(E9Polls.bar_css_class_count)).to_a)}"} %span.poll-answer-votes = poll_answer.votes %span.poll-answer-percentage #{poll_answer.percentage}%
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
e9_polls-1.0.2 | app/views/e9_polls/poll_answers/_poll_answer.html.haml |
e9_polls-1.0.1 | app/views/e9_polls/poll_answers/_poll_answer.html.haml |