<tr class="b_grey hworkH30">
  <th class="hworkList40 hworkH30 pl5 pr5">序号</th>
  <th class="hworkList50">&nbsp;</th>
  <% if @homework.homework_detail_group.base_on_project == 1 %>
      <th class="hworkList130  pl5 pr5" style="text-align:left;">组长</th>
      <th class="<%= @homework.anonymous_comment == 1 ? 'hworkList140' : 'hworkList70' %>">
        <span class="c_dark f14 fb">关联项目</span>
      </th>
  <% elsif @homework.homework_detail_group.base_on_project == 0 %>
      <th class="<%= @homework.anonymous_comment == 1 ? 'hworkList270' : 'hworkList200' %>  pl5 pr5" style="text-align:left;">组长</th>
  <% end %>
  <th class="hworkList130">
    <%= link_to "时间", @show_all ? student_work_index_path(:homework => @homework.id, :order => "created_at", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)", :class => "c_dark f14 fb", :remote => true %>
    <% if @show_all && @order == "created_at" %>
        <%= link_to "", student_work_index_path(:homework => @homework.id, :order => "created_at", :sort => @score, :name => @name, :group => @group), :class => "#{@score == 'desc' ? 'sort_up' : 'sort_down'} float-none", :style => "line-height:30px; vertical-align:middle;", :remote => true %>
    <% end %>
  </th>
  <th class="hworkList70">
    <%= link_to "教师", @show_all ? student_work_index_path(:homework => @homework.id, :order => "teacher_score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)", :class => "c_dark f14 fb", :remote => true %>
    <% if @show_all && @order == "teacher_score" %>
        <%= link_to "", student_work_index_path(:homework => @homework.id, :order => "teacher_score", :sort => @score, :name => @name, :group => @group), :class => "#{@score == 'desc' ? 'sort_up' : 'sort_down'} float-none", :style => "line-height:30px; vertical-align:middle;", :remote => true %>
    <% end %>
  </th>
  <th class="hworkList70">
    <%= link_to "教辅", @show_all ? student_work_index_path(:homework => @homework.id, :order => "teaching_asistant_score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)", :class => "c_dark f14 fb", :remote => true %>
    <% if @show_all && @order == "teaching_asistant_score" %>
        <%= link_to "", student_work_index_path(:homework => @homework.id, :order => "teaching_asistant_score", :sort => @score, :name => @name, :group => @group), :class => "#{@score == 'desc' ? 'sort_up' : 'sort_down'} float-none", :style => "line-height:30px; vertical-align:middle;", :remote => true %>
    <% end %>
  </th>
  <% if @homework.anonymous_comment == 0 %>
      <th class="hworkList70">
        <%= link_to "匿评", @show_all ? student_work_index_path(:homework => @homework.id, :order => "student_score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)", :class => "c_dark f14 fb", :remote => true %>
        <% if @show_all && @order == "student_score" %>
            <%= link_to "", student_work_index_path(:homework => @homework.id, :order => "student_score", :sort => @score, :name => @name, :group => @group), :class => "#{@score == 'desc' ? 'sort_up' : 'sort_down'} float-none", :style => "line-height:30px; vertical-align:middle;", :remote => true %>
        <% end %>
      </th>
  <% end %>
  <th class="hworkList70">
    <%= link_to "成绩", @show_all ? student_work_index_path(:homework => @homework.id, :order => "score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)", :class => "c_dark f14 fb", :remote => true %>
    <% if @show_all && @order == "score" %>
        <%= link_to "", student_work_index_path(:homework => @homework.id, :order => "score", :sort => @score, :name => @name, :group => @group), :class => "#{@score == 'desc' ? 'sort_up' : 'sort_down'} float-none", :style => "line-height:30px; vertical-align:middle;", :remote => true %>
    <% end %>
  </th>
</tr>