File: _index.html.haml

package info (click to toggle)
gitlab 17.6.5-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 629,368 kB
  • sloc: ruby: 1,915,304; javascript: 557,307; sql: 60,639; xml: 6,509; sh: 4,567; makefile: 1,239; python: 406
file content (25 lines) | stat: -rw-r--r-- 1,355 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
- expanded = expanded_by_default?

= render ::Layouts::SettingsBlockComponent.new(_('Deploy keys'),
  id: 'js-deploy-keys-settings',
  testid: 'deploy-keys-settings-content',
  css_class: 'rspec-deploy-keys-settings',
  expanded: expanded) do |c|
  - c.with_description do
    - link = link_to('', help_page_path('user/project/deploy_keys/index.md'), target: '_blank', rel: 'noopener noreferrer')
    = safe_format(_("Add deploy keys to grant read/write access to this repository. %{link_start}What are deploy keys?%{link_end}"), tag_pair(link, :link_start, :link_end))
  - c.with_body do
    = render ::Layouts::CrudComponent.new(_('Deploy keys'),
      body_options: { class: '!gl-m-0' },
      toggle_text: s_('DeployKeys|Add new key'),
      toggle_options: { data: { testid: 'add-new-deploy-key-button' } }) do |c|
      - c.with_body do
        #js-deploy-keys{ data: { project_id: @project.id,
                        project_path: @project.full_path,
                        enabled_endpoint: enabled_keys_project_deploy_keys_path(@project),
                        available_project_endpoint: available_project_keys_project_deploy_keys_path(@project),
                        available_public_endpoint: available_public_keys_project_deploy_keys_path(@project)
          } }

      - c.with_form do
        = render @deploy_keys.form_partial_path