summaryrefslogtreecommitdiff
path: root/app/views/projects/commits/_commit.html.haml
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-07-07 13:11:48 +0200
committerMarin Jankovski <marin@gitlab.com>2014-07-09 10:12:08 +0200
commitde229135011c8012acf157e1e8b10e4dc443dcd4 (patch)
tree8781addf86a42114619f7ce100442d38aced8d63 /app/views/projects/commits/_commit.html.haml
parent4e0afce6a70aa8d2f56706ce1304104b4f136c60 (diff)
downloadgitlab-ce-de229135011c8012acf157e1e8b10e4dc443dcd4.tar.gz
Check if blob is requested.
Diffstat (limited to 'app/views/projects/commits/_commit.html.haml')
-rw-r--r--app/views/projects/commits/_commit.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/commits/_commit.html.haml b/app/views/projects/commits/_commit.html.haml
index 2beb7495ed2..106d95ee10d 100644
--- a/app/views/projects/commits/_commit.html.haml
+++ b/app/views/projects/commits/_commit.html.haml
@@ -7,7 +7,7 @@
- if commit.description?
%a.text-expander.js-toggle-button ...
- - if @path.present?
+ - if @repo.blob_at(commit.id, @path)
= link_to "Browse File »", project_blob_path(project, tree_join(commit.id, @path)), class: "pull-right"
- else
= link_to "Browse Code »", project_tree_path(project, commit), class: "pull-right"