projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
8183: show only toplevel projects in the Projects dropdown in breadcrumbs.
[arvados.git]
/
apps
/
workbench
/
app
/
controllers
/
application_controller.rb
diff --git
a/apps/workbench/app/controllers/application_controller.rb
b/apps/workbench/app/controllers/application_controller.rb
index db3d43040c416bef846a19d8ee0b4009a9e8f622..ace9276e37fb222823d52217379c5615df96ac16 100644
(file)
--- a/
apps/workbench/app/controllers/application_controller.rb
+++ b/
apps/workbench/app/controllers/application_controller.rb
@@
-833,6
+833,12
@@
class ApplicationController < ActionController::Base
{collections: c, owners: own}
end
{collections: c, owners: own}
end
+ helper_method :my_toplevel_projects
+ def my_toplevel_projects
+ @my_toplevel_projects ||= Group.
+ filter([['group_class','=','project'], ['owner_uuid', '=', current_user.uuid]]).order('name')
+ end
+
helper_method :my_project_tree
def my_project_tree
build_project_trees
helper_method :my_project_tree
def my_project_tree
build_project_trees