Removes 2 column layout. Adds i18n support

This commit is contained in:
Filipa Lacerda 2017-09-19 17:53:57 +01:00
parent 51c9f8b6d6
commit 6c63520ef5
1 changed files with 48 additions and 56 deletions

View File

@ -1,40 +1,38 @@
- page_title "Container Registry" - page_title "Container Registry"
.row.prepend-top-default.append-bottom-default %section
.col-lg-3 .settings-header
%h4.prepend-top-0 %h4
= page_title = page_title
%p %p
With the Docker Container Registry integrated into GitLab, every project = _('With the Docker Container Registry integrated into GitLab, every project can have its own space to store its Docker images.')
can have its own space to store its Docker images.
%p.append-bottom-0 %p.append-bottom-0
= succeed '.' do = succeed '.' do
Learn more about Learn more about
= link_to 'Container Registry', help_page_path('user/project/container_registry'), target: '_blank' = link_to _('Container Registry'), help_page_path('user/project/container_registry'), target: '_blank'
.row
.col-lg-9 .col-lg-12
.panel.panel-default .panel.panel-default
.panel-heading .panel-heading
%h4.panel-title %h4.panel-title
How to use the Container Registry = _('How to use the Container Registry')
.panel-body .panel-body
%p %p
First log in to GitLab’s Container Registry using your GitLab username = _('First log in to GitLab’s Container Registry using your GitLab username and password. If you have')
and password. If you have = link_to _('2FA enabled'), help_page_path('user/profile/account/two_factor_authentication'), target: '_blank'
= link_to '2FA enabled', help_page_path('user/profile/account/two_factor_authentication'), target: '_blank'
you need to use a you need to use a
= succeed ':' do = succeed ':' do
= link_to 'personal access token', help_page_path('user/profile/account/two_factor_authentication', anchor: 'personal-access-tokens'), target: '_blank' = link_to _('personal access token'), help_page_path('user/profile/account/two_factor_authentication', anchor: 'personal-access-tokens'), target: '_blank'
%pre %pre
docker login #{Gitlab.config.registry.host_port} docker login #{Gitlab.config.registry.host_port}
%br %br
%p %p
Once you log in, you’re free to create and upload a container image = _("Once you log in, you’re free to create and upload a container image using the common")
using the common %code
%code build = _('build')
and = _('and')
%code push %code push
commands: = _('commands:')
%pre %pre
:plain :plain
docker build -t #{escape_once(@project.container_registry_url)} . docker build -t #{escape_once(@project.container_registry_url)} .
@ -42,25 +40,19 @@
%hr %hr
%h5.prepend-top-default %h5.prepend-top-default
Use different image names = _('Use different image names')
%p.light %p.light
GitLab supports up to 3 levels of image names. The following = _('GitLab supports up to 3 levels of image names. The following examples of images are valid for your project:')
examples of images are valid for your project:
%pre %pre
:plain :plain
#{escape_once(@project.container_registry_url)}:tag #{escape_once(@project.container_registry_url)}:tag
#{escape_once(@project.container_registry_url)}/optional-image-name:tag #{escape_once(@project.container_registry_url)}/optional-image-name:tag
#{escape_once(@project.container_registry_url)}/optional-name/optional-image-name:tag #{escape_once(@project.container_registry_url)}/optional-name/optional-image-name:tag
.row
.col-lg-12
#js-vue-registry-images{ data: { endpoint: project_container_registry_index_path(@project, format: :json)}} #js-vue-registry-images{ data: { endpoint: project_container_registry_index_path(@project, format: :json)}}
= page_specific_javascript_bundle_tag('common_vue') = page_specific_javascript_bundle_tag('common_vue')
= page_specific_javascript_bundle_tag('registry_list') = page_specific_javascript_bundle_tag('registry_list')
-# - if @images.blank?
-# %p.settings-message.text-center.append-bottom-default
-# No container images stored for this project. Add one by following the
-# instructions above.
-# - else
-# = render partial: 'image', collection: @images