Changed function name,added comments
This commit is contained in:
parent
8ce3cdcd6c
commit
3a1e1da9e7
3 changed files with 17 additions and 14 deletions
|
|
@ -45,7 +45,7 @@ module ApplicationHelper
|
|||
def voting_open_or_close(program)
|
||||
return if program.voting_period?
|
||||
if program.voting_start_date > Time.current
|
||||
return 'Voting period has not started yet!'
|
||||
return 'Voting period has nmot started yet!'
|
||||
else # voting_end_date > Date.today because voting_start_date < voting_end_date
|
||||
return 'Voting period is over!'
|
||||
end
|
||||
|
|
@ -598,9 +598,12 @@ module ApplicationHelper
|
|||
concurrent_events
|
||||
end
|
||||
|
||||
def set_hidden_if_conf_is_over(conference)
|
||||
##
|
||||
# ====Gets
|
||||
# a conference object
|
||||
# Sets class hidden if conference is over
|
||||
def hidden_if_conference_over(conference)
|
||||
'hidden' if Date.today > conference.end_date
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue