|
|
|
@ -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);
|
|
|
|
|