BigW Consortium Gitlab

_commit_message_container.html.haml 673 Bytes
Newer Older
1
.form-group.commit_message-group
2 3
  - nonce = SecureRandom.hex
  = label_tag "commit_message-#{nonce}", class: 'control-label' do
4 5 6 7 8
    Commit message
  .col-sm-10
    .commit-message-container
      .max-width-marker
      = text_area_tag 'commit_message',
9
          (params[:commit_message] || local_assigns[:text] || local_assigns[:placeholder]),
10
          class: 'form-control js-commit-message', placeholder: local_assigns[:placeholder],
11 12
          required: true, rows: (local_assigns[:rows] || 3),
          id: "commit_message-#{nonce}"
13 14 15 16
    - if local_assigns[:hint]
      %p.hint
        Try to keep the first line under 52 characters
        and the others under 72.