From de229135011c8012acf157e1e8b10e4dc443dcd4 Mon Sep 17 00:00:00 2001 From: Marin Jankovski Date: Mon, 7 Jul 2014 13:11:48 +0200 Subject: [PATCH] Check if blob is requested. --- app/views/projects/commits/_commit.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"