Check if blob is requested.

This commit is contained in:
Marin Jankovski 2014-07-07 13:11:48 +02:00
parent 4e0afce6a7
commit de22913501
1 changed files with 1 additions and 1 deletions

View File

@ -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"