<!-- added by bai -->

<head>
  <meta charset="utf-8" />
  <title><%= h html_title %></title>
  <meta name="description" content="<%= Redmine::Info.app_name %>" />
  <meta name="keywords" content="issue,bug,tracker" />
  <%= csrf_meta_tag %>
  <%= favicon %>
  <%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2', 'application', 'nyan', :media => 'all' %>
  <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
  <%= javascript_heads %>
  <%= heads_for_theme %>
  <%= hubspot_head %>
  <%= call_hook :view_layouts_base_html_head %>
  <!-- page specific tags -->
  <%= yield :header_tags -%>
</head>
<h3 class="title"><%= l(:label_user_score) %></h3>
<div class="inf_user_image">
  <table style="border-bottom: solid 1px #80a6d2;" width="100%">
    <tr>
      <td align="left" valign="middle" ><%= image_tag(url_to_avatar(@user), :class => 'avatar2') %></td>
      <td width="35%">
        <table>
          <tr class="info_font" align="center" style=" word-wrap: break-word; word-break: break-all"><td><%= h @user.name %></td></tr>
          <tr class="info_font" align="left" style=" word-wrap: break-word; word-break: break-all"><td><%= @user.user_extensions.show_identity %></td></tr>
        </table>
      </td>
      <td>
        <table>
          <tr class="info_font"><td><%= l(:label_user_score) %></td></tr>                                                                     <!-- @user.user_score_attr.total_score).to_i-->
          <tr class="buttons_for_score" style="margin-top:30px;margin-left:144px"><td><span style="color:#ec6300"><%= format("%.2f" , get_option_number(@user,1).total_score).to_i %></span></td></tr>
        </table>
      </td>
    </tr>


  </table>

  <table style="border-bottom: solid 0px #80a6d2;" width="100%">
    <tr>
      <%= l(:label_user_score) %> :
      <%= format("%.2f" , @user.user_score_attr.total_score).to_i %>
    </tr><br>
    <tr>
      <%=  l(:label_user_score_of_collaboration) %> :
      <%= format("%.2f" , @user.user_score_attr.collaboration.nil? ? 0:@user.user_score_attr.collaboration).to_i %>
    </tr><br>
    <tr>
      <%=  l(:label_user_score_of_influence) %> :
      <%= format("%.2f" ,  @user.user_score_attr.influence.nil? ? 0:@user.user_score_attr.influence).to_i %>
    </tr><br>
    <tr>
      <%=  l(:label_user_score_of_skill) %> :
      <%= format("%.2f" , @user.user_score_attr.skill.nil? ? 0:@user.user_score_attr.skill).to_i %>
    </tr><br>
    <tr>
      <%=  l(:label_user_score_of_active) %> ：
      <%= format("%.2f" , @user.user_score_attr.active.nil? ? 0:@user.user_score_attr.active).to_i %>
    </tr><br>
  </table>

</div>

<div id="show_score_detail" style="padding-left: 6px">
  <%= render :partial => 'users/score_new_index', :locals => {:index => 0 } %>
</div>
