Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-10-09 21:06:58 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-10-09 21:06:58 +0300
commit41efffa17c67405ca5f5dac49d72be7872cee339 (patch)
treeb5a369af722bb4d0f8ebfcb6abe2651864414a6d /app
parentcc6b394a063eb77c90505e4adca2e2da2e29c3a2 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/registry/components/table_registry.vue6
-rw-r--r--app/views/admin/application_settings/_repository_storage.html.haml27
2 files changed, 18 insertions, 15 deletions
diff --git a/app/assets/javascripts/registry/components/table_registry.vue b/app/assets/javascripts/registry/components/table_registry.vue
index d6d2896a8f8..00acc0eb04a 100644
--- a/app/assets/javascripts/registry/components/table_registry.vue
+++ b/app/assets/javascripts/registry/components/table_registry.vue
@@ -51,7 +51,7 @@ export default {
shouldRenderPagination() {
return this.repo.pagination.total > this.repo.pagination.perPage;
},
- modalTitle() {
+ modalAction() {
return n__(
'ContainerRegistry|Remove tag',
'ContainerRegistry|Remove tags',
@@ -269,8 +269,8 @@ export default {
/>
<gl-modal ref="deleteModal" :modal-id="modalId" ok-variant="danger">
- <template v-slot:modal-title>{{ modalTitle }}</template>
- <template v-slot:modal-ok>{{ s__('ContainerRegistry|Remove tag(s)') }}</template>
+ <template v-slot:modal-title>{{ modalAction }}</template>
+ <template v-slot:modal-ok>{{ modalAction }}</template>
<p v-html="modalDescription"></p>
</gl-modal>
</div>
diff --git a/app/views/admin/application_settings/_repository_storage.html.haml b/app/views/admin/application_settings/_repository_storage.html.haml
index e5bcb180445..b97e9a194f3 100644
--- a/app/views/admin/application_settings/_repository_storage.html.haml
+++ b/app/views/admin/application_settings/_repository_storage.html.haml
@@ -3,21 +3,24 @@
%fieldset
.sub-section
+ %h4= _("Hashed repository storage paths")
.form-group
.form-check
= f.check_box :hashed_storage_enabled, class: 'form-check-input qa-hashed-storage-checkbox'
- = f.label :hashed_storage_enabled, class: 'form-check-label' do
- Use hashed storage paths for newly created and renamed projects
+ = f.label :hashed_storage_enabled, _("Use hashed storage"), class: 'label-bold form-check-label'
.form-text.text-muted
- Enable immutable, hash-based paths and repository names to store repositories on disk. This prevents
- repositories from having to be moved or renamed when the Project URL changes and may improve disk I/O performance.
+ = _("Use hashed storage paths for newly created and renamed projects. Enable immutable, hash-based paths and repository names to store repositories on disk. This prevents repositories from having to be moved or renamed when the Project URL changes and may improve disk I/O performance.")
+ .sub-section
+ %h4= _("Storage nodes for new projects")
.form-group
- = f.label :repository_storages, 'Storage paths for new projects', class: 'label-bold'
- = f.select :repository_storages, repository_storages_options_for_select(@application_setting.repository_storages),
- {include_hidden: false}, multiple: true, class: 'form-control'
- .form-text.text-muted
- Manage repository storage paths. Learn more in the
- = succeed "." do
- = link_to "repository storages documentation", help_page_path("administration/repository_storage_paths")
+ .form-text
+ %p.text-secondary
+ = _('Select the configured storaged available for new projects to be placed on.')
+ = link_to icon('question-circle'), help_page_path('administration/repository_storage_paths')
+ .form-check
+ = f.collection_check_boxes :repository_storages, Gitlab.config.repositories.storages, :first, :first, include_hidden: false do |b|
+ = b.check_box class: 'form-check-input'
+ = b.label class: 'label-bold form-check-label'
+ %br
- = f.submit 'Save changes', class: "btn btn-success qa-save-changes-button"
+ = f.submit _('Save changes'), class: "btn btn-success qa-save-changes-button"