|
|
@ -4,22 +4,22 @@
|
|
|
|
<div class="syllabus_class_w fontGrey3 student_work_<%= st.id%>" style="<%=!is_expand ? '' : 'cursor: pointer;' %>" <%= !is_expand ? '' : "onclick = "+"show_student_work('"+"#{student_work_path(st)}"+"')" %>>
|
|
|
|
<div class="syllabus_class_w fontGrey3 student_work_<%= st.id%>" style="<%=!is_expand ? '' : 'cursor: pointer;' %>" <%= !is_expand ? '' : "onclick = "+"show_student_work('"+"#{student_work_path(st)}"+"')" %>>
|
|
|
|
<%= link_to(image_tag(url_to_avatar(st.user),:width =>"40",:height => "40", :style => "display:block;"),user_activities_path(st.user), :class => "fl") %>
|
|
|
|
<%= link_to(image_tag(url_to_avatar(st.user),:width =>"40",:height => "40", :style => "display:block;"),user_activities_path(st.user), :class => "fl") %>
|
|
|
|
<% if !is_expand %>
|
|
|
|
<% if !is_expand %>
|
|
|
|
<span class="fl student_work_<%= st.id%>" style="width:135px;">
|
|
|
|
<span class="fl student_work_<%= st.id%>" style="width:105px;">
|
|
|
|
<span class="fl hidden ml5" style="max-width:90px;"><%= st.user.show_name %></span>
|
|
|
|
<span class="fl hidden ml5" style="max-width:60px;"><%= st.user.show_name %></span>
|
|
|
|
<span class="fl">(组长)</span>
|
|
|
|
<span class="fl">(组长)</span>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<span class="fl hidden student_work_<%= st.id%>" style="width:90px; margin-right:3px;">
|
|
|
|
<span class="fl hidden student_work_<%= st.id%>" style="width:90px; margin-right:3px;">
|
|
|
|
<span class="fontGrey2">学号</span>:<%= st.user.user_extensions.nil? ? "--" : st.user.user_extensions.student_id%>
|
|
|
|
<span class="fontGrey2">学号</span>:<%= st.user.user_extensions.nil? ? "--" : st.user.user_extensions.student_id%>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<% else %>
|
|
|
|
<% else %>
|
|
|
|
<span class="fl student_work_<%= st.id%>" style="width:135px;">
|
|
|
|
<span class="fl student_work_<%= st.id%>" style="width:105px;">
|
|
|
|
<span class="fl hidden ml5" style="max-width:90px;"><%= st.user.show_name %></span>
|
|
|
|
<span class="fl hidden ml5" style="max-width:60px;"><%= st.user.show_name %></span>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<span class="fl student_work_<%= st.id%> hidden" style="width:90px; margin-right:3px;">
|
|
|
|
<span class="fl student_work_<%= st.id%> hidden" style="width:90px; margin-right:3px;">
|
|
|
|
<span class="fontGrey2">学号</span>:<%= st.user.user_extensions.nil? ? "--" : st.user.user_extensions.student_id%>
|
|
|
|
<span class="fontGrey2">学号</span>:<%= st.user.user_extensions.nil? ? "--" : st.user.user_extensions.student_id%>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<div class="flex-container fl" style="width:351px;">
|
|
|
|
<div class="flex-container fl" style="width:376px;">
|
|
|
|
<div class="flex-cell"><span class="<%= score_color st.teacher_score%> ml35"><%= st.teacher_score.nil? ? "--" : format("%.1f",st.teacher_score)%></span></div>
|
|
|
|
<div class="flex-cell"><span class="<%= score_color st.teacher_score%> ml35"><%= st.teacher_score.nil? ? "--" : format("%.1f",st.teacher_score)%></span></div>
|
|
|
|
<div class="flex-cell"><span class="<%= score_color st.teaching_asistant_score%> ml35"><%= st.teaching_asistant_score.nil? ? "--" : format("%.1f",st.teaching_asistant_score)%></span></div>
|
|
|
|
<div class="flex-cell"><span class="<%= score_color st.teaching_asistant_score%> ml35"><%= st.teaching_asistant_score.nil? ? "--" : format("%.1f",st.teaching_asistant_score)%></span></div>
|
|
|
|
<% if @homework.anonymous_comment == 0 %>
|
|
|
|
<% if @homework.anonymous_comment == 0 %>
|
|
|
@ -68,7 +68,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% if is_expand %>
|
|
|
|
<% if is_expand %>
|
|
|
|
<div class="fr" style="width:25px; color: #3b94d6; white-space:nowrap; text-align:right; margin-right:5px;" onclick = "show_student_work(<%= student_work_path(st)%>)">评分</div>
|
|
|
|
<div class="fr ml5" style="width:25px; color: #3b94d6; white-space:nowrap; text-align:right; margin-right:5px;" onclick = "show_student_work(<%= student_work_path(st)%>)">评分</div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="hworkTip" style="display: none; left:700px; top:20px; white-space:nowrap; right:auto;" id="work_click_<%= st.id%>"><em></em><span></span><font class="fontGrey2"><%= !st.student_work_projects.empty? ? '大作品评分即组长的评分' : '点击进行评分' %></font></div>
|
|
|
|
<div class="hworkTip" style="display: none; left:700px; top:20px; white-space:nowrap; right:auto;" id="work_click_<%= st.id%>"><em></em><span></span><font class="fontGrey2"><%= !st.student_work_projects.empty? ? '大作品评分即组长的评分' : '点击进行评分' %></font></div>
|
|
|
|