diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb
index b0f54a5f0..9fcebe640 100644
--- a/app/helpers/projects_helper.rb
+++ b/app/helpers/projects_helper.rb
@@ -173,25 +173,14 @@ module ProjectsHelper
# Renders the projects index
def render_project_hierarchy(projects)
render_project_nested_lists(projects) do |project|
- #Modified by young
- if (project.try(:project_type) == Project::ProjectType_course )
- unless project.is_public == 1
- s = "#{l(:label_private)}".html_safe
- else
- s = "".html_safe
- end
- s += link_to_project(project, {}, :class => "#{project.css_classes} #{User.current.member_of?(project) ? 'my-project' : nil}").html_safe
- else
- unless project.is_public
- s = "#{l(:label_private)}".html_safe
- else
- s = "".html_safe
- end
- s += link_to_project(project, {}, :class => "#{project.css_classes} #{User.current.member_of?(project) ? 'my-project' : nil}")
- end
- #Ended by young
+ if (project.try(:project_type) == Project::ProjectType_course )
+ s = project.is_public == 1 ? "".html_safe : "#{l(:label_private)}".html_safe
+ s += link_to_project(project, {}, :class => "#{project.css_classes} #{User.current.member_of?(project) ? 'my-project' : nil}").html_safe
+ else
+ s = project.is_public ? "".html_safe : "#{l(:label_private)}".html_safe
+ s += link_to_project(project, {}, :class => "#{project.css_classes} #{User.current.member_of?(project) ? 'my-project' : nil}")
+ end
if project.description.present?
- #Delete by nie.
# s << content_tag('td', textilizable(project.short_description, :project => project), :class => 'wiki description')
end
s