Commit efa26760 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Render readme file in public project#show

parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment