课程大纲缺少创建班级才能开展教学的引导说明

This commit is contained in:
cxt 2016-11-04 13:55:29 +08:00
parent 52ad68ffe1
commit a9265f3b35
2 changed files with 5 additions and 1 deletions

View File

@ -79,7 +79,8 @@
<% if User.current.member_of_syl?(@syllabus) %> <% if User.current.member_of_syl?(@syllabus) %>
<p class="sy_tab_con_p">该课程还未创建班级,请 <p class="sy_tab_con_p">该课程还未创建班级,请
<%= link_to "新建班级", new_course_path(:host=> Setting.host_course, :syllabus_id => @syllabus.id), :class => "sy_corange", :target => '_blank'%> <%= link_to "新建班级", new_course_path(:host=> Setting.host_course, :syllabus_id => @syllabus.id), :class => "sy_corange", :target => '_blank'%>
,谢谢啦!</p> ,谢谢啦!<br/>只有创建班级后才可以开展在线教学哦~
</p>
<% else %> <% else %>
<p class="sy_tab_con_p">该课程还未创建班级,敬请期待!</p> <p class="sy_tab_con_p">该课程还未创建班级,敬请期待!</p>
<% end %> <% end %>

View File

@ -28,6 +28,9 @@
</li> </li>
</ul> </ul>
<div id="sy_tab_con_1"> <div id="sy_tab_con_1">
<% if User.current == @syllabus.user && @syllabus.courses.empty? %>
<p class="nodata c_red">您还没有创建班级,只有<%= link_to "创建班级", new_course_path(:host=> Setting.host_course, :syllabus_id => @syllabus.id), :class => "linkBlue2", :target => '_blank'%>后才可以开展在线教学哦~</p>
<% end %>
<% if @syllabus.des_status == 0 && User.current == @syllabus.user %> <% if @syllabus.des_status == 0 && User.current == @syllabus.user %>
<div class="icons_tishi"><img src="../images/sy/icons_tan.png" width="110" height="110" alt="" ></div> <div class="icons_tishi"><img src="../images/sy/icons_tan.png" width="110" height="110" alt="" ></div>
<p class="sy_tab_con_p">您建立的课程尚未填写课程大纲,请完善您的 <%=link_to '课程大纲', edit_syllabus_path(@syllabus), :class => 'sy_corange' %>,谢谢啦!</p> <p class="sy_tab_con_p">您建立的课程尚未填写课程大纲,请完善您的 <%=link_to '课程大纲', edit_syllabus_path(@syllabus), :class => 'sy_corange' %>,谢谢啦!</p>