Fix show_voting? so it is true even during the voting period
This commit is contained in:
parent
653395c123
commit
23c14f82f8
3 changed files with 8 additions and 6 deletions
|
|
@ -117,7 +117,8 @@ class Program < ApplicationRecord
|
|||
def show_voting?
|
||||
return true unless blind_voting
|
||||
|
||||
Time.current > voting_end_date
|
||||
# TODO-SNAPCON: UPDATE TESTS
|
||||
# Time.current > voting_end_date
|
||||
end
|
||||
|
||||
##
|
||||
|
|
|
|||
|
|
@ -22,20 +22,20 @@
|
|||
- if voting_period
|
||||
- max_rating.times do |counter|
|
||||
- if event.user_rating(current_user) > counter
|
||||
= link_to '',
|
||||
= link_to('',
|
||||
vote_admin_conference_program_event_path(conference_id,
|
||||
event, rating: counter + 1),
|
||||
remote: true,
|
||||
id: "label#{counter + 1}",
|
||||
class: 'rating myrating bright',
|
||||
voted: true
|
||||
voted: true)
|
||||
- else
|
||||
= link_to '',
|
||||
= link_to('',
|
||||
vote_admin_conference_program_event_path(conference_id,
|
||||
event, rating: counter + 1),
|
||||
remote: true,
|
||||
id: "label#{counter + 1}",
|
||||
class: 'rating myrating'
|
||||
class: 'rating myrating')
|
||||
- else
|
||||
= rating_stars(event.user_rating(current_user), max_rating, voted: true)
|
||||
(Voting period is closed)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue