|
|
|
@ -56,7 +56,9 @@
|
|
|
|
|
<td>
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="info_font" align="center" style=" word-wrap: break-word; word-break: break-all"><%= h (@user.name) %> <!-- added by bai -->
|
|
|
|
|
<!-- added by bai -->
|
|
|
|
|
<!-- modified by zjc 姓名添加超链接 -->
|
|
|
|
|
<td class="info_font" align="center" style=" word-wrap: break-word; word-break: break-all"><%= link_to h (@user.name) %>
|
|
|
|
|
<%= image_tag(gender_avatar_uri(@user), weight:"25px", height:"25px") if (@user.user_extensions && (@user.user_extensions.identity != 2) )%></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
@ -92,7 +94,8 @@
|
|
|
|
|
<% comments_score = comments_count * 0.1 %>
|
|
|
|
|
<% finall_influence_score = news_score + wiki_contents_score + comments_score %>
|
|
|
|
|
<% finall_user_score = finall_messages_score + finall_user_project_score + finall_activity_score + finall_influence_score %>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- modified by zjc 新得分显示 -->
|
|
|
|
|
<tr><td class="score">
|
|
|
|
|
<%= l(:label_user_grade)%>:
|
|
|
|
|
<%= link_to(format("%.2f" , @user.user_score.total_score).to_f, {:controller => 'users',
|
|
|
|
@ -102,6 +105,7 @@
|
|
|
|
|
}, :style => 'color :#E8770D;') %>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<!-- end -->
|
|
|
|
|
<tr><td class="score">
|
|
|
|
|
<%= l(:label_user_grade)%>:
|
|
|
|
|
<%= link_to(format("%.2f" , finall_user_score).to_f, {:controller => 'users',
|
|
|
|
@ -174,12 +178,13 @@
|
|
|
|
|
-->
|
|
|
|
|
<!-- added by bai 在个人主页里显示“工作单位”“地区”"教师的职称"-->
|
|
|
|
|
<!-- modified by linchun 在个人主页里显示“加入时间”,“最后登录”,“邮件地址”后面添加冒号-->
|
|
|
|
|
<!-- modified by zjc 高校添加超链接 -->
|
|
|
|
|
<% unless @user.user_extensions.nil? %>
|
|
|
|
|
<% unless @user.user_extensions.identity == 2 %>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="padding-left: 5px" width="70px"><%= l(:field_occupation) %>:</td><td class="font_lighter_sidebar" style="padding-left: 0px" width="170px">
|
|
|
|
|
<% unless @user.user_extensions.school.nil? %>
|
|
|
|
|
<%= @user.user_extensions.school.name %>
|
|
|
|
|
<%= link_to @user.user_extensions.school.name, options={:controller => 'welcome',:action => 'course',:school_id => @user.user_extensions.school.id}, html_options={:method => 'get'} %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|