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
|
2021-03-11 19:13:27 +05:30
|
|
|
- add_page_startup_graphql_call('container_registry/get_container_repositories', { fullPath: @project.full_path, first: 10, name: nil, isGroupPage: false, sort: nil} )
|
2019-12-21 20:55:43 +05:30
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
%section
|
2021-03-08 18:12:59 +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),
|
2022-03-02 08:16:31 +05:30
|
|
|
"expiration_policy_help_page_path" => help_page_path('user/packages/container_registry/reduce_container_registry_storage', anchor: 'cleanup-policy'),
|
2021-03-08 18:12:59 +05:30
|
|
|
"garbage_collection_help_page_path" => help_page_path('administration/packages/container_registry', anchor: 'container-registry-garbage-collection'),
|
|
|
|
"run_cleanup_policies_help_page_path" => help_page_path('administration/packages/container_registry', anchor: 'run-the-cleanup-policy-now'),
|
|
|
|
"project_path": @project.full_path,
|
|
|
|
"gid_prefix": container_repository_gid_prefix,
|
|
|
|
"is_admin": current_user&.admin.to_s,
|
2021-09-04 01:27:46 +05:30
|
|
|
"show_cleanup_policy_on_alert": show_cleanup_policy_on_alert(@project).to_s,
|
|
|
|
"cleanup_policies_settings_path": project_settings_packages_and_registries_path(@project),
|
2021-11-18 22:05:49 +05:30
|
|
|
connection_error: (!!@connection_error).to_s,
|
|
|
|
invalid_path_error: (!!@invalid_path_error).to_s,
|
2022-01-26 12:08:38 +05:30
|
|
|
user_callouts_path: callouts_path,
|
|
|
|
user_callout_id: Users::CalloutsHelper::UNFINISHED_TAG_CLEANUP_CALLOUT,
|
2021-03-11 19:13:27 +05:30
|
|
|
show_unfinished_tag_cleanup_callout: show_unfinished_tag_cleanup_callout?.to_s, } }
|