mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-21 12:05:07 +01:00
parent
96f905f409
commit
f44091d653
@ -7,7 +7,7 @@
|
|||||||
- options.each do |option|
|
- options.each do |option|
|
||||||
%li
|
%li
|
||||||
- if show_results
|
- if show_results
|
||||||
- percent = 100 * option.votes_count / poll.votes_count
|
- percent = poll.votes_count > 0 ? 100 * option.votes_count / poll.votes_count : 0
|
||||||
%span.poll__chart{ style: "width: #{percent}%" }
|
%span.poll__chart{ style: "width: #{percent}%" }
|
||||||
|
|
||||||
%label.poll__text><
|
%label.poll__text><
|
||||||
|
Loading…
Reference in New Issue
Block a user