Commit 60869580 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Rename image to container_registry

parent d7b91fb5
class Projects::ContainerRegistryController < Projects::ApplicationController
before_action :authorize_read_image!
before_action :authorize_update_image!, only: [:destroy]
before_action :authorize_read_container_registry!
before_action :authorize_update_container_registry!, only: [:destroy]
before_action :tag, except: [:index]
layout 'project'
......@@ -23,6 +23,6 @@ class Projects::ContainerRegistryController < Projects::ApplicationController
end
def tag
@tag ||= container_registry[params[:id]]
@tag ||= container_registry_repository[params[:id]]
end
end
......@@ -152,8 +152,8 @@ module ProjectsHelper
nav_tabs << :builds
end
if can?(current_user, :read_image, project)
nav_tabs << :images
if can?(current_user, :read_container_registry, project)
nav_tabs << :container_registry
end
if can?(current_user, :admin_project, project)
......
......@@ -46,9 +46,9 @@
Builds
%span.count.builds_counter= number_with_delimiter(@project.builds.running_or_pending.count(:all))
- if project_nav_tab? :images
- if project_nav_tab? :container_registry
= nav_link(controller: %w(container_registry)) do
= link_to project_container_registry_path(@project), title: 'Container Registry', class: 'shortcuts-images' do
= link_to project_container_registry_path(@project), title: 'Container Registry', class: 'shortcuts-container-registry' do
= icon('hdd-o fw')
%span
Container Registry
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment