修改:网站中的旧分数显示为新分数

This commit is contained in:
z9hang 2014-06-24 13:57:51 +08:00
parent 9e0ae72ab7
commit 02e221eedb
5 changed files with 4 additions and 21 deletions

View File

@ -185,4 +185,5 @@ DEPENDENCIES
sass-rails (~> 3.2.3)
seems_rateable!
shoulda (> 3.3.2)
therubyracer
uglifier (>= 1.0.3)

View File

@ -121,16 +121,6 @@
</td>
</tr>
<!-- end -->
<!-- <tr><td class="score">
<%= l(:label_user_grade)%>:
<%= link_to(format("%.2f" , finall_user_score).to_f, {:controller => 'users',
:action => 'show_score',
:remote => true,
:id => @user.id
}, :style => 'color :#E8770D;') %>
</td>
</tr>
-->
</table></td>
</tr>

View File

@ -39,11 +39,7 @@
<!-- modified by bai -->
<div style="position:relative;float:left;margin-top:-2px;margin-left: 160px">
<%= l(:label_user_grade) %>: <span style="color:#ec6300"> <%= link_to( format("%.2f" , finall_user_score).to_f, {:controller => 'users',
:action => 'show_score',
:remote => true,
:id => user.id},
:style=>"color: #EC6300;") %></span>
<%= l(:label_user_grade) %>: <span style="color:#ec6300"> <%= render :partial => 'users/user_score', :locals => {:user => user}%></span>
</div>
<!-- end -->
</div>

View File

@ -1,5 +1,5 @@
<%= l(:label_user_grade)%>:
<%= link_to(format("%.2f" , @user.user_score_attr.total_score).to_f, {:controller => 'users',
<%= link_to(format("%.2f" , user.user_score_attr.total_score).to_f, {:controller => 'users',
:action => 'show_new_score',
:remote => true,
:id => user.id

View File

@ -40,11 +40,7 @@
<!-- modified by bai -->
<div style="position:relative;float:left;margin-top:-2px;margin-left: 160px">
<%= l(:label_user_grade) %>: <span style="color:#ec6300">
<%= link_to( format("%.2f" , finall_user_score).to_f, {:controller => 'users',
:action => 'show_score',
:remote => true,
:id => user.id},
:style=>"color: #EC6300;") %></span>
<%= render :partial => 'users/user_score', :locals => {:user => user}%></span>
</div>
<!-- end -->
</div>