提交 efa26760 编写于 作者: D Dmitriy Zaporozhets

Render readme file in public project#show

上级 a7fab42b
......@@ -17,5 +17,8 @@ class Public::ProjectsController < ApplicationController
@repository = @project.repository
@recent_tags = @repository.tags.first(10)
@commit = @repository.commit(params[:ref])
@tree = Tree.new(@repository, @commit.id, @ref, @path)
end
end
......@@ -2,7 +2,7 @@
%html{ lang: "en"}
= render "layouts/head", title: "Error"
%body{class: "#{app_theme} application"}
= render "layouts/head_panel", title: ""
= render "layouts/head_panel", title: "" if current_user
= render "layouts/flash"
.container
.content
......
- if false#tree.readme
= render "projects/tree/readme", readme: tree.readme
- else
.alert
%h3.nothing_here_message This project does not have README file
......@@ -16,8 +16,7 @@
%br
.row
.span9
.light-well
%h3.nothing_here_message Some awesome stuff here
= render 'tree', tree: @tree
.span3
%h5 Repository:
%div
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册