diff --git a/app/controllers/public/projects_controller.rb b/app/controllers/public/projects_controller.rb index ed90d0348ea660354b54a05737884bc18c6c8ffe..85216cd32714d38689a1f1b66fc38b0cf7dcc628 100644 --- a/app/controllers/public/projects_controller.rb +++ b/app/controllers/public/projects_controller.rb @@ -19,6 +19,6 @@ class Public::ProjectsController < ApplicationController @recent_tags = @repository.tags.first(10) @commit = @repository.commit(params[:ref]) - @tree = Tree.new(@repository, @commit.id, @ref, @path) + @tree = Tree.new(@repository, @commit.id) end end diff --git a/app/views/public/projects/_tree.html.haml b/app/views/public/projects/_tree.html.haml index cc701dfaca7309a8477f5d2e8706c958e9033320..bd09c236a0b2fd7ad5cd23e9d3940c3f7268fe97 100644 --- a/app/views/public/projects/_tree.html.haml +++ b/app/views/public/projects/_tree.html.haml @@ -1,4 +1,4 @@ -- if false#tree.readme +- if tree.readme = render "projects/tree/readme", readme: tree.readme - else .alert