Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
efa26760
Commit
efa26760
authored
Jul 29, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Render readme file in public project#show
parent
a7fab42b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
3 deletions
+10
-3
app/controllers/public/projects_controller.rb
app/controllers/public/projects_controller.rb
+3
-0
app/views/layouts/errors.html.haml
app/views/layouts/errors.html.haml
+1
-1
app/views/public/projects/_tree.html.haml
app/views/public/projects/_tree.html.haml
+5
-0
app/views/public/projects/show.html.haml
app/views/public/projects/show.html.haml
+1
-2
No files found.
app/controllers/public/projects_controller.rb
View file @
efa26760
...
@@ -17,5 +17,8 @@ class Public::ProjectsController < ApplicationController
...
@@ -17,5 +17,8 @@ class Public::ProjectsController < ApplicationController
@repository
=
@project
.
repository
@repository
=
@project
.
repository
@recent_tags
=
@repository
.
tags
.
first
(
10
)
@recent_tags
=
@repository
.
tags
.
first
(
10
)
@commit
=
@repository
.
commit
(
params
[
:ref
])
@tree
=
Tree
.
new
(
@repository
,
@commit
.
id
,
@ref
,
@path
)
end
end
end
end
app/views/layouts/errors.html.haml
View file @
efa26760
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
%html
{
lang:
"en"
}
%html
{
lang:
"en"
}
=
render
"layouts/head"
,
title:
"Error"
=
render
"layouts/head"
,
title:
"Error"
%body
{
class:
"#{app_theme} application"
}
%body
{
class:
"#{app_theme} application"
}
=
render
"layouts/head_panel"
,
title:
""
=
render
"layouts/head_panel"
,
title:
""
if
current_user
=
render
"layouts/flash"
=
render
"layouts/flash"
.container
.container
.content
.content
...
...
app/views/public/projects/_tree.html.haml
0 → 100644
View file @
efa26760
-
if
false
#tree.readme
=
render
"projects/tree/readme"
,
readme:
tree
.
readme
-
else
.alert
%h3
.nothing_here_message
This project does not have README file
app/views/public/projects/show.html.haml
View file @
efa26760
...
@@ -16,8 +16,7 @@
...
@@ -16,8 +16,7 @@
%br
%br
.row
.row
.span9
.span9
.light-well
=
render
'tree'
,
tree:
@tree
%h3
.nothing_here_message
Some awesome stuff here
.span3
.span3
%h5
Repository:
%h5
Repository:
%div
%div
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment