2018-04-12 16:11:22 -04:00
|
|
|
.form-group.row.commit_message-group
|
2015-11-17 12:53:56 -05:00
|
|
|
- nonce = SecureRandom.hex
|
2016-11-28 16:10:59 -05:00
|
|
|
- descriptions = local_assigns.slice(:message_with_description, :message_without_description)
|
2018-04-12 19:16:56 -04:00
|
|
|
= label_tag "commit_message-#{nonce}", class: 'col-form-label col-sm-2' do
|
2017-06-09 09:08:39 -04:00
|
|
|
#{ _('Commit message') }
|
2014-09-26 18:41:17 -04:00
|
|
|
.col-sm-10
|
|
|
|
.commit-message-container
|
|
|
|
.max-width-marker
|
|
|
|
= text_area_tag 'commit_message',
|
2016-04-11 12:41:47 -04:00
|
|
|
(params[:commit_message] || local_assigns[:text] || local_assigns[:placeholder]),
|
2016-02-12 16:28:53 -05:00
|
|
|
class: 'form-control js-commit-message', placeholder: local_assigns[:placeholder],
|
2016-11-28 16:10:59 -05:00
|
|
|
data: descriptions,
|
2015-11-17 12:53:56 -05:00
|
|
|
required: true, rows: (local_assigns[:rows] || 3),
|
|
|
|
id: "commit_message-#{nonce}"
|
2014-09-26 18:41:17 -04:00
|
|
|
- if local_assigns[:hint]
|
|
|
|
%p.hint
|
|
|
|
Try to keep the first line under 52 characters
|
|
|
|
and the others under 72.
|
2016-11-28 16:10:59 -05:00
|
|
|
- if descriptions.present?
|
2017-02-10 12:21:20 -05:00
|
|
|
.hint.js-with-description-hint
|
2016-12-05 06:43:40 -05:00
|
|
|
= link_to "#", class: "js-with-description-link" do
|
2016-11-28 04:48:55 -05:00
|
|
|
Include description in commit message
|
2018-04-24 17:40:46 -04:00
|
|
|
.hint.js-without-description-hint.hide
|
2016-12-05 06:43:40 -05:00
|
|
|
= link_to "#", class: "js-without-description-link" do
|
2016-11-28 04:48:55 -05:00
|
|
|
Don't include description in commit message
|