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
1
Merge Requests
1
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
nexedi
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 @@
...
@@ -140,6 +140,12 @@
}
}
}
}
.project-filter-form
{
input
{
background-color
:
$background-color
;
}
}
@media
(
max-width
:
$screen-xs-max
)
{
@media
(
max-width
:
$screen-xs-max
)
{
padding-bottom
:
0
;
padding-bottom
:
0
;
...
@@ -187,13 +193,17 @@
...
@@ -187,13 +193,17 @@
}
}
.layout-nav
{
.layout-nav
{
position
:
fixed
;
top
:
58px
;
width
:
100%
;
z-index
:
1
;
background
:
$background-color
;
background
:
$background-color
;
border-bottom
:
1px
solid
$border-color
;
border-bottom
:
1px
solid
$border-color
;
transition-duration
:
.3s
;
.controls
{
.controls
{
float
:
right
;
float
:
right
;
position
:
relative
;
padding
:
12px
5px
0
0
;
top
:
0
;
.dropdown
{
.dropdown
{
margin-left
:
7px
;
margin-left
:
7px
;
...
@@ -218,15 +228,21 @@
...
@@ -218,15 +228,21 @@
}
}
}
}
}
}
}
.nav-links
{
.nav-links
{
border-bottom
:
none
;
border-bottom
:
none
;
white-space
:
nowrap
;
overflow-x
:
auto
;
overflow-y
:
hidden
;
a
{
li
{
padding-top
:
2px
;
.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 @@
...
@@ -254,6 +254,10 @@
}
}
}
}
}
}
.layout-nav
{
padding-right
:
$sidebar_collapsed_width
;
}
}
}
.page-sidebar-expanded
{
.page-sidebar-expanded
{
...
@@ -280,6 +284,10 @@
...
@@ -280,6 +284,10 @@
}
}
}
}
}
}
.layout-nav
{
padding-right
:
$sidebar_width
;
}
}
}
.right-sidebar-collapsed
{
.right-sidebar-collapsed
{
...
...
app/views/groups/show.html.haml
View file @
003b36b4
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
=
auto_discovery_link_tag
(
:atom
,
group_url
(
@group
,
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"
#{
@group
.
name
}
activity"
)
=
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
.cover-block.groups-cover-block
.container-fluid
.container-fluid
.container-limited
=
link_to
group_icon
(
@group
),
target:
'_blank'
do
=
link_to
group_icon
(
@group
),
target:
'_blank'
do
=
image_tag
group_icon
(
@group
),
class:
"avatar group-avatar s90"
=
image_tag
group_icon
(
@group
),
class:
"avatar group-avatar s90"
.group-info
.group-info
...
...
app/views/layouts/_page.html.haml
View file @
003b36b4
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
.layout-nav
.layout-nav
.container-fluid
.container-fluid
=
render
"layouts/nav/
#{
nav
}
"
=
render
"layouts/nav/
#{
nav
}
"
.content-wrapper
.content-wrapper
{
class:
(
'page-with-layout-nav'
if
defined?
(
nav
)
&&
nav
)
}
=
render
"layouts/flash"
=
render
"layouts/flash"
=
yield
:flash_message
=
yield
:flash_message
%div
{
class:
(
container_class
unless
@no_container
)
}
%div
{
class:
(
container_class
unless
@no_container
)
}
...
...
app/views/layouts/nav/_group.html.haml
View file @
003b36b4
...
@@ -44,16 +44,14 @@
...
@@ -44,16 +44,14 @@
%span
%span
Issues
Issues
-
issues
=
IssuesFinder
.
new
(
current_user
,
group_id:
@group
.
id
,
state:
'opened'
).
execute
-
issues
=
IssuesFinder
.
new
(
current_user
,
group_id:
@group
.
id
,
state:
'opened'
).
execute
%span
.count
%span
.badge.count
=
number_with_delimiter
(
issues
.
count
)
(
#{
number_with_delimiter
(
issues
.
count
)
}
)
=
nav_link
(
path:
'groups#merge_requests'
)
do
=
nav_link
(
path:
'groups#merge_requests'
)
do
=
link_to
merge_requests_group_path
(
@group
),
title:
'Merge Requests'
do
=
link_to
merge_requests_group_path
(
@group
),
title:
'Merge Requests'
do
=
icon
(
'tasks fw'
)
=
icon
(
'tasks fw'
)
%span
%span
Merge Requests
Merge Requests
-
merge_requests
=
MergeRequestsFinder
.
new
(
current_user
,
group_id:
@group
.
id
,
state:
'opened'
).
execute
-
merge_requests
=
MergeRequestsFinder
.
new
(
current_user
,
group_id:
@group
.
id
,
state:
'opened'
).
execute
%span
.count
%span
.badge.count
=
number_with_delimiter
(
merge_requests
.
count
)
(
#{
number_with_delimiter
(
merge_requests
.
count
)
}
)
=
nav_link
(
controller:
[
:group_members
])
do
=
nav_link
(
controller:
[
:group_members
])
do
=
link_to
group_group_members_path
(
@group
),
title:
'Members'
do
=
link_to
group_group_members_path
(
@group
),
title:
'Members'
do
=
icon
(
'users fw'
)
=
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