diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-20 21:42:06 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-20 21:42:06 +0300 |
commit | 6e4e1050d9dba2b7b2523fdd1768823ab85feef4 (patch) | |
tree | 78be5963ec075d80116a932011d695dd33910b4e /app/helpers/notes_helper.rb | |
parent | 1ce776de4ae122aba3f349c02c17cebeaa8ecf07 (diff) |
Add latest changes from gitlab-org/gitlab@13-3-stable-ee
Diffstat (limited to 'app/helpers/notes_helper.rb')
-rw-r--r-- | app/helpers/notes_helper.rb | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/app/helpers/notes_helper.rb b/app/helpers/notes_helper.rb index 782f1d3e759..2ba1d841c2e 100644 --- a/app/helpers/notes_helper.rb +++ b/app/helpers/notes_helper.rb @@ -57,12 +57,14 @@ module NotesHelper def add_diff_note_button(line_code, position, line_type) return if @diff_notes_disabled - button_tag '', - class: 'add-diff-note js-add-diff-note-button', - type: 'submit', name: 'button', - data: diff_view_line_data(line_code, position, line_type), - title: _('Add a comment to this line') do - sprite_icon('comment', size: 12) + content_tag(:span, class: 'add-diff-note tooltip-wrapper') do + button_tag '', + class: 'note-button add-diff-note js-add-diff-note-button', + type: 'submit', name: 'button', + data: diff_view_line_data(line_code, position, line_type), + title: _('Add a comment to this line') do + sprite_icon('comment', size: 12) + end end end @@ -126,7 +128,7 @@ module NotesHelper if @snippet.is_a?(PersonalSnippet) [@note] else - [@project.namespace.becomes(Namespace), @project, @note] + [@project, @note] end end |