#1959 项目评分是0的,就不显示了!

This commit is contained in:
sw 2015-03-04 11:34:01 +08:00
parent 650d717823
commit 032e28067d
1 changed files with 15 additions and 15 deletions

View File

@ -96,21 +96,21 @@
<%= image_tag(url_to_avatar(@project), :class => 'avatar2') %> <%= image_tag(url_to_avatar(@project), :class => 'avatar2') %>
</td> </td>
<td> <td>
<div class="info-course"> <% project_score = format("%.2f" ,project_scores(@project)).to_i%>
<%= link_to @project.name, project_path(@project)%> <div class="info-course">
</div> <%= link_to @project.name, project_path(@project)%>
<div> </div>
<div>
<% if @project.project_type == 0 %> <% if @project.project_type == 0 && project_score != 0 %>
<%= l(:label_project_grade)%> : <%= l(:label_project_grade)%> :
<%= link_to(format("%.2f" ,project_scores(@project) ).to_i, {:controller => 'projects', <%= link_to(project_score, {:controller => 'projects',
:action => 'show_projects_score', :action => 'show_projects_score',
:remote => true, :remote => true,
:id => @project.id :id => @project.id
}, :style => "color: #EC6300;")%> }, :style => "color: #EC6300;")%>
<% end %> <% end %>
<!-- end --> <!-- end -->
</div> </div>
<div id="join_exit_project_div"> <div id="join_exit_project_div">
<%= render 'layouts/join_exit_project' %> <%= render 'layouts/join_exit_project' %>
</div> </div>