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
f6ac9528
Commit
f6ac9528
authored
Feb 17, 2017
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'global-dropdown-edits' into 'master'
Global dropdown edits See merge request !9336
parents
721ae6be
ee444bf3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
26 deletions
+10
-26
app/assets/stylesheets/framework/header.scss
app/assets/stylesheets/framework/header.scss
+6
-8
app/views/layouts/nav/_dashboard.html.haml
app/views/layouts/nav/_dashboard.html.haml
+2
-2
app/views/profiles/preferences/show.html.haml
app/views/profiles/preferences/show.html.haml
+0
-7
doc/profile/preferences.md
doc/profile/preferences.md
+0
-7
spec/features/dashboard/issuables_counter_spec.rb
spec/features/dashboard/issuables_counter_spec.rb
+2
-2
No files found.
app/assets/stylesheets/framework/header.scss
View file @
f6ac9528
...
@@ -111,15 +111,9 @@ header {
...
@@ -111,15 +111,9 @@ header {
}
}
li
{
li
{
.active
a
{
&
.active
a
{
font-weight
:
bold
;
font-weight
:
bold
;
}
}
&
:hover
{
.badge
{
background-color
:
$white-light
;
}
}
}
}
}
}
...
@@ -132,7 +126,11 @@ header {
...
@@ -132,7 +126,11 @@ header {
&
:hover
{
&
:hover
{
background-color
:
$white-normal
;
background-color
:
$white-normal
;
color
:
$gl-header-nav-hover-color
;
}
&
:focus
{
outline
:
none
;
background-color
:
$white-normal
;
}
}
}
}
...
...
app/views/layouts/nav/_dashboard.html.haml
View file @
f6ac9528
...
@@ -24,12 +24,12 @@
...
@@ -24,12 +24,12 @@
=
link_to
assigned_issues_dashboard_path
,
title:
'Issues'
,
class:
'dashboard-shortcuts-issues'
do
=
link_to
assigned_issues_dashboard_path
,
title:
'Issues'
,
class:
'dashboard-shortcuts-issues'
do
%span
%span
Issues
Issues
%span
.badge
=
number_with_delimiter
(
cached_assigned_issuables_count
(
current_user
,
:issues
,
:opened
)
)
(
#{
number_with_delimiter
(
cached_assigned_issuables_count
(
current_user
,
:issues
,
:opened
))
}
)
=
nav_link
(
path:
'dashboard#merge_requests'
)
do
=
nav_link
(
path:
'dashboard#merge_requests'
)
do
=
link_to
assigned_mrs_dashboard_path
,
title:
'Merge Requests'
,
class:
'dashboard-shortcuts-merge_requests'
do
=
link_to
assigned_mrs_dashboard_path
,
title:
'Merge Requests'
,
class:
'dashboard-shortcuts-merge_requests'
do
%span
%span
Merge Requests
Merge Requests
%span
.badge
=
number_with_delimiter
(
cached_assigned_issuables_count
(
current_user
,
:merge_requests
,
:opened
)
)
(
#{
number_with_delimiter
(
cached_assigned_issuables_count
(
current_user
,
:merge_requests
,
:opened
))
}
)
=
nav_link
(
controller:
'dashboard/snippets'
)
do
=
nav_link
(
controller:
'dashboard/snippets'
)
do
=
link_to
dashboard_snippets_path
,
title:
'Snippets'
do
=
link_to
dashboard_snippets_path
,
title:
'Snippets'
do
%span
%span
...
...
app/views/profiles/preferences/show.html.haml
View file @
f6ac9528
...
@@ -2,13 +2,6 @@
...
@@ -2,13 +2,6 @@
=
render
'profiles/head'
=
render
'profiles/head'
=
form_for
@user
,
url:
profile_preferences_path
,
remote:
true
,
method: :put
,
html:
{
class:
'row prepend-top-default js-preferences-form'
}
do
|
f
|
=
form_for
@user
,
url:
profile_preferences_path
,
remote:
true
,
method: :put
,
html:
{
class:
'row prepend-top-default js-preferences-form'
}
do
|
f
|
.col-lg-3.profile-settings-sidebar
%h4
.prepend-top-0
Application theme
%p
This setting allows you to customize the appearance of the site, e.g. the sidebar.
.col-sm-12
%hr
.col-lg-3.profile-settings-sidebar
.col-lg-3.profile-settings-sidebar
%h4
.prepend-top-0
%h4
.prepend-top-0
Syntax highlighting theme
Syntax highlighting theme
...
...
doc/profile/preferences.md
View file @
f6ac9528
...
@@ -3,13 +3,6 @@
...
@@ -3,13 +3,6 @@
Settings in the
**Profile > Preferences**
page allow the user to customize
Settings in the
**Profile > Preferences**
page allow the user to customize
various aspects of the site to their liking.
various aspects of the site to their liking.
## Application theme
Changing this setting allows the user to customize the color scheme used for the
navigation bar on the left side of the screen.
The default is
**Charcoal**
.
## Syntax highlighting theme
## Syntax highlighting theme
_GitLab uses the
[
rouge ruby library
][
rouge
]
for syntax highlighting. For a
_GitLab uses the
[
rouge ruby library
][
rouge
]
for syntax highlighting. For a
...
...
spec/features/dashboard/issuables_counter_spec.rb
View file @
f6ac9528
...
@@ -35,9 +35,9 @@ describe 'Navigation bar counter', feature: true, js: true, caching: true do
...
@@ -35,9 +35,9 @@ describe 'Navigation bar counter', feature: true, js: true, caching: true do
end
end
def
expect_counters
(
issuable_type
,
count
)
def
expect_counters
(
issuable_type
,
count
)
dashboard_count
=
find
(
'li.active
span.badge
'
)
dashboard_count
=
find
(
'li.active'
)
find
(
'.global-dropdown-toggle'
).
click
find
(
'.global-dropdown-toggle'
).
click
nav_count
=
find
(
".dashboard-shortcuts-
#{
issuable_type
}
span.badge
"
)
nav_count
=
find
(
".dashboard-shortcuts-
#{
issuable_type
}
"
)
expect
(
nav_count
).
to
have_content
(
count
)
expect
(
nav_count
).
to
have_content
(
count
)
expect
(
dashboard_count
).
to
have_content
(
count
)
expect
(
dashboard_count
).
to
have_content
(
count
)
...
...
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