fix
This commit is contained in:
parent
88c57e0b0c
commit
ba7d6558ee
|
@ -58,7 +58,7 @@ class Survey
|
||||||
end
|
end
|
||||||
|
|
||||||
def write
|
def write
|
||||||
if self.deadline || Time.now < self.deadline
|
if self.deadline && Time.now < self.deadline
|
||||||
('<a href="' + Rails.application.routes.url_helpers.panel_survey_front_end_survey_path(self) + '"><img src="/assets/write.png" /></a>').html_safe
|
('<a href="' + Rails.application.routes.url_helpers.panel_survey_front_end_survey_path(self) + '"><img src="/assets/write.png" /></a>').html_safe
|
||||||
else
|
else
|
||||||
''
|
''
|
||||||
|
|
Reference in New Issue