diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-04-18 08:14:40 -0400 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-05-04 11:31:35 +0200 |
commit | b0ddbaa07cd780b0ed86aa4e3c24744c6426b1e1 (patch) | |
tree | d091bf98b27dd68e9994e3004a4cdec9d39e71ef /app/helpers | |
parent | 011a905a821e2ff0cd2d9885ef93764018eb8346 (diff) | |
download | gitlab-ce-b0ddbaa07cd780b0ed86aa4e3c24744c6426b1e1.tar.gz |
Added docker registry view
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..66cb41cc496 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_images_path(project, *args) + namespace_project_images_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 3d5e61d2c18..6d1e630a097 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -152,6 +152,10 @@ module ProjectsHelper nav_tabs << :builds end + if can?(current_user, :read_image, project) + nav_tabs << :images + end + if can?(current_user, :admin_project, project) nav_tabs << :settings end |