<% attaments_num = @project.attachments.count+Attachment.where(["`container_type` = 'Version' and `container_id` in (?)",@project.versions.map{ |v| v.id}]).all.count %> <% unless @project.enabled_modules.where("name = 'boards'").empty? %> <% end%> <% unless @project.enabled_modules.where("name = 'files'").empty? %> <% end %>