<%= link_to l(:project_module_boards), project_boards_path(@project), :style => "color:#3CA5C6" %>
-
(<%= @project.boards.first.topics.count %>)
+ <% unless @project.boards.first.topics.count == 0 %>
+
(<%= @project.boards.first.topics.count %>)
+ <% end %>
<% if User.current.member_of?(@project) %>
<%= link_to "+"+l(:project_module_boards_post), project_boards_path(@project, :flag => true), :layout => 'base_projects',:style => "font-size:12px;color:#fff; padding:1px 3px 3px 3px;height:18px;margin-top:4px;background:#28be6c;float:right;line-height:20px;" %>
<% end %>
@@ -162,7 +168,10 @@
<% end%>
<% unless @project.enabled_modules.where("name = 'files'").empty? %>
- <%= link_to l(:label_course_file), project_files_path(@project), :style => "color:#3CA5C6" %>
(<%= @project.attachments.count %>)
+ <%= link_to l(:label_course_file), project_files_path(@project), :style => "color:#3CA5C6" %>
+ <% unless @project.attachments.count == 0 %>
+
(<%= @project.attachments.count %>)
+ <% end %>
<% if User.current.member_of?(@project) %>
<%= link_to "+"+l(:label_upload_files), project_files_path(@project,:flag => true),:style => "font-size:12px;color:#fff; padding:1px 3px 3px 3px;height:18px;margin-top:3px;background:#28be6c;float:right;line-height:20px;" %>
<% end %>
@@ -171,7 +180,9 @@
<% unless @project.enabled_modules.where("name = 'repository'").empty? %>
<%= link_to l(:project_module_repository), {:controller => 'repositories', :action => 'show', :id => @project.id}, :style => "color:#3CA5C6" %>
- (<%= @project.repositories.count %>)
+ <% unless @project.repositories.count == 0 %>
+ (<%= @project.repositories.count %>)
+ <% end %>
<%# if User.current.member_of?(@project) %>
<%#= link_to "+"+l(:project_module_create_repository), new_project_repository_path(@project),:style => "font-size:12px;color:#fff; padding:1px 3px 3px 3px;height:18px;margin-top:3px;background:#28be6c;float:right;line-height:20px;" %>
<%# end %>