调整个人得分窗口的格式

This commit is contained in:
wanglinchun 2014-03-06 15:42:19 +08:00
parent 730ecd546f
commit 27ee22e05d
4 changed files with 36 additions and 10 deletions

View File

@ -26,8 +26,8 @@
<div><%= l(:label_user_score) %></div>
<div> = <%= l(:label_user_score_of_topic) %> + <%= l(:label_user_score_of_project) %> +
<%= l(:label_user_score_of_activity) %></div>
<div>&nbsp;&nbsp;&nbsp;+ <%= l(:label_user_score_of_influence) %></div>
<%= l(:label_user_score_of_activity)%> + <%= l(:label_user_score_of_influence) %></div>
<!-- <div>&nbsp;&nbsp;&nbsp;+ <%= l(:label_user_score_of_influence) %></div> -->
<div> = <%= format("%.2f" , finall_messages_score).to_f %> + <%= format("%.2f" , finall_user_project_score).to_f %> +
<%= format("%.2f" , finall_activity_score).to_f %> + <%= format("%.2f" , finall_influence_score).to_f %></div>
<div> = <%= format("%.2f" , finall_user_score).to_f %></div>

View File

@ -34,7 +34,7 @@
<td width="35%">
<table>
<tr class="info_font" align="center" style=" word-wrap: break-word; word-break: break-all"><td><%= h @user.show_name %></td></tr>
<tr class="info_font" align="center" style=" word-wrap: break-word; word-break: break-all"><td><%= @user.user_extensions.show_identity %></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>
@ -44,10 +44,36 @@
</table>
</td>
</tr>
</table>
<table style="border-bottom: solid 0px #80a6d2;", width="100%">
<tr>
<%= link_to l(:label_user_score), {:controller => 'users', :action => 'score_index', :remote => true} %> :
<%= format("%.2f" , finall_user_score).to_f %>
</tr><br>
<tr>
<%= link_to l(:label_user_score_of_topic), {:controller => 'users', :action => 'topic_score_index', :remote => true} %> :
<%= format("%.2f" , finall_messages_score).to_f %>
</tr><br>
<tr>
<%= link_to l(:label_user_score_of_project), {:controller => 'users', :action => 'project_score_index', :remote => true} %> :
<%= format("%.2f" , finall_user_project_score).to_f %>
</tr><br>
<tr>
<%= link_to l(:label_user_score_of_activity), {:controller => 'users', :action => 'activity_score_index', :remote => true} %> :
<%= format("%.2f" , finall_activity_score).to_f %>
</tr><br>
<tr>
<%= link_to l(:label_user_score_of_influence), {:controller => 'users', :action => 'influence_score_index', :remote => true} %>
<%= format("%.2f" , finall_influence_score).to_f %>
</tr><br>
</table>
</div>
<div class="tabs_new">
<!-- <div class="inf_user_image">
<ul>
<li>
<%= link_to l(:label_user_score), {:controller => 'users', :action => 'score_index', :remote => true} %> :
@ -70,8 +96,8 @@
<%= format("%.2f" , finall_influence_score).to_f %>
</li>
</ul>
</div>
<div id="show_score_detail">
</div> -->
<div id="show_score_detail", style="padding-left: 6px">
<%= render :partial => 'users/score_index', :locals => {:index => 0 } %>
</div>
<!-- end -->