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
50a11a33
Commit
50a11a33
authored
Jun 26, 2018
by
Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix metrics shortcut
parent
91463e52
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
3 deletions
+4
-3
app/assets/javascripts/shortcuts_navigation.js
app/assets/javascripts/shortcuts_navigation.js
+1
-0
app/views/layouts/nav/sidebar/_project.html.haml
app/views/layouts/nav/sidebar/_project.html.haml
+1
-1
app/views/projects/environments/empty.html.haml
app/views/projects/environments/empty.html.haml
+1
-1
spec/features/projects/user_uses_shortcuts_spec.rb
spec/features/projects/user_uses_shortcuts_spec.rb
+1
-1
No files found.
app/assets/javascripts/shortcuts_navigation.js
View file @
50a11a33
...
...
@@ -20,6 +20,7 @@ export default class ShortcutsNavigation extends Shortcuts {
Mousetrap
.
bind
(
'
g s
'
,
()
=>
findAndFollowLink
(
'
.shortcuts-snippets
'
));
Mousetrap
.
bind
(
'
g k
'
,
()
=>
findAndFollowLink
(
'
.shortcuts-kubernetes
'
));
Mousetrap
.
bind
(
'
g e
'
,
()
=>
findAndFollowLink
(
'
.shortcuts-environments
'
));
Mousetrap
.
bind
(
'
g l
'
,
()
=>
findAndFollowLink
(
'
.shortcuts-metrics
'
));
Mousetrap
.
bind
(
'
i
'
,
()
=>
findAndFollowLink
(
'
.shortcuts-new-issue
'
));
this
.
enabledHelp
.
push
(
'
.hidden-shortcut.project
'
);
...
...
app/views/layouts/nav/sidebar/_project.html.haml
View file @
50a11a33
...
...
@@ -211,7 +211,7 @@
-
if
project_nav_tab?
:environments
=
nav_link
(
controller: :environments
,
action:
[
:metrics
,
:empty
])
do
=
link_to
operations_metrics_path
(
@project
,
@available_environment
),
title:
'Metrics'
,
class:
'shortcuts-
environment
s'
do
=
link_to
operations_metrics_path
(
@project
,
@available_environment
),
title:
'Metrics'
,
class:
'shortcuts-
metric
s'
do
%span
=
_
(
'Metrics'
)
...
...
app/views/projects/environments/empty.html.haml
View file @
50a11a33
...
...
@@ -3,7 +3,7 @@
.row
.col-sm-12
.svg-content
=
image_tag
'illustrations/operations
-
metrics_empty.svg'
=
image_tag
'illustrations/operations
_
metrics_empty.svg'
.row.empty-environments
.col-sm-12.text-center
%h4
...
...
spec/features/projects/user_uses_shortcuts_spec.rb
View file @
50a11a33
...
...
@@ -112,7 +112,7 @@ describe 'User uses shortcuts', :js do
context
'when navigating to the Operations pages'
do
it
'redirects to the Metrics page'
do
find
(
'body'
).
native
.
send_key
(
'g'
)
find
(
'body'
).
native
.
send_key
(
'
m
'
)
find
(
'body'
).
native
.
send_key
(
'
l
'
)
expect
(
page
).
to
have_active_navigation
(
'Operations'
)
expect
(
page
).
to
have_active_sub_navigation
(
'Metrics'
)
...
...
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