multiple changes

fix blind voting
added more tests
This commit is contained in:
Shlok Srivastava 2017-04-27 08:05:14 +00:00
parent ebe5fb704d
commit e92114a257
2 changed files with 43 additions and 10 deletions

View file

@ -17,16 +17,16 @@
Voters
%td
= raters(@votable_fields)
%table.table
%thead
%table.table
%thead
%td.col-md-2
%b Your Votes
- @votable_fields.each do |field|
%tr
%td.col-md-2
%b Your Votes
- @votable_fields.each do |field|
%tr
%td.col-md-2
= field.title
%td
= rating_for_user @event, current_user, field.title, star: field.stars
= field.title
%td
= rating_for_user @event, current_user, field.title, star: field.stars
- else
%b
= voting_open_or_close(@program)