From b745e59b366970b2ea27b5cff4c754f7613ba66c Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Fri, 21 Oct 2011 21:14:55 +0300 Subject: [PATCH] link to file for commit diff --- app/views/commits/_diff.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/commits/_diff.html.haml b/app/views/commits/_diff.html.haml index 73652aaf9f7..c88e54307e9 100644 --- a/app/views/commits/_diff.html.haml +++ b/app/views/commits/_diff.html.haml @@ -31,7 +31,8 @@ - if diff.deleted_file %strong{:id => "#{diff.b_path}"}= diff.a_path - else - %strong{:id => "#{diff.b_path}"}= diff.b_path + = link_to tree_file_project_path(@project, @commit.id, diff.b_path) do + %strong{:id => "#{diff.b_path}"}= diff.b_path %br/ .diff_file_content - if file.text? -- GitLab