summaryrefslogtreecommitdiff
path: root/app/views/clusters/clusters/_namespace.html.haml
blob: 9b728e7a89bb0e0ad64ea0d9d514115955b3e95b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
- managed_namespace_help_text = s_('ClusterIntegration|Set a prefix for your namespaces. If not set, defaults to your project path. If modified, existing environments will use their current namespaces until the cluster cache is cleared.')
- non_managed_namespace_help_text = s_('ClusterIntegration|The namespace associated with your project. This will be used for deploy boards, logs, and Web terminals.')
- managed_namespace_help_link = link_to _('More information'), help_page_path('user/project/clusters/index.md',
  anchor: 'gitlab-managed-clusters'), target: '_blank'

.js-namespace-prefixed
  = platform_field.text_field :namespace,
    label: s_('ClusterIntegration|Project namespace prefix (optional, unique)'), label_class: 'label-bold',
    help: '%{help_text} %{help_link}'.html_safe % { help_text: managed_namespace_help_text, help_link: managed_namespace_help_link }
.js-namespace.hidden
  = platform_field.text_field :namespace,
    label: s_('ClusterIntegration|Project namespace (optional, unique)'), label_class: 'label-bold',
    help: '%{help_text}'.html_safe % { help_text: non_managed_namespace_help_text },
    disabled: true