BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
a39fb5fc
Commit
a39fb5fc
authored
Dec 13, 2011
by
Saito
Committed by
Jeremy Mack
Dec 13, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tree view readme support
parent
a1cd582c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
projects.css.scss
app/assets/stylesheets/projects.css.scss
+11
-0
_tree.html.haml
app/views/refs/_tree.html.haml
+6
-0
No files found.
app/assets/stylesheets/projects.css.scss
View file @
a39fb5fc
...
...
@@ -477,6 +477,17 @@ body.project-page table.no-borders td{
#tree-content-holder
{
float
:left
;
width
:
100%
;
}
#tree-readme-holder
{
float
:left
;
width
:
100%
;
.readme
{
@include
round-borders-all
(
4px
);
padding
:
4px
15px
;
background
:
#F7F7F7
;
}
}
/* Commit Page */
...
...
app/views/refs/_tree.html.haml
View file @
a39fb5fc
...
...
@@ -35,6 +35,12 @@
-
contents
.
select
{
|
i
|
i
.
is_a?
(
Grit
::
Blob
)}.
each
do
|
content
|
=
render
:partial
=>
"refs/tree_item"
,
:locals
=>
{
:content
=>
content
}
-
if
content
=
contents
.
select
{
|
c
|
c
.
is_a?
(
Grit
::
Blob
)
and
c
.
name
=~
/^readme\.(md|markdown)$/i
}.
first
#tree-readme-holder
%h3
=
content
.
name
.readme
=
markdown
(
encode
content
.
data
)
:javascript
$
(
function
(){
$
(
'select#branch'
).
selectmenu
({
style
:
'popup'
,
width
:
200
});
...
...
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