summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgitlabhq <m@gitlabhq.com>2011-10-21 21:14:55 +0300
committergitlabhq <m@gitlabhq.com>2011-10-22 14:08:03 +0300
commit29e11d1461a5689ff295adb035e38564701ad377 (patch)
treeb9b304741b9f85607a05e3d53cf4de71a77be765
parent35d24b3928a0905d23e8e33bbc9a89d33fa0a480 (diff)
downloadgitlab-ce-29e11d1461a5689ff295adb035e38564701ad377.tar.gz
link to file for commit diff
-rw-r--r--app/views/commits/_diff.html.haml3
1 files changed, 2 insertions, 1 deletions
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?