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"