debian-mirror-gitlab/app/views/shared/notes/_comment_button.html.haml

31 lines
1.7 KiB
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
- noteable_name = @note.noteable.human_class_name
2018-11-08 19:23:39 +05:30
.float-left.btn-group.append-right-10.droplab-dropdown.comment-type-dropdown.js-comment-type-dropdown
2018-12-05 23:21:45 +05:30
%input.btn.btn-nr.btn-success.comment-btn.js-comment-button.js-comment-submit-button{ type: 'submit', value: 'Comment' }
2017-08-17 22:00:37 +05:30
- if @note.can_be_discussion_note?
= button_tag type: 'button', class: 'btn btn-nr dropdown-toggle comment-btn js-note-new-discussion js-disable-on-submit', data: { 'dropdown-trigger' => '#resolvable-comment-menu' }, 'aria-label' => 'Open comment type dropdown' do
= icon('caret-down', class: 'toggle-icon')
2018-03-17 18:26:18 +05:30
%ul#resolvable-comment-menu.dropdown-menu.dropdown-open-top{ data: { dropdown: true } }
2017-08-17 22:00:37 +05:30
%li#comment.droplab-item-selected{ data: { value: '', 'submit-text' => 'Comment', 'close-text' => "Comment & close #{noteable_name}", 'reopen-text' => "Comment & reopen #{noteable_name}" } }
2017-09-10 17:25:29 +05:30
%button.btn.btn-transparent
= icon('check', class: 'icon')
2017-08-17 22:00:37 +05:30
.description
%strong Comment
%p
Add a general comment to this #{noteable_name}.
%li.divider.droplab-item-ignore
%li#discussion{ data: { value: 'DiscussionNote', 'submit-text' => 'Start discussion', 'close-text' => "Start discussion & close #{noteable_name}", 'reopen-text' => "Start discussion & reopen #{noteable_name}" } }
2017-09-10 17:25:29 +05:30
%button.btn.btn-transparent
= icon('check', class: 'icon')
2017-08-17 22:00:37 +05:30
.description
%strong Start discussion
%p
= succeed '.' do
Discuss a specific suggestion or question
- if @note.noteable.supports_resolvable_notes?
that needs to be resolved