This website works better with JavaScript.
Home
Explore
Help
Sign In
nekobus
/
mastodon_neko
forked from
closed-social/mastodon
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Fix
#10202
(
#10203
)
master
rinsuki
5 years ago
committed by
Eugen Rochko
parent
96f905f409
commit
f44091d653
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/views/stream_entries/_poll.html.haml
+ 1
- 1
app/views/stream_entries/_poll.html.haml
View File
@ -7,7 +7,7 @@
- options.each do |option|
%li
- 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}%" }
%label.poll__text><
Write
Preview
Loading…
Cancel
Save