gir tree fixes

This commit is contained in:
Timothy N. Tsvetkov 2011-03-11 19:31:06 +03:00
parent 3a3930b1b1
commit 9cb7540f19
2 changed files with 3 additions and 4 deletions

View File

@ -6,8 +6,7 @@ class Git::TreesController < Git::BaseController
@tree = @repository.tree(@treeish)
# ???
# @tree = @tree / @path if @path
@tree = @tree / @path if @path
render :template => "git/repositories/show"
end

View File

@ -3,13 +3,13 @@
%h3 Tags:
%ul
- @repository.tags.each do |tag|
%li= link_to tag.name, tree_path(@platform.name, @project.name, tag.name)
%li= link_to tag.name, tree_path(@platform.name, @project.name, :treeish => tag.name)
.row.heads
%h3 Heads:
%ul
- @repository.heads.each do |head|
%li= link_to head.name, tree_path(@platform.name, @project.name, head.name)
%li= link_to head.name, tree_path(@platform.name, @project.name, :treeish => head.name)
%table
%thead