summaryrefslogtreecommitdiff
path: root/app/views/notes
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-10-10 12:14:48 +0200
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-10-10 12:14:48 +0200
commit81ee69381d9e01997a204b89cdeabf9854138967 (patch)
tree247baf5eb28f34170a5321a4d2fdbdcfb2782522 /app/views/notes
parentfb0279f3113f58b1cbdbe04acabe874ac4d231f9 (diff)
downloadgitlab-ce-81ee69381d9e01997a204b89cdeabf9854138967.tar.gz
Add links to the note source if the note is mixed in
Diffstat (limited to 'app/views/notes')
-rw-r--r--app/views/notes/_note.html.haml6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/notes/_note.html.haml b/app/views/notes/_note.html.haml
index 57946163b56..0901e4b8302 100644
--- a/app/views/notes/_note.html.haml
+++ b/app/views/notes/_note.html.haml
@@ -7,6 +7,12 @@
= time_ago_in_words(note.updated_at)
ago
+ - unless note_for_main_target?(note)
+ - if note.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?
+
-# only show vote if it's a note for the main target
- if note_for_main_target?(note)
- if note.upvote?