#93: fixed path to blob

This commit is contained in:
Vokhmin Alexey V 2013-04-10 15:57:07 +04:00
parent 7fe0079bd7
commit c7603fd607
1 changed files with 6 additions and 2 deletions

View File

@ -32,7 +32,11 @@
- id = node.id
= link_to(id[0..6], "#{url}/tree/#{id}", :class => 'files-see')
- else
.pic= image_tag (node.is_a?(Grit::Tree) ? 'folder.png' : 'code.png')
.name= link_to(node.name, tree_path(@project, @treeish, node_path), :class => 'files-see')
- options = [@project, @treeish, node_path]
- if node.is_a?(Grit::Tree)
- pic = 'folder.png'
- path = tree_path *options
.pic= image_tag pic || 'code.png'
.name= link_to(node.name, path || blob_path(*options), :class => 'files-see')
= render 'commit_info', :commit => commit