debian-mirror-gitlab/app/views/projects/registry/repositories/index.html.haml

24 lines
1.7 KiB
Text
Raw Normal View History

2019-12-21 20:55:43 +05:30
- page_title _("Container Registry")
2020-04-08 14:13:33 +05:30
- @content_class = "limit-container-width" unless fluid_layout
2019-12-21 20:55:43 +05:30
2018-03-17 18:26:18 +05:30
%section
.row.registry-placeholder.prepend-bottom-10
2019-09-30 21:07:59 +05:30
.col-12
2020-04-22 19:07:51 +05:30
#js-container-registry{ data: { endpoint: project_container_registry_index_path(@project),
expiration_policy: @project.container_expiration_policy.to_json,
"help_page_path" => help_page_path('user/packages/container_registry/index'),
"two_factor_auth_help_link" => help_page_path('user/profile/account/two_factor_authentication'),
"personal_access_tokens_help_link" => help_page_path('user/profile/personal_access_tokens'),
"no_containers_image" => image_path('illustrations/docker-empty-state.svg'),
"containers_error_image" => image_path('illustrations/docker-error-state.svg'),
"repository_url" => escape_once(@project.container_registry_url),
"registry_host_url_with_port" => escape_once(registry_config.host_port),
"expiration_policy_help_page_path" => help_page_path('user/packages/container_registry/index', anchor: 'expiration-policy'),
"garbage_collection_help_page_path" => help_page_path('administration/packages/container_registry', anchor: 'container-registry-garbage-collection'),
2021-01-03 14:25:43 +05:30
"run_cleanup_policies_help_page_path" => help_page_path('administration/packages/container_registry', anchor: 'run-the-cleanup-policy-now'),
"cleanup_policies_help_page_path" => help_page_path('user/packages/container_registry/index', anchor: 'how-the-cleanup-policy-works'),
2021-02-22 17:27:13 +05:30
"project_path": @project.full_path,
"gid_prefix": container_repository_gid_prefix,
2020-06-23 00:09:42 +05:30
"is_admin": current_user&.admin.to_s,
2020-04-22 19:07:51 +05:30
character_error: @character_error.to_s } }