修改教师查看匿评列表不正确
This commit is contained in:
parent
bed9adaa7a
commit
bef4735f40
|
@ -35,11 +35,11 @@
|
|||
</div>
|
||||
<div class="ping_undis" id="tbc_04">
|
||||
<!-- 老师评价列表 -->
|
||||
<%= render :partial => 'homework_attach/review',:locals => {:review_list => @teacher_stars,:show_name => true} %>
|
||||
<%= render :partial => 'homework_attach/review',:locals => {:review_list => @teacher_stars,:show_name => true,:show_jour => true} %>
|
||||
</div>
|
||||
<div class="ping_undis" id="tbc_05">
|
||||
<!-- 学生匿评列表 -->
|
||||
<%= render :partial => 'homework_attach/review',:locals => {:review_list => @student_stars,:show_name => false} %>
|
||||
<%= render :partial => 'homework_attach/review',:locals => {:review_list => @student_stars,:show_name => false || @is_teacher, :show_jour => false} %>
|
||||
</div>
|
||||
</div>
|
||||
</div><!---ping_list end--->
|
|
@ -1,8 +1,8 @@
|
|||
<!-- 评论列表,包括老师评论和学生匿评 -->
|
||||
<% if !review_list.nil?%>
|
||||
<% unless review_list.nil?%>
|
||||
<% review_list.each do |review|%>
|
||||
<% user = review.rater %>
|
||||
<% jour = get_homework_review @homework,@is_teacher,user %>
|
||||
<% jour = get_homework_review @homework,show_jour,user %>
|
||||
<div class="ping_C">
|
||||
<div class="ping_dispic">
|
||||
<% if show_name %>
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
<% if @is_teacher %>
|
||||
HoverLi(4);
|
||||
$('#jour_count_4').html('<%= @teacher_stars.count %>');
|
||||
$('#tbc_04').html('<%= escape_javascript(render(:partial => 'homework_attach/review',:locals => {:review_list => @teacher_stars,:show_name => true})) %>');
|
||||
$('#tbc_04').html('<%= escape_javascript(render(:partial => 'homework_attach/review',:locals => {:review_list => @teacher_stars,:show_name => true,:show_jour => true})) %>');
|
||||
//匿评
|
||||
<% elsif @is_anonymous_comments %>
|
||||
HoverLi(5);
|
||||
$('#jour_count_5').html('<%= @student_stars.count %>');
|
||||
$('#tbc_05').html('<%= escape_javascript(render(:partial => 'homework_attach/review',:locals => {:review_list => @student_stars,:show_name => true})) %>');
|
||||
$('#tbc_05').html('<%= escape_javascript(render(:partial => 'homework_attach/review',:locals => {:review_list => @student_stars,:show_name => false || @is_teacher, :show_jour => false})) %>');
|
||||
//留言
|
||||
<% else %>
|
||||
HoverLi(3);
|
||||
|
|
Loading…
Reference in New Issue