socialforge/app/helpers/contestant_works_helper.rb

17 lines
240 B
Ruby
Raw Normal View History

2016-12-23 21:44:03 +08:00
#encoding: utf-8
2016-12-22 10:01:37 +08:00
module ContestantWorksHelper
2016-12-23 21:44:03 +08:00
def get_status status
str = ""
case status
when 0
str = "未提交"
when 1
str = "已提交"
when 2
str = "迟交"
end
str
end
2016-12-22 10:01:37 +08:00
end