Commit de229135 authored by Marin Jankovski's avatar Marin Jankovski

Check if blob is requested.

parent 4e0afce6
......@@ -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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment