debian-mirror-gitlab/app/views/projects/_visibility_modal.html.haml

30 lines
1.8 KiB
Text
Raw Normal View History

2020-01-01 13:55:28 +05:30
- strong_start = "<strong>".html_safe
- strong_end = "</strong>".html_safe
.modal.js-confirm-project-visiblity{ tabindex: -1 }
.modal-dialog
.modal-content
.modal-header
2022-07-23 23:45:48 +05:30
%h1.page-title.gl-font-size-h-display= _('Reduce this projects visibility?')
2020-01-01 13:55:28 +05:30
%button.close{ type: "button", "data-dismiss": "modal", "aria-label" => _('Close') }
2021-09-04 01:27:46 +05:30
%span{ "aria-hidden": "true" }= sprite_icon("close")
2020-01-01 13:55:28 +05:30
.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
2021-03-08 18:12:59 +05:30
= _("Current forks will keep their visibility level.").html_safe
2020-01-01 13:55:28 +05:30
%label{ for: "confirm_path_input" }
2021-12-11 22:18:48 +05:30
= _("To confirm, type %{phrase_code}").html_safe % { phrase_code: '<code class="js-legacy-confirm-danger-match">%{phrase_name}</code>'.html_safe % { phrase_name: @project.full_path } }
2020-01-01 13:55:28 +05:30
.form-group
2022-08-27 11:52:29 +05:30
= text_field_tag 'confirm_path_input', '', class: 'form-control js-legacy-confirm-danger-input'
2021-01-03 14:25:43 +05:30
.form-actions
2021-03-11 19:13:27 +05:30
%button.btn.gl-button.btn-default.gl-mr-4{ type: "button", "data-dismiss": "modal" }
2020-10-24 23:57:45 +05:30
= _('Cancel')
2022-08-27 11:52:29 +05:30
= submit_tag _('Reduce project visibility'), class: "btn gl-button btn-danger js-legacy-confirm-danger-submit", disabled: true