未配置课程的班级打开报500
This commit is contained in:
parent
f12423e8a6
commit
04207609cb
|
@ -595,19 +595,19 @@ module CoursesHelper
|
||||||
def get_acts_list_type type
|
def get_acts_list_type type
|
||||||
case type
|
case type
|
||||||
when "homework"
|
when "homework"
|
||||||
">" + l(:label_homework_acts)
|
"> " + l(:label_homework_acts)
|
||||||
when "news"
|
when "news"
|
||||||
">" + l(:label_news_acts)
|
"> " + l(:label_news_acts)
|
||||||
when "attachment"
|
when "attachment"
|
||||||
">" + l(:label_attachment_acts)
|
"> " + l(:label_attachment_acts)
|
||||||
when "message"
|
when "message"
|
||||||
">" + l(:label_message_acts)
|
"> " + l(:label_message_acts)
|
||||||
when "journalsForMessage"
|
when "journalsForMessage"
|
||||||
">" + l(:label_journalsForMessage_acts)
|
"> " + l(:label_journalsForMessage_acts)
|
||||||
when "poll"
|
when "poll"
|
||||||
">" + l(:label_poll_acts)
|
"> " + l(:label_poll_acts)
|
||||||
else
|
else
|
||||||
">" + l(:label_all_cats)
|
"> " + l(:label_all_cats)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,10 @@
|
||||||
<% student_num = studentCount(@course) %>
|
<% student_num = studentCount(@course) %>
|
||||||
<% course_file_num = visable_attachemnts_incourse(@course).count %>
|
<% course_file_num = visable_attachemnts_incourse(@course).count %>
|
||||||
<p class="sy_cgrey mb10">
|
<p class="sy_cgrey mb10">
|
||||||
<%=link_to @course.syllabus.title, syllabus_path(@course.syllabus_id), :class => 'sy_cgrey' %>
|
<% if @course.syllabus %>
|
||||||
>
|
<%=link_to @course.syllabus.title, syllabus_path(@course.syllabus_id), :class => 'sy_cgrey' %>
|
||||||
|
>
|
||||||
|
<% end %>
|
||||||
<%=link_to @course.name, course_path(@course), :class => 'sy_cgrey' %>
|
<%=link_to @course.name, course_path(@course), :class => 'sy_cgrey' %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
@ -16,7 +18,9 @@
|
||||||
<li><%= link_to "班级配置", {:controller => 'courses', :action => 'settings', :id => @course}, :class => "postOptionLink" %></li>
|
<li><%= link_to "班级配置", {:controller => 'courses', :action => 'settings', :id => @course}, :class => "postOptionLink" %></li>
|
||||||
<li><%= link_to @course.is_public == 0 ? "设为公开" : "设为私有", {:controller => 'courses', :action => 'private_or_public', :id => @course},:remote=>true,:confirm=>"您确定要设置为"+(@course.is_public == 0 ? "公开" : "私有")+"吗", :class => "postOptionLink" %></li>
|
<li><%= link_to @course.is_public == 0 ? "设为公开" : "设为私有", {:controller => 'courses', :action => 'private_or_public', :id => @course},:remote=>true,:confirm=>"您确定要设置为"+(@course.is_public == 0 ? "公开" : "私有")+"吗", :class => "postOptionLink" %></li>
|
||||||
<li><%= link_to "复制学期", copy_course_course_path(@course.id),:remote=>true, :class => "postOptionLink" %></li>
|
<li><%= link_to "复制学期", copy_course_course_path(@course.id),:remote=>true, :class => "postOptionLink" %></li>
|
||||||
<li><%= link_to "进入课程", syllabus_path(@course.syllabus), :class => "postOptionLink", :target => "_blank" %></li>
|
<% if @course.syllabus %>
|
||||||
|
<li><%= link_to "进入课程", syllabus_path(@course.syllabus), :class => "postOptionLink", :target => "_blank" %></li>
|
||||||
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in New Issue