summaryrefslogtreecommitdiff
path: root/app/views/projects/notes/_comment_type_button.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/notes/_comment_type_button.html.haml')
-rw-r--r--app/views/projects/notes/_comment_type_button.html.haml28
1 files changed, 0 insertions, 28 deletions
diff --git a/app/views/projects/notes/_comment_type_button.html.haml b/app/views/projects/notes/_comment_type_button.html.haml
deleted file mode 100644
index 1444a9d1b65..00000000000
--- a/app/views/projects/notes/_comment_type_button.html.haml
+++ /dev/null
@@ -1,28 +0,0 @@
-- noteable_type = @note.noteable_type
-
-.pull-left.btn-group.append-right-10.comment-type-dropdown.js-comment-type-dropdown
- %input.btn.btn-nr.btn-create.comment-btn.js-comment-button.js-comment-submit-button{ type: 'submit', value: 'Comment' }
- - 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')
- %ul#resolvable-comment-menu.dropdown-menu{ data: { dropdown: true } }
- %li#comment.droplab-item-selected{ data: { value: '', 'button-text' => 'Comment', 'secondary-button-text' => "Comment & close #{noteable_type.titleize.downcase}" } }
- = icon('check')
- .description
- %strong Comment
- %p= "Add a general comment to this #{noteable_type.titleize.downcase}."
- %li.divider
- - if @note.can_be_resolvable?
- %li#discussion{ data: { value: 'DiscussionNote', 'button-text' => 'Start discussion', 'secondary-button-text' => "Start discussion & close #{noteable_type.titleize.downcase}" } }
- = icon('check')
- .description
- %strong Start discussion
- %p
- Discuss a specific suggestion or question that needs to be resolved.
- - else
- %li#discussion{ data: { value: 'DiscussionNote', 'button-text' => 'Start discussion', 'secondary-button-text' => "Start discussion & close #{noteable_type.titleize.downcase}"} }
- = icon('check')
- .description
- %strong Start discussion
- %p
- Discuss a specific suggestion or question.