diff options
author | Ciro Santilli <ciro.santilli@gmail.com> | 2014-09-27 02:41:17 +0400 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@gmail.com> | 2014-10-02 14:03:30 +0400 |
commit | 3098e7a453c84ac4df1686b8bad6ef8004aca60d (patch) | |
tree | 3ad7bc927d6d18fd74e68a92bb5c935376b43560 /app/views/shared/_commit_message_container.html.haml | |
parent | b0349915e2615617aff9c5291f7e305d59ea3992 (diff) |
Factor commit message textareas.
Diffstat (limited to 'app/views/shared/_commit_message_container.html.haml')
-rw-r--r-- | app/views/shared/_commit_message_container.html.haml | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/app/views/shared/_commit_message_container.html.haml b/app/views/shared/_commit_message_container.html.haml index 4365947e701..5071ff640f1 100644 --- a/app/views/shared/_commit_message_container.html.haml +++ b/app/views/shared/_commit_message_container.html.haml @@ -1,3 +1,14 @@ -.commit-message-container - .max-width-marker - = textarea +.form-group.commit_message-group + = label_tag 'commit_message', class: 'control-label' do + Commit message + .col-sm-10 + .commit-message-container + .max-width-marker + = text_area_tag 'commit_message', + (params[:commit_message] || local_assigns[:text]), + class: 'form-control', placeholder: local_assigns[:placeholder], + required: true, rows: (local_assigns[:rows] || 3) + - if local_assigns[:hint] + %p.hint + Try to keep the first line under 52 characters + and the others under 72. |