Rename image to container_registry

This commit is contained in:
Kamil Trzcinski 2016-05-09 22:34:10 +03:00
parent d7b91fb596
commit 6086958002
3 changed files with 7 additions and 7 deletions

View file

@ -1,6 +1,6 @@
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

View file

@ -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)

View file

@ -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