change logic on line_code

This commit is contained in:
Dmitriy Zaporozhets 2013-01-15 11:12:17 +02:00
parent bda7fe38d0
commit f598cc7897
9 changed files with 54 additions and 21 deletions

View file

@ -17,7 +17,7 @@ module NotesHelper
end
def link_to_merge_request_diff_line_note(note)
if note.for_merge_request_diff_line?
if note.for_merge_request_diff_line? and note.diff
link_to "#{note.diff_file_name}:L#{note.diff_new_line}", diffs_project_merge_request_path(note.project, note.noteable_id, anchor: note.line_code)
end
end