Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_new_merge_request_checkbox.html.haml « shared « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b84efd2d577f9d6acdc999f53b83bd91070d66d3 (plain)
1
2
3
4
5
6
7
8
9
10
.form-group.gl-mt-3
  - nonce = SecureRandom.hex
  = render Pajamas::CheckboxTagComponent.new(name: 'create_merge_request',
    checked: true,
    checkbox_options: { class: 'js-create-merge-request', id: "create_merge_request-#{nonce}" },
    label_options: { for: "create_merge_request-#{nonce}" }) do |c|
    - c.with_label do
      - translation_variables = { new_merge_request: "<strong>#{_('new merge request')}</strong>" }
      - translation = _('Start a %{new_merge_request} with these changes') % translation_variables
      #{ translation.html_safe }