|
|
|
@ -86,11 +86,15 @@
|
|
|
|
|
</span>
|
|
|
|
|
<% end %>
|
|
|
|
|
<span id="course_outline_bar">
|
|
|
|
|
<%if @course.tea_id == User.current.id && (@course.outline == 0 || BlogComment.where(:id=>@course.outline).count == 0) %>
|
|
|
|
|
<%if User.current && @course.tea_id == User.current.id && (@course.outline == 0 || BlogComment.where(:id=>@course.outline).count == 0) %>
|
|
|
|
|
<a href="javascript:void(0);" title="设置课程大纲" onclick="course_outline('<%= @course.id%>')" class="mr5 syllabusSetting fl"> </a>
|
|
|
|
|
<% elsif @course.tea_id == User.current.id && @course.outline != 0 && BlogComment.where(:id=>@course.outline).count != 0%>
|
|
|
|
|
<% elsif User.current && @course.tea_id == User.current.id && @course.outline != 0 && BlogComment.where(:id=>@course.outline).count != 0%>
|
|
|
|
|
<a href="<%=show_course_outline_course_path(@course) %>" title="课程大纲" class="mr5 syllabusIcon fl"> </a>
|
|
|
|
|
<% elsif @course.tea_id != User.current.id %>
|
|
|
|
|
<% elsif User.current && @course.tea_id != User.current.id && !@course.is_public? && User.current.member_of_course?(@course)%>
|
|
|
|
|
<a href="<%=show_course_outline_course_path(@course) %>" title="课程大纲" class="mr5 syllabusIcon fl"> </a>
|
|
|
|
|
<% elsif User.current && @course.tea_id != User.current.id && @course.is_public?%>
|
|
|
|
|
<a href="<%=show_course_outline_course_path(@course) %>" title="课程大纲" class="mr5 syllabusIcon fl"> </a>
|
|
|
|
|
<%else%>
|
|
|
|
|
<%end %>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
@ -233,6 +237,7 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
$("#course_outline_list").html('');
|
|
|
|
|
$("#course_outline_hint").show();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|