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
ec01fa29
Commit
ec01fa29
authored
Feb 12, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
styled top panel
parent
c844723a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
43 deletions
+29
-43
app/assets/stylesheets/common.scss
app/assets/stylesheets/common.scss
+16
-20
app/views/layouts/_app_menu.html.haml
app/views/layouts/_app_menu.html.haml
+4
-5
app/views/layouts/_projects_side.html.haml
app/views/layouts/_projects_side.html.haml
+9
-18
No files found.
app/assets/stylesheets/common.scss
View file @
ec01fa29
...
@@ -80,7 +80,6 @@ a {
...
@@ -80,7 +80,6 @@ a {
.container-fluid
.sidebar
{
.container-fluid
.sidebar
{
width
:
250px
;
width
:
250px
;
border-left
:
1px
solid
$lite_border_color
;
height
:
100%
;
height
:
100%
;
min-height
:
450px
;
min-height
:
450px
;
float
:right
;
float
:right
;
...
@@ -88,15 +87,19 @@ a {
...
@@ -88,15 +87,19 @@ a {
nav
.main_menu
{
nav
.main_menu
{
border-radius
:
4px
;
border-radius
:
4px
;
box-shadow
:
0
1px
2px
black
;
width
:
100%
;
width
:
100%
;
margin
:
auto
;
margin
:
auto
;
margin-top
:
20px
;
margin-top
:
30px
;
margin-bottom
:
20px
;
margin-bottom
:
30px
;
background-image
:
-webkit-gradient
(
linear
,
0
0
,
0
30
,
color-stop
(
0
.066
,
#595d63
)
,
to
(
#31363e
));
background
:
#f1f1f1
;
background-image
:
-webkit-linear-gradient
(
#595d63
6
.6%
,
#31363e
);
border
:
1px
solid
#ccc
;
background-image
:
-moz-linear-gradient
(
#595d63
6
.6%
,
#31363e
);
height
:
38px
;
background-image
:
-o-linear-gradient
(
#595d63
6
.6%
,
#31363e
);
background-image
:
-webkit-gradient
(
linear
,
0
0
,
0
30
,
color-stop
(
0
.066
,
#f1f1f1
)
,
to
(
#dfdfdf
));
background-image
:
-webkit-linear-gradient
(
#f1f1f1
6
.6%
,
#dfdfdf
);
background-image
:
-moz-linear-gradient
(
#f1f1f1
6
.6%
,
#202227
);
background-image
:
-o-linear-gradient
(
#f1f1f1
6
.6%
,
#202227
);
.label
{
.label
{
background
:
$hover
;
background
:
$hover
;
...
@@ -117,17 +120,15 @@ nav.main_menu {
...
@@ -117,17 +120,15 @@ nav.main_menu {
}
}
padding
:
10px
25px
;
padding
:
10px
25px
;
display
:
inline-block
;
display
:
inline-block
;
color
:
#D6DADF
;
color
:
$style_color
;
border-right
:
1px
solid
#
31363E
;
border-right
:
1px
solid
#
ccc
;
position
:
relative
;
position
:
relative
;
box-shadow
:
1px
0
0
rgba
(
255
,
255
,
255
,
0
.1
);
box-shadow
:
1px
0
0
rgba
(
255
,
255
,
255
,
0
.1
);
margin
:
0
;
margin
:
0
;
text-shadow
:
0
-1px
0
black
;
float
:left
;
text-shadow
:
0
1px
1px
white
;
&
.current
{
&
.current
{
background-image
:
-webkit-gradient
(
linear
,
0
0
,
0
30
,
color-stop
(
0
.066
,
#595d63
)
,
to
(
#2c2f35
));
background
:
#DDD
;
background-image
:
-webkit-linear-gradient
(
#595d63
6
.6%
,
#2c2f35
);
background-image
:
-moz-linear-gradient
(
#595d63
6
.6%
,
#202227
);
background-image
:
-o-linear-gradient
(
#595d63
6
.6%
,
#202227
);
}
}
}
}
}
}
...
@@ -228,11 +229,6 @@ img.lil_av {
...
@@ -228,11 +229,6 @@ img.lil_av {
}
}
}
}
.well
{
a
h3
{
color
:
$link_color
;
}
}
.widget
{
.widget
{
padding
:
20px
;
padding
:
20px
;
margin-bottom
:
20px
;
margin-bottom
:
20px
;
...
...
app/views/layouts/_app_menu.html.haml
View file @
ec01fa29
%nav
.main_menu
%nav
.main_menu
-#= link_to "Activities", dashboard_path, :class => "#{"active" if current_page?(dashboard_path) || current_page?(root_path) }"
=
link_to
"Projects"
,
projects_path
,
:class
=>
"
#{
"current"
if
current_page?
(
projects_path
)
||
current_page?
(
root_path
)
}
"
=
link_to
"Projects"
,
projects_path
,
:class
=>
"
#{
"active"
if
current_page?
(
projects_path
)
}
"
=
link_to
"Issues"
,
dashboard_issues_path
,
:class
=>
"
#{
"current"
if
current_page?
(
dashboard_issues_path
)
}
"
,
:id
=>
"issues_slide"
=
link_to
"Issues"
,
dashboard_issues_path
,
:class
=>
"
#{
"active"
if
current_page?
(
dashboard_issues_path
)
}
"
,
:id
=>
"issues_slide"
=
link_to
"Requests"
,
dashboard_merge_requests_path
,
:class
=>
"
#{
"current"
if
current_page?
(
dashboard_merge_requests_path
)
}
"
,
:id
=>
"merge_requests_slide"
=
link_to
"Requests"
,
dashboard_merge_requests_path
,
:class
=>
"
#{
"active"
if
current_page?
(
dashboard_merge_requests_path
)
}
"
,
:id
=>
"merge_requests_slide"
=
link_to
"Help"
,
help_path
,
:class
=>
"
#{
"current"
if
controller
.
controller_name
==
"help"
}
"
=
link_to
"Help"
,
help_path
,
:class
=>
"
#{
"active"
if
controller
.
controller_name
==
"help"
}
"
app/views/layouts/_projects_side.html.haml
View file @
ec01fa29
%aside
.projects
%aside
.projects
-
if
current_user
.
can_create_project?
-
if
current_user
.
can_create_project?
.
alert-message.block-message
.
widget
You can create at least
You can create at least
=
current_user
.
projects_limit
=
current_user
.
projects_limit
projects. Click on button to add a new one
projects. Click on button to add a new one
.alert-actions
%hr
=
link_to
new_project_path
,
:class
=>
"btn small"
do
=
link_to
new_project_path
,
:class
=>
"btn small"
do
New Project »
New Project »
-
if
current_user
.
is_admin?
-
if
current_user
.
is_admin?
.
alert-message.block-message
.
widget
You have administrator privilegies. You can configure application following this button:
You have administrator privilegies. You can configure application following this button:
.alert-actions
%hr
=
link_to
admin_root_path
,
:class
=>
"btn small"
,
:title
=>
"Admin"
do
=
link_to
admin_root_path
,
:class
=>
"btn small"
,
:title
=>
"Admin"
do
Visit Admin Area »
Visit Admin Area »
-
if
current_user
.
projects
.
count
>
0
-
if
current_user
.
projects
.
count
>
0
%div
.entry
=
render
"widgets/recent_projects"
%h5
Recent Projects:
%ul
-
current_user
.
projects
.
order
(
"id DESC"
).
limit
(
5
).
each
do
|
project
|
%li
=
link_to
project_path
(
project
)
do
=
project
.
name
=
link_to
"More » "
,
projects_path
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