Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/notes/_note.html.haml')
-rw-r--r--app/views/notes/_note.html.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/notes/_note.html.haml b/app/views/notes/_note.html.haml
index 0901e4b8302..70baa212d10 100644
--- a/app/views/notes/_note.html.haml
+++ b/app/views/notes/_note.html.haml
@@ -8,10 +8,10 @@
ago
- unless note_for_main_target?(note)
- - if note.commit?
+ - if note.for_commit?
%span.cgray
- on #{link_to note.target.short_id, project_commit_path(@project, note.target)}
- = link_to_commit_diff_line_note(note) if note.line_note?
+ on #{link_to note.noteable.short_id, project_commit_path(@project, note.noteable)}
+ = link_to_commit_diff_line_note(note) if note.for_diff_line?
-# only show vote if it's a note for the main target
- if note_for_main_target?(note)