#93: fixed path to blob
This commit is contained in:
parent
7fe0079bd7
commit
c7603fd607
|
@ -32,7 +32,11 @@
|
||||||
- id = node.id
|
- id = node.id
|
||||||
= link_to(id[0..6], "#{url}/tree/#{id}", :class => 'files-see')
|
= link_to(id[0..6], "#{url}/tree/#{id}", :class => 'files-see')
|
||||||
- else
|
- else
|
||||||
.pic= image_tag (node.is_a?(Grit::Tree) ? 'folder.png' : 'code.png')
|
- options = [@project, @treeish, node_path]
|
||||||
.name= link_to(node.name, tree_path(@project, @treeish, node_path), :class => 'files-see')
|
- 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
|
= render 'commit_info', :commit => commit
|
||||||
|
|
Loading…
Reference in New Issue