diff --git a/app/views/layouts/base_projects.html.erb b/app/views/layouts/base_projects.html.erb index d33a33a14..fc6713a94 100644 --- a/app/views/layouts/base_projects.html.erb +++ b/app/views/layouts/base_projects.html.erb @@ -96,21 +96,21 @@ <%= image_tag(url_to_avatar(@project), :class => 'avatar2') %> -
- <%= link_to @project.name, project_path(@project)%> -
-
- - <% if @project.project_type == 0 %> - <%= l(:label_project_grade)%> : - <%= link_to(format("%.2f" ,project_scores(@project) ).to_i, {:controller => 'projects', - :action => 'show_projects_score', - :remote => true, - :id => @project.id - }, :style => "color: #EC6300;")%> - <% end %> - -
+ <% project_score = format("%.2f" ,project_scores(@project)).to_i%> +
+ <%= link_to @project.name, project_path(@project)%> +
+
+ <% if @project.project_type == 0 && project_score != 0 %> + <%= l(:label_project_grade)%> : + <%= link_to(project_score, {:controller => 'projects', + :action => 'show_projects_score', + :remote => true, + :id => @project.id + }, :style => "color: #EC6300;")%> + <% end %> + +
<%= render 'layouts/join_exit_project' %>