Skip to content
Snippets Groups Projects
Commit 4d6c51e2 authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg
Browse files

Fix backend merge mistakes

[ci skip]
parent b40afae6
No related branches found
No related tags found
No related merge requests found
Loading
@@ -303,7 +303,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
Loading
@@ -303,7 +303,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
# Build a note object for comment form # Build a note object for comment form
@note = @project.notes.new(noteable: @merge_request) @note = @project.notes.new(noteable: @merge_request)
@notes = @merge_request.mr_and_commit_notes.inc_author.fresh @notes = @merge_request.mr_and_commit_notes.inc_author.fresh
@discussions = Note.discussions_from_notes(@notes) @discussions = @notes.discussions
@noteable = @merge_request @noteable = @merge_request
   
# Get commits from repository # Get commits from repository
Loading
Loading
Loading
@@ -193,7 +193,7 @@ class Note < ActiveRecord::Base
Loading
@@ -193,7 +193,7 @@ class Note < ActiveRecord::Base
end end
   
def award_emoji_supported? def award_emoji_supported?
noteable.is_a?(Awardable) && !for_diff_line? noteable.is_a?(Awardable) && !line_code.present?
end end
   
def contains_emoji_only? def contains_emoji_only?
Loading
Loading
Loading
@@ -38,8 +38,6 @@
Loading
@@ -38,8 +38,6 @@
= markdown(note.note, pipeline: :note, cache_key: [note, "note"]) = markdown(note.note, pipeline: :note, cache_key: [note, "note"])
- if note_editable - if note_editable
= render 'projects/notes/edit_form', note: note = render 'projects/notes/edit_form', note: note
.note-awards
= render 'emoji_awards/awards_block', awardable: note, inline: false
= edited_time_ago_with_tooltip(note, placement: 'bottom', html_class: 'note_edited_ago', include_author: true) = edited_time_ago_with_tooltip(note, placement: 'bottom', html_class: 'note_edited_ago', include_author: true)
   
- if note.attachment.url - if note.attachment.url
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment