调整了参赛作品页面中最终得分和打分总人数和下面文字的剧中对其

This commit is contained in:
wanglinchun 2014-05-15 10:46:05 +08:00
parent 65f1e2a8d1
commit bb3536a7d5
1 changed files with 6 additions and 6 deletions

View File

@ -86,14 +86,14 @@
<% end %> <% end %>
</div> </div>
</div> </div>
<div style="float: left; padding-left: 100px; padding-top:35px "> <div style="float: left; padding-left: 100px; padding-top:35px " align="center">
<div style="padding-left: 25px;">最终得分</div> <div>最终得分</div>
<div style="padding-left: 35px; padding-top: 1px; font-size: 15px; color: blue"><%=@softapplication.average(:quality).try(:avg).try(:round, 2).to_i.to_s%>分</div> <div style="padding-top: 1px; font-size: 15px; color: blue"><%=@softapplication.average(:quality).try(:avg).try(:round, 2).to_i.to_s%>分</div>
<div style="padding-top: 3px"><%= rating_for @softapplication, :static => true, dimension: :quality, class: 'rateable div_inline' %></div> <div><%= rating_for @softapplication, :static => true, dimension: :quality, class: 'rateable div_inline' %></div>
</div> </div>
<div style="float: left; padding-left: 100px; padding-top:35px "> <div style="float: left; padding-left: 100px; padding-top:35px;" align="center">
<div>打分总人数</div> <div>打分总人数</div>
<div style="padding-left: 28px; padding-top: 1px; font-size: 25px; color: blue"><strong><%= @softapplication.raters(:quality).count%></strong></div> <div style="padding-top: 1px; font-size: 25px; color: blue; alignment-baseline: "><strong><%= @softapplication.raters(:quality).count%></strong></div>
</div> </div>
</div> </div>
</div> </div>