Render readme file in public project#show

This commit is contained in:
Dmitriy Zaporozhets
2013-07-29 16:50:00 +03:00
parent a7fab42b9c
commit efa2676021
4 changed files with 10 additions and 3 deletions
@@ -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
+1 -1
View File
@@ -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
@@ -0,0 +1,5 @@
- if false#tree.readme
= render "projects/tree/readme", readme: tree.readme
- else
.alert
%h3.nothing_here_message This project does not have README file
+1 -2
View 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