<ul class="ping_box_ul <%= is_last ? '' : 'ping_line'%> fl">
  <% show_real_name = @is_teacher || score.user == User.current || score.user.allowed_to?(:as_teacher,@course) %>
  <%= link_to image_tag(url_to_avatar(show_real_name ? score.user : ""), :width => "34", :height => "34"), show_real_name ? user_path(score.user) : "javascript:void(0)",:class => "ping_pic fl" %>
  <div class="pingBoxTit">
    <%= link_to show_real_name ? score.user.show_name : "匿名", show_real_name ? user_path(score.user) : "javascript:void(0)", :title => show_real_name ? score.user.show_name : "匿评用户", :class => "linkBlue fl" %>
    <span class="ml5 fl">
      （<%= student_work_score_role score%>）
    </span>
    <% unless score.score.nil? %>
        <span class="ml20 fl">评分：</span>
        <a href="javascript:void(0);" class="c_orange fl" >
          <%= score.score%>分
        </a>
    <% end %>
    <a href="javascript:void(0);" class="fr linkBlue mr5" onclick="$('#add_score_reply_<%= score.id%>').slideToggle();">回复</a>
    <span class=" fr c_grey mr20">
      <%=format_time score.updated_at %>
    </span>
    <div class="cl mb5"></div>

    <p class="break_word">
      <%= score.comment%>
    </p>
    <div class="cl"></div>

    <%= render :partial => 'work_attachments', :locals => {:attachments => score.attachments} %>
    <div class="cl"></div>

    <div id="add_score_reply_<%= score.id%>" class="undis">
      <%= render :partial => 'add_score_reply',:locals => {:score => score,:is_last => is_last}%>
    </div>
    <div class="cl"></div>

    <div id="replay_histroy_<%= score.id%>">
      <% score.journals_for_messages.order("created_on desc").each do |jour|%>
          <%= render :partial => 'jour_replay',:locals => {:jour => jour}%>
      <% end%>
    </div>
    <div class="cl"></div>
  </div>
</ul>
