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
Tatuya Kamada
gitlab-ce
Commits
7b7549be
Commit
7b7549be
authored
Dec 13, 2011
by
Saito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tree view readme support
parent
f615c877
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
13 deletions
+30
-13
app/assets/stylesheets/projects.css.scss
app/assets/stylesheets/projects.css.scss
+23
-12
app/views/refs/_tree.html.haml
app/views/refs/_tree.html.haml
+7
-1
No files found.
app/assets/stylesheets/projects.css.scss
View file @
7b7549be
...
@@ -67,8 +67,8 @@ a {
...
@@ -67,8 +67,8 @@ a {
}
}
}
}
.view_file
.view_file_header
,
.view_file
.view_file_header
,
.diff_file
.diff_file_header
{
.diff_file
.diff_file_header
{
background-image
:
-webkit-gradient
(
linear
,
0
0
,
0
26
,
color-stop
(
0
.076
,
#fefefe
)
,
to
(
#F6F7F8
));
background-image
:
-webkit-gradient
(
linear
,
0
0
,
0
26
,
color-stop
(
0
.076
,
#fefefe
)
,
to
(
#F6F7F8
));
background-image
:
-webkit-linear-gradient
(
#fefefe
7
.6%
,
#F6F7F8
);
background-image
:
-webkit-linear-gradient
(
#fefefe
7
.6%
,
#F6F7F8
);
background-image
:
-moz-linear-gradient
(
#fefefe
7
.6%
,
#F6F7F8
);
background-image
:
-moz-linear-gradient
(
#fefefe
7
.6%
,
#F6F7F8
);
...
@@ -116,7 +116,7 @@ td.code {
...
@@ -116,7 +116,7 @@ td.code {
word-wrap
:normal
;
word-wrap
:normal
;
}
}
table
.highlighttable
{
table
.highlighttable
{
border
:
none
;
border
:
none
;
background
:
#F7F7F7
;
background
:
#F7F7F7
;
}
}
...
@@ -331,7 +331,7 @@ body.project-page table .commit {
...
@@ -331,7 +331,7 @@ body.project-page table .commit {
border
:none
;
border
:none
;
text-shadow
:none
;
text-shadow
:none
;
&
.inline
{
&
.inline
{
display
:inline
;
display
:inline
;
}
}
...
@@ -430,28 +430,28 @@ body.projects-page input.text.git-url.project_list_url { width:165px; }
...
@@ -430,28 +430,28 @@ body.projects-page input.text.git-url.project_list_url { width:165px; }
body
.project-page
table
.no-borders
tr
,
body
.project-page
table
.no-borders
tr
,
body
.project-page
table
.no-borders
td
{
body
.project-page
table
.no-borders
td
{
border
:none
;
border
:none
;
}
}
#gitlab-tabs
{
#gitlab-tabs
{
.ui-tabs-nav
{
.ui-tabs-nav
{
border-bottom
:
1px
solid
#DEDFE1
;
border-bottom
:
1px
solid
#DEDFE1
;
li
{
li
{
background
:
none
;
background
:
none
;
border
:none
;
border
:none
;
font-size
:
16px
;
font-size
:
16px
;
margin
:
0
;
margin
:
0
;
padding
:
0
;
padding
:
0
;
a
{
a
{
margin
:
0
;
margin
:
0
;
padding
:
10px
16px
;
padding
:
10px
16px
;
width
:
150px
;
width
:
150px
;
}
}
&
.ui-tabs-selected
{
&
.ui-tabs-selected
{
background-image
:
-webkit-gradient
(
linear
,
0
0
,
0
26
,
color-stop
(
0
.076
,
#fefefe
)
,
to
(
#F6F7F8
));
background-image
:
-webkit-gradient
(
linear
,
0
0
,
0
26
,
color-stop
(
0
.076
,
#fefefe
)
,
to
(
#F6F7F8
));
background-image
:
-webkit-linear-gradient
(
#fefefe
7
.6%
,
#F6F7F8
);
background-image
:
-webkit-linear-gradient
(
#fefefe
7
.6%
,
#F6F7F8
);
background-image
:
-moz-linear-gradient
(
#fefefe
7
.6%
,
#F6F7F8
);
background-image
:
-moz-linear-gradient
(
#fefefe
7
.6%
,
#F6F7F8
);
...
@@ -466,17 +466,28 @@ body.project-page table.no-borders td{
...
@@ -466,17 +466,28 @@ body.project-page table.no-borders td{
border-top-left-radius
:
5px
;
border-top-left-radius
:
5px
;
border-top-right-radius
:
5px
;
border-top-right-radius
:
5px
;
}
}
}
}
}
}
}
}
.ajax-tab-loading
{
.ajax-tab-loading
{
padding
:
40px
;
padding
:
40px
;
display
:none
;
display
:none
;
}
}
#tree-content-holder
{
float
:left
;
width
:
100%
;
}
#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 */
/* Commit Page */
...
...
app/views/refs/_tree.html.haml
View file @
7b7549be
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
%th
%th
Last commit
Last commit
=
link_to
"history"
,
tree
.
history_path
,
:class
=>
"right"
=
link_to
"history"
,
tree
.
history_path
,
:class
=>
"right"
-
if
tree
.
up_dir?
-
if
tree
.
up_dir?
%tr
{
:class
=>
"tree-item"
,
:url
=>
tree
.
up_dir_path
}
%tr
{
:class
=>
"tree-item"
,
:url
=>
tree
.
up_dir_path
}
%td
.tree-item-file-name
%td
.tree-item-file-name
...
@@ -36,6 +36,12 @@
...
@@ -36,6 +36,12 @@
-
contents
.
select
{
|
i
|
i
.
is_a?
(
Grit
::
Blob
)}.
each
do
|
content
|
-
contents
.
select
{
|
i
|
i
.
is_a?
(
Grit
::
Blob
)}.
each
do
|
content
|
=
render
:partial
=>
"refs/tree_item"
,
:locals
=>
{
:content
=>
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
:javascript
$
(
function
(){
$
(
function
(){
$
(
'
select#branch
'
).
selectmenu
({
style
:
'
popup
'
,
width
:
200
});
$
(
'
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