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
Léo-Paul Géneau
gitlab-ce
Commits
84d1dead
Commit
84d1dead
authored
Jan 12, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new layout style
parent
6cf000ff
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
62 additions
and
83 deletions
+62
-83
app/assets/images/Home-UI.PNG
app/assets/images/Home-UI.PNG
+0
-0
app/assets/stylesheets/projects.css.scss
app/assets/stylesheets/projects.css.scss
+1
-0
app/assets/stylesheets/style.scss
app/assets/stylesheets/style.scss
+16
-19
app/views/layouts/_head_panel.html.erb
app/views/layouts/_head_panel.html.erb
+0
-56
app/views/layouts/_head_panel.html.haml
app/views/layouts/_head_panel.html.haml
+36
-0
app/views/layouts/project.html.haml
app/views/layouts/project.html.haml
+9
-8
No files found.
app/assets/images/Home-UI.PNG
0 → 100644
View file @
84d1dead
891 Bytes
app/assets/stylesheets/projects.css.scss
View file @
84d1dead
...
@@ -525,6 +525,7 @@ h4.dash-tabs {
...
@@ -525,6 +525,7 @@ h4.dash-tabs {
}
}
}
}
body
header
,
h4
.middle-panel
{
h4
.middle-panel
{
margin
:
0
;
margin
:
0
;
border-bottom
:
1px
solid
#ccc
;
border-bottom
:
1px
solid
#ccc
;
...
...
app/assets/stylesheets/style.scss
View file @
84d1dead
...
@@ -333,8 +333,12 @@ body.login-page{background-color: #f1f1f1; padding-top: 10%}
...
@@ -333,8 +333,12 @@ body.login-page{background-color: #f1f1f1; padding-top: 10%}
body
.collapsed
#container
{
margin
:
auto
;
width
:
980px
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,.
22
);
border-top
:
0
;
box-shadow
:
0
0
0px
4px
rgba
(
0
,
0
,
0
,.
04
)}
body
.collapsed
#container
{
margin
:
auto
;
width
:
980px
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,.
22
);
border-top
:
0
;
box-shadow
:
0
0
0px
4px
rgba
(
0
,
0
,
0
,.
04
)}
/* Header */
/* Header */
header
{
background
:
#474D57
url('bg-header.png')
repeat-x
bottom
;
z-index
:
10000
;
height
:
44px
;
padding
:
10px
2%
6px
2%
;
position
:
relative
}
header
{
header
a
{
color
:
white
;
text-shadow
:
0
-1px
0
black
}
background
:
#474D57
url('bg-header.png')
repeat-x
bottom
;
z-index
:
10000
;
height
:
44px
;
padding
:
10px
2%
6px
2%
;
}
header
a
:hover
{
color
:
#f1f1f1
}
header
a
:hover
{
color
:
#f1f1f1
}
header
h1
{
header
h1
{
width
:
65px
;
width
:
65px
;
...
@@ -417,7 +421,7 @@ header .login-top a.pic{float: left; margin-right: 10px;
...
@@ -417,7 +421,7 @@ header .login-top a.pic{float: left; margin-right: 10px;
}
}
header
.login-top
a
.username
{
margin-bottom
:
5px
}
header
.login-top
a
.username
{
margin-bottom
:
5px
}
header
.login-top
a
.logout
{
color
:
#ccc
}
header
.login-top
a
.logout
{
color
:
#ccc
}
header
{
margin-bottom
:
0
;
clear
:
both
;
}
header
{
margin-bottom
:
0
;
clear
:
both
;
position
:relative
;
}
.page-title
{
background-color
:
#f1f1f1
;
display
:
block
;
float
:
left
;
clear
:
both
;
width
:
98%
;
padding
:
1%
1%
;
border-bottom
:
1px
solid
#ccc
;
box-shadow
:
0
-1px
0
white
inset
;
margin-bottom
:
1
.5em
}
.page-title
{
background-color
:
#f1f1f1
;
display
:
block
;
float
:
left
;
clear
:
both
;
width
:
98%
;
padding
:
1%
1%
;
border-bottom
:
1px
solid
#ccc
;
box-shadow
:
0
-1px
0
white
inset
;
margin-bottom
:
1
.5em
}
.page-title
h1
{
font-size
:
20px
;
width
:
400px
;
margin
:
0
;
padding-top
:
8px
}
.page-title
h1
{
font-size
:
20px
;
width
:
400px
;
margin
:
0
;
padding-top
:
8px
}
...
@@ -426,7 +430,7 @@ header{margin-bottom: 0; clear: both; }
...
@@ -426,7 +430,7 @@ header{margin-bottom: 0; clear: both; }
/* Account box */
/* Account box */
header
.account-box
{
position
:
absolute
;
right
:
0
;
top
:
8px
;
z-index
:
10000
;
width
:
128px
;
font-size
:
11px
;
float
:
right
;
display
:
block
;
cursor
:
pointer
;}
header
.account-box
{
position
:
absolute
;
right
:
0
;
top
:
8px
;
z-index
:
10000
;
width
:
128px
;
font-size
:
11px
;
float
:
right
;
display
:
block
;
cursor
:
pointer
;}
header
.account-box
img
{
border-radius
:
4px
;
right
:
20px
;
position
:
absolute
;
width
:
38px
;
height
:
38px
;
display
:
block
;
box-shadow
:
0
1px
2px
black
}
header
.account-box
img
{
border-radius
:
4px
;
right
:
20px
;
position
:
absolute
;
width
:
38px
;
height
:
38px
;
display
:
block
;
box-shadow
:
0
1px
2px
black
;
top
:
-3px
;
}
header
.account-box
img
:after
{
header
.account-box
img
:after
{
content
:
" "
;
content
:
" "
;
display
:
block
;
display
:
block
;
...
@@ -550,7 +554,7 @@ header .account-links a:last-child{
...
@@ -550,7 +554,7 @@ header .account-links a:last-child{
/* eo Account Box */
/* eo Account Box */
input
.search-input
{
float
:
left
;
text-shadow
:
none
;
width
:
116px
;
background-image
:
url('icon-search.png')
;
background-repeat
:
no-repeat
;
background-position
:
10px
;
border-radius
:
100px
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,.
7
);
box-shadow
:
0
1px
0
rgba
(
255
,
255
,
255
,.
2
)
,
0
2px
2px
rgba
(
0
,
0
,
0
,.
4
)
inset
;
background-color
:
#D2D5DA
;
background-color
:
rgba
(
255
,
255
,
255
,.
5
);
padding
:
5px
;
padding-left
:
26px
;
margin-top
:
4px
;
margin-right
:
10px
}
input
.search-input
{
float
:
left
;
text-shadow
:
none
;
width
:
116px
;
background-image
:
url('icon-search.png')
;
background-repeat
:
no-repeat
;
background-position
:
10px
;
border-radius
:
100px
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,.
7
);
box-shadow
:
0
1px
0
rgba
(
255
,
255
,
255
,.
2
)
,
0
2px
2px
rgba
(
0
,
0
,
0
,.
4
)
inset
;
background-color
:
#D2D5DA
;
background-color
:
rgba
(
255
,
255
,
255
,.
5
);
padding
:
5px
;
padding-left
:
26px
;
margin-top
:
4px
;
margin-right
:
10px
}
input
.search-input
:focus
{
background-color
:
white
;
width
:
216px
;}
/*input.search-input:focus{ background-color: white; width: 216px;}*/
input
.
search-input
:
:-
webkit-input-placeholder
{
color
:
#666
}
input
.
search-input
:
:-
webkit-input-placeholder
{
color
:
#666
}
/* eo Header */
/* eo Header */
...
@@ -607,7 +611,7 @@ body.project-page h2.icon .project-name i.arrow{float: right;
...
@@ -607,7 +611,7 @@ body.project-page h2.icon .project-name i.arrow{float: right;
body
.project-page
h2
.icon
span
{
background-position
:
-78px
-68px
;
}
body
.project-page
h2
.icon
span
{
background-position
:
-78px
-68px
;
}
body
.project-page
.project-container
{
position
:
relative
;
float
:
left
;
width
:
100%
;
height
:
100%
;
padding-bottom
:
10px
;}
body
.project-page
.project-container
{
position
:
relative
;
float
:
left
;
width
:
100%
;
height
:
100%
;
padding-bottom
:
10px
;}
body
.project-page
.page-title
{
margin-bottom
:
0
}
body
.project-page
.page-title
{
margin-bottom
:
0
}
body
.project-page
.project-sidebar
{
width
:
1
8
0px
;
left
:
0
;
top
:
0
;
height
:
100%
;
bottom
:
0
;
position
:
absolute
;
background-color
:
#f7f7f7
;
float
:
left
;
display
:
inline-block
;
background
:
#f7f7f7
;
padding
:
20px
0
20px
2%
;
margin
:
0
;
}
body
.project-page
.project-sidebar
{
width
:
1
1
0px
;
left
:
0
;
top
:
0
;
height
:
100%
;
bottom
:
0
;
position
:
absolute
;
background-color
:
#f7f7f7
;
float
:
left
;
display
:
inline-block
;
background
:
#f7f7f7
;
padding
:
20px
0
20px
2%
;
margin
:
0
;
}
body
.projects-page
input
.text.git-url
{
font-size
:
12px
;
border-radius
:
5px
;
color
:
#666
;
box-shadow
:
0
1px
2px
rgba
(
0
,
0
,
0
,.
2
)
inset
;
padding
:
8px
0
8px
30px
;
margin-bottom
:
20px
;
background
:
white
url('images.png')
no-repeat
8px
-40px
;
width
:
136px
}
body
.projects-page
input
.text.git-url
{
font-size
:
12px
;
border-radius
:
5px
;
color
:
#666
;
box-shadow
:
0
1px
2px
rgba
(
0
,
0
,
0
,.
2
)
inset
;
padding
:
8px
0
8px
30px
;
margin-bottom
:
20px
;
background
:
white
url('images.png')
no-repeat
8px
-40px
;
width
:
136px
}
body
.projects-page
input
.text.git-url
{
margin
:
10px
0
0
}
body
.projects-page
input
.text.git-url
{
margin
:
10px
0
0
}
...
@@ -615,22 +619,15 @@ body.projects-page input.text.git-url {margin:10px 0 0 }
...
@@ -615,22 +619,15 @@ body.projects-page input.text.git-url {margin:10px 0 0 }
.projects_selector
:hover
>
.project-box
{
-moz-box-shadow
:
0px
0px
10px
rgba
(
0
,
0
,
0
,
.1
);
-webkit-box-shadow
:
0px
0px
10px
rgba
(
0
,
0
,
0
,
.1
);
box-shadow
:
0px
0px
10px
rgba
(
0
,
0
,
0
,
.1
);
}
.projects_selector
:hover
>
.project-box
{
-moz-box-shadow
:
0px
0px
10px
rgba
(
0
,
0
,
0
,
.1
);
-webkit-box-shadow
:
0px
0px
10px
rgba
(
0
,
0
,
0
,
.1
);
box-shadow
:
0px
0px
10px
rgba
(
0
,
0
,
0
,
.1
);
}
body
.project-page
.project-sidebar
aside
{
width
:
179px
}
body
.project-page
.project-sidebar
aside
{
width
:
109px
}
body
.project-page
.project-sidebar
aside
a
{
display
:
block
;
position
:
relative
;
background
:
white
;
padding
:
15px
10px
;
border-bottom
:
1px
solid
#eee
}
body
.project-page
.project-sidebar
aside
a
{
body
.project-page
.project-sidebar
aside
a
:first-child
{
display
:
block
;
position
:
relative
;
background
:
white
;
padding
:
15px
10px
;
border-bottom
:
1px
solid
#eee
;
margin
:
10px
20px
0
0
;
-webkit-border-top-left-radius
:
5px
;
border-radius
:
5px
;
-moz-border-radius-topleft
:
5px
;
border-top-left-radius
:
5px
;
}
.project-page
.project-sidebar
aside
a
:last-child
{
-webkit-border-bottom-left-radius
:
5px
;
-moz-border-radius-bottomleft
:
5px
;
border-bottom-left-radius
:
5px
;
}
}
body
.project-page
.project-sidebar
aside
a
:hover
{
background-color
:
#eee
;}
body
.project-page
.project-sidebar
aside
a
:hover
{
background-color
:
#eee
;}
body
.project-page
.project-sidebar
aside
a
span
.number
{
float
:
right
;
border-radius
:
5px
;
text-shadow
:
none
;
background
:
rgba
(
0
,
0
,
0
,.
12
);
text-align
:
center
;
padding
:
5px
8px
;
position
:
absolute
;
top
:
10px
;
right
:
10px
}
body
.project-page
.project-sidebar
aside
a
span
.number
{
float
:
right
;
border-radius
:
5px
;
text-shadow
:
none
;
background
:
rgba
(
0
,
0
,
0
,.
12
);
text-align
:
center
;
padding
:
5px
8px
;
position
:
absolute
;
top
:
10px
;
right
:
10px
}
body
.project-page
.project-sidebar
aside
a
.current
{
b
ackground-color
:
#79c3e0
;
color
:
white
;
text-shadow
:
none
;
border-color
:
transparent
}
body
.project-page
.project-sidebar
aside
a
.current
{
b
order
:
2px
solid
#79c3e0
;
}
body
.project-page
.project-content
{
padding
:
20px
;
display
:
block
;
margin-left
:
20
5px
;
min-height
:
600px
}
body
.project-page
.project-content
{
padding
:
20px
;
display
:
block
;
margin-left
:
12
5px
;
min-height
:
600px
}
body
.project-page
.project-content
h2
{
margin-top
:
6px
}
body
.project-page
.project-content
h2
{
margin-top
:
6px
}
body
.project-page
.project-content
.button.right
{
margin-left
:
20px
}
body
.project-page
.project-content
.button.right
{
margin-left
:
20px
}
body
.project-page
table
.commit
a
{
color
:
#{
$blue_link
}
}
body
.project-page
table
.commit
a
{
color
:
#{
$blue_link
}
}
...
...
app/views/layouts/_head_panel.html.erb
deleted
100644 → 0
View file @
6cf000ff
<!-- Page Header -->
<header>
<h1
class=
"logo"
>
<%=
link_to
"GITLAB"
,
root_url
%>
</h1>
<div
class=
"account-box"
>
<%=
link_to
profile_path
,
:class
=>
"pic"
do
%>
<%=
image_tag
gravatar_icon
(
current_user
.
email
)
%>
<%
end
%>
<div
class=
"account-links"
>
<%=
link_to
profile_path
,
:class
=>
"username"
do
%>
<%#= current_user.name %>
My profile
<%
end
%>
<%=
link_to
'Logout'
,
destroy_user_session_path
,
:class
=>
"logout"
,
:method
=>
:delete
%>
</div>
</div>
<!-- .account-box -->
<div
class=
"search"
>
<%=
text_field_tag
"search"
,
nil
,
:placeholder
=>
"Search"
,
:class
=>
"search-input"
%>
</div>
<!-- .login-top -->
<nav
class=
"
<%=
'shorter_nav'
unless
current_user
.
is_admin?
%>
"
>
<%=
link_to
dashboard_path
,
:class
=>
"
#{
'current'
if
current_page?
(
root_path
)
}
dashboard"
do
%>
<span></span>
Dashboard
<%
end
%>
<%=
link_to
projects_path
,
:class
=>
"
#{
'current'
if
current_page?
(
projects_path
)
}
project
#{
'last_elem'
unless
current_user
.
is_admin?
}
"
do
%>
<span></span>
Projects
<%
end
%>
<%
if
current_user
.
is_admin?
%>
<%=
link_to
((
current_user
.
is_admin?
?
admin_root_path
:
"#"
),
:class
=>
"
#{
'current'
if
admin_namespace?
}
admin last_elem"
)
do
%>
<span></span>
Admin
<%
end
%>
<%
end
%>
</nav>
</header>
<!-- eo Page Header -->
<%
if
current_user
%>
<%=
javascript_tag
do
%>
$(function() {
$("#search" ).autocomplete({
source:
<%=
raw
search_autocomplete_source
%>
,
select: function(event, ui) { location.href = ui.item.url }
});
});
<%
end
%>
<%
end
%>
<%
if
current_user
.
require_ssh_key?
%>
<div
id=
"no_ssh_key_defined"
class=
"big-message error"
>
<p>
No SSH Key is defined. You won't be able to use any Git command!. Click
<%=
link_to
(
'here'
,
keys_path
)
%>
to add one!
</div>
<%
end
%>
app/views/layouts/_head_panel.html.haml
0 → 100644
View file @
84d1dead
/ Page Header
%header
-
if
@project
&&
!
@project
.
new_record?
.project_name
=
truncate
@project
.
name
,
:length
=>
20
.git_url_wrapper
%input
.git-url.text
{
:id
=>
""
,
:name
=>
""
,
:readonly
=>
""
,
:type
=>
"text"
,
:value
=>
@project
.
url_to_repo
,
:class
=>
"one_click_select"
}
=
yield
:rss_icon
-
if
@project
.
repo_exists?
.left
{
:style
=>
"margin-left:5px;"
}
=
render
:partial
=>
"projects/refs"
,
:locals
=>
{
:destination
=>
controller
.
controller_name
==
"commits"
?
"commits"
:
"tree"
}
.account-box
=
link_to
profile_path
,
:class
=>
"pic"
do
=
image_tag
gravatar_icon
(
current_user
.
email
)
.account-links
=
link_to
profile_path
,
:class
=>
"username"
do
My profile
=
link_to
'Logout'
,
destroy_user_session_path
,
:class
=>
"logout"
,
:method
=>
:delete
/ .account-box
-#.search
= text_field_tag "search", nil, :placeholder => "Search", :class => "search-input"
/ .login-top
-
if
current_user
=
javascript_tag
do
$(function(){
$("#search").autocomplete({
source:
#{
raw
search_autocomplete_source
}
,
select: function(event, ui) { location.href = ui.item.url }
});
});
-
if
current_user
.
require_ssh_key?
#no_ssh_key_defined
.big-message.error
%p
No SSH Key is defined. You won't be able to use any Git command!. Click
#{
link_to
(
'here'
,
keys_path
)
}
to add one!
app/views/layouts/project.html.haml
View file @
84d1dead
...
@@ -18,31 +18,32 @@
...
@@ -18,31 +18,32 @@
=
render
:partial
=>
"layouts/flash"
=
render
:partial
=>
"layouts/flash"
#container
#container
=
render
:partial
=>
"layouts/head_panel"
=
render
:partial
=>
"layouts/head_panel"
=
render
:partial
=>
"layouts/middle_panel"
if
@project
&&
!
@project
.
new_record?
-#
= render :partial => "layouts/middle_panel" if @project && !@project.new_record?
.project-container
.project-container
.project-sidebar
.project-sidebar
.fixed
.fixed
%aside
%aside
=
link_to
"Project"
,
project_path
(
@project
),
:class
=>
project_tab_class
=
link_to
project_path
(
@project
),
:class
=>
project_tab_class
do
=
image_tag
"Home-UI.PNG"
,
:width
=>
26
%span
{
:class
=>
"number"
}
Pr
=
link_to
"Repository"
,
project_repository_path
(
@project
),
:class
=>
repository_tab_class
=
link_to
"Repository"
,
project_repository_path
(
@project
),
:class
=>
repository_tab_class
=
link_to
"Tree"
,
tree_project_ref_path
(
@project
,
@project
.
root_ref
),
:class
=>
tree_tab_class
=
link_to
"Tree"
,
tree_project_ref_path
(
@project
,
@project
.
root_ref
),
:class
=>
tree_tab_class
=
link_to
"Commits"
,
project_commits_path
(
@project
),
:class
=>
current_page?
(
:controller
=>
"commits"
,
:action
=>
"index"
,
:project_id
=>
@project
)
?
"current"
:
nil
=
link_to
"Commits"
,
project_commits_path
(
@project
),
:class
=>
current_page?
(
:controller
=>
"commits"
,
:action
=>
"index"
,
:project_id
=>
@project
)
?
"current"
:
nil
=
link_to
"Network
graph
"
,
graph_project_path
(
@project
),
:class
=>
current_page?
(
:controller
=>
"projects"
,
:action
=>
"graph"
,
:id
=>
@project
)
?
"current"
:
nil
=
link_to
"Network"
,
graph_project_path
(
@project
),
:class
=>
current_page?
(
:controller
=>
"projects"
,
:action
=>
"graph"
,
:id
=>
@project
)
?
"current"
:
nil
=
link_to
project_issues_filter_path
(
@project
),
:class
=>
(
controller
.
controller_name
==
"issues"
)
?
"current"
:
nil
do
=
link_to
project_issues_filter_path
(
@project
),
:class
=>
(
controller
.
controller_name
==
"issues"
)
?
"current"
:
nil
do
Issues
Issues
-
if
@project
.
issues
.
open_for
(
current_user
).
count
>
0
-
#-
if @project.issues.open_for(current_user).count > 0
%span{ :class => "number" }= @project.issues.open_for(current_user).count
%span{ :class => "number" }= @project.issues.open_for(current_user).count
=
link_to
wall_project_path
(
@project
),
:class
=>
current_page?
(
:controller
=>
"projects"
,
:action
=>
"wall"
,
:id
=>
@project
)
?
"current"
:
nil
do
=
link_to
wall_project_path
(
@project
),
:class
=>
current_page?
(
:controller
=>
"projects"
,
:action
=>
"wall"
,
:id
=>
@project
)
?
"current"
:
nil
do
Wall
Wall
-
if
@project
.
common_notes
.
today
.
count
>
0
-
if
@project
.
common_notes
.
today
.
count
>
0
%span
{
:class
=>
"number"
}=
@project
.
common_notes
.
today
.
count
%span
{
:class
=>
"number"
}=
@project
.
common_notes
.
today
.
count
=
link_to
project_merge_requests_path
(
@project
),
:class
=>
(
controller
.
controller_name
==
"merge_requests"
)
?
"current"
:
nil
do
=
link_to
project_merge_requests_path
(
@project
),
:class
=>
(
controller
.
controller_name
==
"merge_requests"
)
?
"current"
:
nil
do
Merge
Requests
Merge
-
if
@project
.
merge_requests
.
opened
.
count
>
0
-
#-
if @project.merge_requests.opened.count > 0
%span{ :class => "number" }= @project.merge_requests.opened.count
%span{ :class => "number" }= @project.merge_requests.opened.count
.medium-tags
{
:style
=>
'padding: 10px 0 0 10px; width: 210px;'
}=
tag_list
@project
.project-content
.project-content
=
yield
=
yield
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