diff --git a/app/views/syllabuses/_syllabus_course_list.html.erb b/app/views/syllabuses/_syllabus_course_list.html.erb index 6adcae4a7..05555d341 100644 --- a/app/views/syllabuses/_syllabus_course_list.html.erb +++ b/app/views/syllabuses/_syllabus_course_list.html.erb @@ -79,7 +79,8 @@ <% if User.current.member_of_syl?(@syllabus) %>

该课程还未创建班级,请 <%= link_to "新建班级", new_course_path(:host=> Setting.host_course, :syllabus_id => @syllabus.id), :class => "sy_corange", :target => '_blank'%> - ,谢谢啦!

+ ,谢谢啦!
只有创建班级后才可以开展在线教学哦~ +

<% else %>

该课程还未创建班级,敬请期待!

<% end %> diff --git a/app/views/syllabuses/show.html.erb b/app/views/syllabuses/show.html.erb index 7e5af4ec0..7587262eb 100644 --- a/app/views/syllabuses/show.html.erb +++ b/app/views/syllabuses/show.html.erb @@ -28,6 +28,9 @@
+ <% if User.current == @syllabus.user && @syllabus.courses.empty? %> +

您还没有创建班级,只有<%= link_to "创建班级", new_course_path(:host=> Setting.host_course, :syllabus_id => @syllabus.id), :class => "linkBlue2", :target => '_blank'%>后才可以开展在线教学哦~

+ <% end %> <% if @syllabus.des_status == 0 && User.current == @syllabus.user %>

您建立的课程尚未填写课程大纲,请完善您的 <%=link_to '课程大纲', edit_syllabus_path(@syllabus), :class => 'sy_corange' %>,谢谢啦!