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
path: root/app/views
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-10-15 21:11:00 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-10-15 21:11:00 +0400
commite84d90c1e75800bc4186c8360c5a0d331c124517 (patch)
treedd170a7cdf7549ae1134617ba85c40dd058ec444 /app/views
parentbd5dbe14e45a19b30c5b9ff23a82559c79bd2e6f (diff)
parentb1461de993daf6d43c8a54482eecacc6bb58df4d (diff)
Merge pull request #1692 from riyad/saner-note-methods
Small Note code cleanup
Diffstat (limited to 'app/views')
-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)