This commit is contained in:
iCross 2013-05-25 10:13:18 +08:00
parent 88c57e0b0c
commit ba7d6558ee
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ class Survey
end
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
else
''