调整个人得分窗口的格式

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,9 +26,9 @@
</p> </p>
<div id="courses_history_block" class="courses_history hidden" > <div id="courses_history_block" class="courses_history hidden" >
<%= render :partial => 'course_form', :locals => {:memberships => @memberships_done}%> <%= render :partial => 'course_form', :locals => {:memberships => @memberships_done}%>
</div> </div>
<% end %> <% end %>
</div> </div>

View File

@ -26,8 +26,8 @@
<div><%= l(:label_user_score) %></div> <div><%= l(:label_user_score) %></div>
<div> = <%= l(:label_user_score_of_topic) %> + <%= l(:label_user_score_of_project) %> + <div> = <%= l(:label_user_score_of_topic) %> + <%= l(:label_user_score_of_project) %> +
<%= l(:label_user_score_of_activity) %></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>&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 %> + <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> <%= format("%.2f" , finall_activity_score).to_f %> + <%= format("%.2f" , finall_influence_score).to_f %></div>
<div> = <%= format("%.2f" , finall_user_score).to_f %></div> <div> = <%= format("%.2f" , finall_user_score).to_f %></div>

View File

@ -34,7 +34,7 @@
<td width="35%"> <td width="35%">
<table> <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><%= 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> </table>
</td> </td>
<td> <td>
@ -44,10 +44,36 @@
</table> </table>
</td> </td>
</tr> </tr>
</table> </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>
<div class="tabs_new"> <!-- <div class="inf_user_image">
<ul> <ul>
<li> <li>
<%= link_to l(:label_user_score), {:controller => 'users', :action => 'score_index', :remote => true} %> : <%= link_to l(:label_user_score), {:controller => 'users', :action => 'score_index', :remote => true} %> :
@ -70,8 +96,8 @@
<%= format("%.2f" , finall_influence_score).to_f %> <%= format("%.2f" , finall_influence_score).to_f %>
</li> </li>
</ul> </ul>
</div> </div> -->
<div id="show_score_detail"> <div id="show_score_detail", style="padding-left: 6px">
<%= render :partial => 'users/score_index', :locals => {:index => 0 } %> <%= render :partial => 'users/score_index', :locals => {:index => 0 } %>
</div> </div>
<!-- end --> <!-- end -->

View File

@ -29,10 +29,10 @@
<td><table width="580" border="0"> <td><table width="580" border="0">
<tr> <tr>
<td colspan="2" valign="top"><strong> <%= content_tag('span', h(e.project), :class => 'project') %></strong> <span class="font_lighter"><%= l(:label_new_activity) %></span> <%= link_to format_activity_title(e.event_title), e.event_url %></td> <td colspan="2" valign="top"><strong> <%= content_tag('span', h(e.project), :class => 'project') %></strong> <span class="font_lighter"><%= l(:label_new_activity) %></span> <%= link_to format_activity_title(e.event_title), e.event_url %></td>
</tr> </tr>
<tr> <tr>
<td colspan="2" width="580" ><p class="font_description"><%= format_activity_description(e.event_description) %></p></td> <td colspan="2" width="580" ><p class="font_description"><%= format_activity_description(e.event_description) %></p></td>
</tr> </tr>
<tr> <tr>
<td align="left"><a class="font_lighter"></a></td> <td align="left"><a class="font_lighter"></a></td>
<td width="200" align="right" class="a"><span class="font_lighter"><%= format_activity_day(day) %></span></td> <td width="200" align="right" class="a"><span class="font_lighter"><%= format_activity_day(day) %></span></td>