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
Jérome Perrin
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 {
.container-fluid
.sidebar
{
width
:
250px
;
border-left
:
1px
solid
$lite_border_color
;
height
:
100%
;
min-height
:
450px
;
float
:right
;
...
...
@@ -88,15 +87,19 @@ a {
nav
.main_menu
{
border-radius
:
4px
;
box-shadow
:
0
1px
2px
black
;
width
:
100%
;
margin
:
auto
;
margin-top
:
20px
;
margin-bottom
:
20px
;
background-image
:
-webkit-gradient
(
linear
,
0
0
,
0
30
,
color-stop
(
0
.066
,
#595d63
)
,
to
(
#31363e
));
background-image
:
-webkit-linear-gradient
(
#595d63
6
.6%
,
#31363e
);
background-image
:
-moz-linear-gradient
(
#595d63
6
.6%
,
#31363e
);
background-image
:
-o-linear-gradient
(
#595d63
6
.6%
,
#31363e
);
margin-top
:
30px
;
margin-bottom
:
30px
;
background
:
#f1f1f1
;
border
:
1px
solid
#ccc
;
height
:
38px
;
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
{
background
:
$hover
;
...
...
@@ -117,17 +120,15 @@ nav.main_menu {
}
padding
:
10px
25px
;
display
:
inline-block
;
color
:
#D6DADF
;
border-right
:
1px
solid
#
31363E
;
color
:
$style_color
;
border-right
:
1px
solid
#
ccc
;
position
:
relative
;
box-shadow
:
1px
0
0
rgba
(
255
,
255
,
255
,
0
.1
);
margin
:
0
;
text-shadow
:
0
-1px
0
black
;
float
:left
;
text-shadow
:
0
1px
1px
white
;
&
.current
{
background-image
:
-webkit-gradient
(
linear
,
0
0
,
0
30
,
color-stop
(
0
.066
,
#595d63
)
,
to
(
#2c2f35
));
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
);
background
:
#DDD
;
}
}
}
...
...
@@ -228,11 +229,6 @@ img.lil_av {
}
}
.well
{
a
h3
{
color
:
$link_color
;
}
}
.widget
{
padding
:
20px
;
margin-bottom
:
20px
;
...
...
app/views/layouts/_app_menu.html.haml
View file @
ec01fa29
%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
=>
"
#{
"active"
if
current_page?
(
projects_path
)
}
"
=
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
=>
"
#{
"active"
if
current_page?
(
dashboard_merge_requests_path
)
}
"
,
:id
=>
"merge_requests_slide"
=
link_to
"Help"
,
help_path
,
:class
=>
"
#{
"active"
if
controller
.
controller_name
==
"help"
}
"
=
link_to
"Projects"
,
projects_path
,
:class
=>
"
#{
"current"
if
current_page?
(
projects_path
)
||
current_page?
(
root_path
)
}
"
=
link_to
"Issues"
,
dashboard_issues_path
,
:class
=>
"
#{
"current"
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
"Help"
,
help_path
,
:class
=>
"
#{
"current"
if
controller
.
controller_name
==
"help"
}
"
app/views/layouts/_projects_side.html.haml
View file @
ec01fa29
%aside
.projects
-
if
current_user
.
can_create_project?
.
alert-message.block-message
.
widget
You can create at least
=
current_user
.
projects_limit
projects. Click on button to add a new one
.alert-actions
=
link_to
new_project_path
,
:class
=>
"btn small"
do
New Project »
%hr
=
link_to
new_project_path
,
:class
=>
"btn small"
do
New Project »
-
if
current_user
.
is_admin?
.
alert-message.block-message
.
widget
You have administrator privilegies. You can configure application following this button:
.alert-actions
=
link_to
admin_root_path
,
:class
=>
"btn small"
,
:title
=>
"Admin"
do
Visit Admin Area »
%hr
=
link_to
admin_root_path
,
:class
=>
"btn small"
,
:title
=>
"Admin"
do
Visit Admin Area »
-
if
current_user
.
projects
.
count
>
0
%div
.entry
%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
=
render
"widgets/recent_projects"
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