diff options
author | Fatih Acet <acetfatih@gmail.com> | 2016-05-18 13:20:06 -0500 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2016-05-18 13:20:06 -0500 |
commit | a410c7afbfe78ca5253e4b2e2dfcffb20e8159da (patch) | |
tree | babb2f99624884641f60158933f6d9319b79018e /app/helpers | |
parent | bb883387f9e4d5564b455cce7d412f730664a2f5 (diff) | |
parent | 08fddae7441ce9ac61bc80e5b93a2eafb8441430 (diff) | |
download | gitlab-ce-a410c7afbfe78ca5253e4b2e2dfcffb20e8159da.tar.gz |
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into awardables
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/gitlab_routing_helper.rb | 4 | ||||
-rw-r--r-- | app/helpers/projects_helper.rb | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers/gitlab_routing_helper.rb b/app/helpers/gitlab_routing_helper.rb index f07eff3fb57..2ce2d4e694f 100644 --- a/app/helpers/gitlab_routing_helper.rb +++ b/app/helpers/gitlab_routing_helper.rb @@ -33,6 +33,10 @@ module GitlabRoutingHelper namespace_project_builds_path(project.namespace, project, *args) end + def project_container_registry_path(project, *args) + namespace_project_container_registry_index_path(project.namespace, project, *args) + end + def activity_project_path(project, *args) activity_namespace_project_path(project.namespace, project, *args) end diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index e1ab78df69e..a140bbc3c67 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -152,6 +152,10 @@ module ProjectsHelper nav_tabs << :builds end + if Gitlab.config.registry.enabled && can?(current_user, :read_container_image, project) + nav_tabs << :container_registry + end + if can?(current_user, :admin_project, project) nav_tabs << :settings end |