项目评分为0 的时候显示

This commit is contained in:
huang 2016-09-27 19:43:11 +08:00
parent fb02a1cf13
commit d656d3e94c
1 changed files with 2 additions and 2 deletions

View File

@ -25,13 +25,13 @@
<p class="sy_cgrey">
<span class=" mr15">项目评分:
<% if @project.project_type == 0 %>
<% unless static_project_score(@project.project_score) == 0 %>
<%# unless static_project_score(@project.project_score) == 0 %>
<%= link_to(format("%.2f" ,static_project_score(@project.project_score)).to_i,
{:controller => 'projects',
:action => 'show_projects_score',
:remote => true,
:id => @project.id}, :class => "sy_cblue" ) %>
<% end %>
<%# end %>
<% end %>
</span>
<span class=" mr15">浏览:<a class="sy_corange"><%= @project.visits.to_i %></a></span>