Check if blob is requested.
This commit is contained in:
parent
4e0afce6a7
commit
de22913501
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue