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
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2011-10-21 22:14:55 +0400
committerDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2011-10-21 22:14:55 +0400
commita27277bcb44062b7efeafd1cbd7d9fecee399cb3 (patch)
tree5226ecd62b4df2be46b243cfb6338499fcf31777
parent35fd988c6ea5aab9c54982059d966799cd6ae2dd (diff)
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?