You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
474 B
27 lines
474 B
# encoding: utf-8
|
|
module CollegesHelper
|
|
def parse_index_type index
|
|
type = ""
|
|
case index
|
|
when "day"
|
|
type = "日"
|
|
when "week"
|
|
type = "周"
|
|
when "mon"
|
|
type = "月"
|
|
when "year"
|
|
type = "年"
|
|
end
|
|
type
|
|
end
|
|
|
|
def course_managers teachers
|
|
str = ""
|
|
teachers.each_with_index do |teacher, index|
|
|
str += "、" if index > 0
|
|
str += teacher.user.try(:show_real_name)
|
|
end
|
|
str
|
|
end
|
|
end
|