Commit 60869580 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Rename image to container_registry

parent d7b91fb5
class Projects::ContainerRegistryController < Projects::ApplicationController class Projects::ContainerRegistryController < Projects::ApplicationController
before_action :authorize_read_image! before_action :authorize_read_container_registry!
before_action :authorize_update_image!, only: [:destroy] before_action :authorize_update_container_registry!, only: [:destroy]
before_action :tag, except: [:index] before_action :tag, except: [:index]
layout 'project' layout 'project'
...@@ -23,6 +23,6 @@ class Projects::ContainerRegistryController < Projects::ApplicationController ...@@ -23,6 +23,6 @@ class Projects::ContainerRegistryController < Projects::ApplicationController
end end
def tag def tag
@tag ||= container_registry[params[:id]] @tag ||= container_registry_repository[params[:id]]
end end
end end
...@@ -152,8 +152,8 @@ module ProjectsHelper ...@@ -152,8 +152,8 @@ module ProjectsHelper
nav_tabs << :builds nav_tabs << :builds
end end
if can?(current_user, :read_image, project) if can?(current_user, :read_container_registry, project)
nav_tabs << :images nav_tabs << :container_registry
end end
if can?(current_user, :admin_project, project) if can?(current_user, :admin_project, project)
......
...@@ -46,9 +46,9 @@ ...@@ -46,9 +46,9 @@
Builds Builds
%span.count.builds_counter= number_with_delimiter(@project.builds.running_or_pending.count(:all)) %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 = 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') = icon('hdd-o fw')
%span %span
Container Registry 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