Skip to content
Snippets Groups Projects
Commit efa26760 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Render readme file in public project#show

parent a7fab42b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
@@ -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
Loading
Loading
- if false#tree.readme
= render "projects/tree/readme", readme: tree.readme
- else
.alert
%h3.nothing_here_message This project does not have README file
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment