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
Kazuhiko Shiozaki
gitlab-ce
Commits
d4ad3623
Commit
d4ad3623
authored
Jan 27, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bootstrap: commits page + tree
parent
bef29f07
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
47 additions
and
47 deletions
+47
-47
app/assets/stylesheets/common.scss
app/assets/stylesheets/common.scss
+4
-3
app/assets/stylesheets/highlight.black.css.scss
app/assets/stylesheets/highlight.black.css.scss
+1
-0
app/assets/stylesheets/highlight.css.scss
app/assets/stylesheets/highlight.css.scss
+6
-0
app/assets/stylesheets/tree.scss
app/assets/stylesheets/tree.scss
+1
-0
app/views/commits/_commits.html.haml
app/views/commits/_commits.html.haml
+2
-1
app/views/commits/index.html.haml
app/views/commits/index.html.haml
+8
-6
app/views/commits/show.html.haml
app/views/commits/show.html.haml
+0
-1
app/views/profile/show.html.haml
app/views/profile/show.html.haml
+24
-35
app/views/refs/_tree.html.haml
app/views/refs/_tree.html.haml
+1
-1
No files found.
app/assets/stylesheets/common.scss
View file @
d4ad3623
...
@@ -101,6 +101,7 @@ $blue_link: "#2fa0bb";
...
@@ -101,6 +101,7 @@ $blue_link: "#2fa0bb";
width
:
140px
;
width
:
140px
;
border-right
:
1px
solid
$border_color
;
border-right
:
1px
solid
$border_color
;
height
:
100%
;
height
:
100%
;
min-height
:
450px
;
}
}
.container-fluid
>
.content
{
.container-fluid
>
.content
{
...
@@ -111,6 +112,7 @@ $blue_link: "#2fa0bb";
...
@@ -111,6 +112,7 @@ $blue_link: "#2fa0bb";
@import
"top_panel.scss"
;
@import
"top_panel.scss"
;
@import
"projects.css.scss"
;
@import
"projects.css.scss"
;
@import
"commits.css.scss"
;
@import
"commits.css.scss"
;
@import
"tree.scss"
;
//@import "style.scss";
//@import "style.scss";
//@import "notes.css.scss";
//@import "notes.css.scss";
...
@@ -120,11 +122,10 @@ $blue_link: "#2fa0bb";
...
@@ -120,11 +122,10 @@ $blue_link: "#2fa0bb";
//@import "commits.css.scss";
//@import "commits.css.scss";
//@import "dashboard.scss";
//@import "dashboard.scss";
//@import "tree.scss";
//@import "tags.scss";
//@import "tags.scss";
//@import "buttons.scss";
//@import "buttons.scss";
/** CODE HIGHTLIGHT **/
/** CODE HIGHTLIGHT **/
//
@import "highlight.css.scss";
@import
"highlight.css.scss"
;
//
@import "highlight.black.css.scss";
@import
"highlight.black.css.scss"
;
app/assets/stylesheets/highlight.black.css.scss
View file @
d4ad3623
.black
.highlighttable
{
.black
.highlighttable
{
background
:
#333
;
background
:
#333
;
td
.linenos
{
border
:none
;
}
pre
{
color
:
#eee
}
pre
{
color
:
#eee
}
.highlight
{
background
:
#333
;
border-left
:
1px
solid
#555
;
}
.highlight
{
background
:
#333
;
border-left
:
1px
solid
#555
;
}
...
...
app/assets/stylesheets/highlight.css.scss
View file @
d4ad3623
...
@@ -25,7 +25,13 @@ td.linenos{
...
@@ -25,7 +25,13 @@ td.linenos{
padding
:
10px
0px
0px
10px
;
padding
:
10px
0px
0px
10px
;
margin-left
:
0px
;
margin-left
:
0px
;
}
}
.linenodiv
pre
,
.highlight
pre
{
.highlight
pre
{
margin
:
0
;
padding
:
0
;
background
:none
;
border
:none
;
}
}
.linenodiv
pre
{
.linenodiv
pre
{
...
...
app/assets/stylesheets/tree.scss
View file @
d4ad3623
...
@@ -117,5 +117,6 @@ table.highlighttable .linenodiv pre {
...
@@ -117,5 +117,6 @@ table.highlighttable .linenodiv pre {
.tree-item
{
.tree-item
{
&
:hover
{
&
:hover
{
background
:
#FFFFCF
;
background
:
#FFFFCF
;
cursor
:pointer
;
}
}
}
}
app/views/commits/_commits.html.haml
View file @
d4ad3623
-
@commits
.
group_by
{
|
c
|
c
.
committed_date
.
to_date
}.
each
do
|
day
,
commits
|
-
@commits
.
group_by
{
|
c
|
c
.
committed_date
.
to_date
}.
each
do
|
day
,
commits
|
%div
{
:class
=>
"commits-date ui-box ui-box-small ui-box-big"
}
%div
{
:class
=>
"commits-date ui-box ui-box-small ui-box-big"
}
.day-commits-table
.day-commits-table
%h3
=
day
.
stamp
(
"28 Aug, 2010"
)
%div
.alert-message.info
%p
=
day
.
stamp
(
"28 Aug, 2010"
)
.data
.data
-
commits
.
each
do
|
commit
|
-
commits
.
each
do
|
commit
|
%a
{
:class
=>
"commit"
,
:href
=>
project_commit_path
(
@project
,
:id
=>
commit
.
id
)
}
%a
{
:class
=>
"commit"
,
:href
=>
project_commit_path
(
@project
,
:id
=>
commit
.
id
)
}
...
...
app/views/commits/index.html.haml
View file @
d4ad3623
-
content_for
(
:body_class
,
"project-page commits-page"
)
-
if
current_user
.
private_token
-
if
current_user
.
private_token
=
content_for
:rss_icon
do
=
content_for
:rss_icon
do
.rss-icon
.rss-icon
...
@@ -6,10 +5,13 @@
...
@@ -6,10 +5,13 @@
=
image_tag
"Rss-UI.PNG"
,
:width
=>
22
,
:title
=>
"feed"
=
image_tag
"Rss-UI.PNG"
,
:width
=>
22
,
:title
=>
"feed"
-
if
params
[
:path
]
-
if
params
[
:path
]
%h2
%ul
.breadcrumb
%li
=
link_to
project_commits_path
(
@project
)
do
=
link_to
project_commits_path
(
@project
)
do
=
@project
.
code
=
@project
.
code
%span
.divider
\/
\/
%li
%a
{
:href
=>
"#"
}=
params
[
:path
].
split
(
"/"
).
join
(
" / "
)
%a
{
:href
=>
"#"
}=
params
[
:path
].
split
(
"/"
).
join
(
" / "
)
%div
{
:id
=>
dom_id
(
@project
)}
%div
{
:id
=>
dom_id
(
@project
)}
...
...
app/views/commits/show.html.haml
View file @
d4ad3623
-
content_for
(
:body_class
,
"project-page commits-page"
)
.commit
.commit
%span
.commit-info
%span
.commit-info
=
link_to
tree_project_ref_path
(
@project
,
@commit
.
id
)
do
=
link_to
tree_project_ref_path
(
@project
,
@commit
.
id
)
do
...
...
app/views/profile/show.html.haml
View file @
d4ad3623
.ui-box.width-100p
%h3
=
@user
.
name
%h3
=
@user
.
name
=
form_for
@user
,
:url
=>
profile_update_path
,
:method
=>
:put
do
|
f
|
=
form_for
@user
,
:url
=>
profile_update_path
,
:method
=>
:put
do
|
f
|
.data
.left
-
if
@user
.
errors
.
any?
-
if
@user
.
errors
.
any?
#error_explanation
%div
.alert-message.block-message.error
%ul
%ul
-
@user
.
errors
.
full_messages
.
each
do
|
msg
|
-
@user
.
errors
.
full_messages
.
each
do
|
msg
|
%li
=
msg
%li
=
msg
.form-row
.clearfix
=
f
.
label
:name
=
f
.
label
:name
%br
.input
=
f
.
text_field
:name
=
f
.
text_field
:name
.clearfix
.form-row
=
f
.
label
:email
=
f
.
label
:email
%br
.input
=
f
.
text_field
:email
=
f
.
text_field
:email
.clearfix
.form-row
=
f
.
label
:skype
=
f
.
label
:skype
%br
.input
=
f
.
text_field
:skype
=
f
.
text_field
:skype
.clearfix
.form-row
=
f
.
label
:linkedin
=
f
.
label
:linkedin
%br
.input
=
f
.
text_field
:linkedin
=
f
.
text_field
:linkedin
.clearfix
.form-row
=
f
.
label
:twitter
=
f
.
label
:twitter
%br
.input
=
f
.
text_field
:twitter
=
f
.
text_field
:twitter
.right
=
f
.
submit
'Save'
,
:class
=>
"primary btn"
=
image_tag
gravatar_icon
(
current_user
.
email
,
64
),
:width
=>
64
,
:style
=>
"margin:5px; border:5px solid #eee;"
.clear
.buttons
=
f
.
submit
'Save'
,
:class
=>
"grey-button"
app/views/refs/_tree.html.haml
View file @
d4ad3623
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
=
render
:partial
=>
"refs/tree_file"
,
:locals
=>
{
:name
=>
tree
.
name
,
:content
=>
tree
.
data
,
:file
=>
tree
}
=
render
:partial
=>
"refs/tree_file"
,
:locals
=>
{
:name
=>
tree
.
name
,
:content
=>
tree
.
data
,
:file
=>
tree
}
-
else
-
else
-
contents
=
tree
.
contents
-
contents
=
tree
.
contents
%table
#tree-slider
.no-borders
%table
#tree-slider
%thead
%thead
%th
Name
%th
Name
%th
Last Update
%th
Last Update
...
...
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