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
Boxiang Sun
gitlab-ce
Commits
003b36b4
Commit
003b36b4
authored
May 04, 2016
by
Annabel Dunstone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed layout nav, revert back to badge styles, general enhancements
parent
21ccf896
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
16 deletions
+38
-16
app/assets/stylesheets/framework/nav.scss
app/assets/stylesheets/framework/nav.scss
+26
-10
app/assets/stylesheets/framework/sidebar.scss
app/assets/stylesheets/framework/sidebar.scss
+8
-0
app/views/groups/show.html.haml
app/views/groups/show.html.haml
+1
-1
app/views/layouts/_page.html.haml
app/views/layouts/_page.html.haml
+1
-1
app/views/layouts/nav/_group.html.haml
app/views/layouts/nav/_group.html.haml
+2
-4
No files found.
app/assets/stylesheets/framework/nav.scss
View file @
003b36b4
...
...
@@ -140,6 +140,12 @@
}
}
.project-filter-form
{
input
{
background-color
:
$background-color
;
}
}
@media
(
max-width
:
$screen-xs-max
)
{
padding-bottom
:
0
;
...
...
@@ -187,13 +193,17 @@
}
.layout-nav
{
position
:
fixed
;
top
:
58px
;
width
:
100%
;
z-index
:
1
;
background
:
$background-color
;
border-bottom
:
1px
solid
$border-color
;
transition-duration
:
.3s
;
.controls
{
float
:
right
;
position
:
relative
;
top
:
0
;
padding
:
12px
5px
0
0
;
.dropdown
{
margin-left
:
7px
;
...
...
@@ -218,15 +228,21 @@
}
}
}
}
.nav-links
{
.nav-links
{
border-bottom
:
none
;
white-space
:
nowrap
;
overflow-x
:
auto
;
overflow-y
:
hidden
;
a
{
padding-top
:
2px
;
li
{
.badge
{
color
:
$gl-icon-color
;
}
}
}
}
.page-with-layout-nav
{
margin-top
:
56px
;
}
app/assets/stylesheets/framework/sidebar.scss
View file @
003b36b4
...
...
@@ -254,6 +254,10 @@
}
}
}
.layout-nav
{
padding-right
:
$sidebar_collapsed_width
;
}
}
.page-sidebar-expanded
{
...
...
@@ -280,6 +284,10 @@
}
}
}
.layout-nav
{
padding-right
:
$sidebar_width
;
}
}
.right-sidebar-collapsed
{
...
...
app/views/groups/show.html.haml
View file @
003b36b4
...
...
@@ -5,7 +5,7 @@
=
auto_discovery_link_tag
(
:atom
,
group_url
(
@group
,
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"
#{
@group
.
name
}
activity"
)
.cover-block.groups-cover-block
.container-fluid
.container-fluid
.container-limited
=
link_to
group_icon
(
@group
),
target:
'_blank'
do
=
image_tag
group_icon
(
@group
),
class:
"avatar group-avatar s90"
.group-info
...
...
app/views/layouts/_page.html.haml
View file @
003b36b4
...
...
@@ -26,7 +26,7 @@
.layout-nav
.container-fluid
=
render
"layouts/nav/
#{
nav
}
"
.content-wrapper
.content-wrapper
{
class:
(
'page-with-layout-nav'
if
defined?
(
nav
)
&&
nav
)
}
=
render
"layouts/flash"
=
yield
:flash_message
%div
{
class:
(
container_class
unless
@no_container
)
}
...
...
app/views/layouts/nav/_group.html.haml
View file @
003b36b4
...
...
@@ -44,16 +44,14 @@
%span
Issues
-
issues
=
IssuesFinder
.
new
(
current_user
,
group_id:
@group
.
id
,
state:
'opened'
).
execute
%span
.count
(
#{
number_with_delimiter
(
issues
.
count
)
}
)
%span
.badge.count
=
number_with_delimiter
(
issues
.
count
)
=
nav_link
(
path:
'groups#merge_requests'
)
do
=
link_to
merge_requests_group_path
(
@group
),
title:
'Merge Requests'
do
=
icon
(
'tasks fw'
)
%span
Merge Requests
-
merge_requests
=
MergeRequestsFinder
.
new
(
current_user
,
group_id:
@group
.
id
,
state:
'opened'
).
execute
%span
.count
(
#{
number_with_delimiter
(
merge_requests
.
count
)
}
)
%span
.badge.count
=
number_with_delimiter
(
merge_requests
.
count
)
=
nav_link
(
controller:
[
:group_members
])
do
=
link_to
group_group_members_path
(
@group
),
title:
'Members'
do
=
icon
(
'users fw'
)
...
...
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