选入我得课程列表中添加课程学期的显示
This commit is contained in:
parent
bb66ef54f6
commit
5a20945e0d
|
@ -28,6 +28,7 @@ class FilesController < ApplicationController
|
|||
include SortHelper
|
||||
include FilesHelper
|
||||
helper :project_score
|
||||
include CoursesHelper
|
||||
|
||||
def show_attachments obj
|
||||
@attachments = []
|
||||
|
|
|
@ -48,7 +48,7 @@ module FilesHelper
|
|||
s = ''
|
||||
courses.each do |course|
|
||||
if !(attachment.container_type && attachment.container_id == course.id) && is_course_teacher(User.current,course)
|
||||
s << "<label>#{ check_box_tag name, course.id, false, :id => nil } #{h course.name}</label><br/>"
|
||||
s << "<label>#{ check_box_tag name, course.id, false, :id => nil } #{h course.name}</label> [#{get_course_term course}]<br/>"
|
||||
end
|
||||
end
|
||||
s.html_safe
|
||||
|
|
Loading…
Reference in New Issue