summaryrefslogtreecommitdiff
path: root/app/views/projects/_visibility_modal.html.haml
blob: 144f726572bb2ee818b0e7ffbebe5ca2bf818057 (plain)
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
26
27
28
29
- strong_start = "<strong>".html_safe
- strong_end = "</strong>".html_safe

.modal.js-confirm-project-visiblity{ tabindex: -1 }
  .modal-dialog
    .modal-content
      .modal-header
        %h3.page-title= _('Reduce this project’s visibility?')
        %button.close{ type: "button", "data-dismiss": "modal", "aria-label" => _('Close') }
          %span{ "aria-hidden": true }= sprite_icon("close")
      .modal-body
        %p
          - if @project.group
            = _("You're about to reduce the visibility of the project %{strong_start}%{project_name}%{strong_end} in %{strong_start}%{group_name}%{strong_end}.").html_safe % { project_name: @project.name, group_name: @project.group.name, strong_start: strong_start, strong_end: strong_end }
          - else
            = _("You're about to reduce the visibility of the project %{strong_start}%{project_name}%{strong_end}.").html_safe % { project_name: @project.name, strong_start: strong_start, strong_end: strong_end }
        %p
          = _('Once you confirm and press "Reduce project visibility":')
        %ul
          %li
            = ("Current forks will keep their visibility level but their fork relationship with this project will be %{strong_start}removed%{strong_end}.").html_safe % { strong_start: strong_start, strong_end: strong_end }
        %label{ for: "confirm_path_input" }
          = ("To confirm, type %{phrase_code}").html_safe % { phrase_code: '<code class="js-confirm-danger-match">%{phrase_name}</code>'.html_safe % { phrase_name: @project.full_path } }
        .form-group
          = text_field_tag 'confirm_path_input', '', class: 'form-control js-confirm-danger-input qa-confirm-input'
        .form-actions.gl-display-flex.gl-justify-content-end
          %button.btn.btn-default.gl-mr-4{ type: "button", "data-dismiss": "modal" }
            = _('Cancel')
          = submit_tag _('Reduce project visibility'), class: "btn btn-danger js-confirm-danger-submit qa-confirm-button", disabled: true