From eefe826f83bbbb9f0bc213aea4eae851dd116655 Mon Sep 17 00:00:00 2001 From: gitlabhq Date: Tue, 11 Oct 2011 23:00:00 +0300 Subject: project tile view --- app/views/projects/_tree_item.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/projects/_tree_item.html.haml') diff --git a/app/views/projects/_tree_item.html.haml b/app/views/projects/_tree_item.html.haml index 25575283993..7179368a0c3 100644 --- a/app/views/projects/_tree_item.html.haml +++ b/app/views/projects/_tree_item.html.haml @@ -1,5 +1,5 @@ - file = params[:path] ? File.join(params[:path], content.name) : content.name -- content_commit = @repo.log(@branch, file, :max_count => 1).last +- content_commit = @project.repo.log(@branch, file, :max_count => 1).last - return unless content_commit %tr{ :class => "tree-item", :url => tree_file_project_path(@project, @commit.id, file) } %td.tree-item-file-name -- cgit v1.2.3