Revision 997:c1b8a34d3560
| app/helpers/projects_helper.rb | ||
|---|---|---|
| 162 | 162 |
|
| 163 | 163 |
end |
| 164 | 164 |
|
| 165 |
# Renders a tree of projects that the current user does not belong |
|
| 166 |
# to, or of all projects if the current user is not logged in. The |
|
| 167 |
# given collection may be a subset of the whole project tree |
|
| 168 |
# (eg. some intermediate nodes are private and can not be seen). We |
|
| 169 |
# are potentially interested in various things: the project name, |
|
| 170 |
# description, manager(s), creation date, last activity date, |
|
| 171 |
# general activity level, whether there is anything actually hosted |
|
| 172 |
# here for the project, etc. |
|
| 165 |
# Renders a tree of projects. The given collection may be a subset |
|
| 166 |
# of the whole project tree (eg. some intermediate nodes are private |
|
| 167 |
# and can not be seen). We are potentially interested in various |
|
| 168 |
# things: the project name, description, manager(s), creation date, |
|
| 169 |
# last activity date, general activity level, whether there is |
|
| 170 |
# anything actually hosted here for the project, etc. |
|
| 173 | 171 |
def render_project_table(projects) |
| 174 | 172 |
|
| 175 | 173 |
s = "" |
| vendor/plugins/redmine_tags/lib/redmine_tags/patches/projects_controller_patch.rb | ||
|---|---|---|
| 1 |
# -*- coding: utf-8 -*- |
|
| 1 | 2 |
require_dependency 'projects_controller' |
| 2 | 3 |
|
| 3 | 4 |
module RedmineTags |
| ... | ... | |
| 127 | 128 |
end |
| 128 | 129 |
|
| 129 | 130 |
unless @tag_list.empty? |
| 130 |
@tagged_projects_ids = Project.visible.tagged_with(@tag_list).collect{ |project| Project.find(project.id) }
|
|
| 131 |
@tagged_projects_ids = Project.visible.tagged_with(@tag_list).collect{ |project| Project.find(project.id).root }
|
|
| 131 | 132 |
@projects = @projects & @tagged_projects_ids |
| 133 |
@projects = @projects.uniq |
|
| 132 | 134 |
end |
| 133 |
|
|
| 134 |
@projects = @projects.collect{ |project| project.root }
|
|
| 135 |
@projects = @projects.uniq |
|
| 136 |
|
|
| 137 | 135 |
end |
| 138 | 136 |
end |
| 139 | 137 |
end |
Also available in: Unified diff