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
23303990
Commit
23303990
authored
Sep 07, 2016
by
Phil Hughes
Committed by
Jacob Schatz
Sep 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added keyboard shortcut to navigate to issue boards
Closes #21218
parent
d2370422
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
0 deletions
+34
-0
CHANGELOG
CHANGELOG
+1
-0
app/assets/javascripts/shortcuts_navigation.js
app/assets/javascripts/shortcuts_navigation.js
+3
-0
app/views/help/_shortcuts.html.haml
app/views/help/_shortcuts.html.haml
+6
-0
app/views/layouts/nav/_project.html.haml
app/views/layouts/nav/_project.html.haml
+4
-0
spec/features/boards/keyboard_shortcut_spec.rb
spec/features/boards/keyboard_shortcut_spec.rb
+20
-0
No files found.
CHANGELOG
View file @
23303990
...
...
@@ -30,6 +30,7 @@ v 8.12.0 (unreleased)
- Add `web_url` field to issue, merge request, and snippet API objects (Ben Boeckel)
- Enable pipeline events by default !6278
- Move parsing of sidekiq ps into helper !6245 (pascalbetz)
- Added go to issue boards keyboard shortcut
- Expose `sha` and `merge_commit_sha` in merge request API (Ben Boeckel)
- Set path for all JavaScript cookies to honor GitLab's subdirectory setting !5627 (Mike Greiling)
- Fix blame table layout width
...
...
app/assets/javascripts/shortcuts_navigation.js
View file @
23303990
...
...
@@ -34,6 +34,9 @@
Mousetrap
.
bind
(
'
g i
'
,
function
()
{
return
ShortcutsNavigation
.
findAndFollowLink
(
'
.shortcuts-issues
'
);
});
Mousetrap
.
bind
(
'
g l
'
,
function
()
{
ShortcutsNavigation
.
findAndFollowLink
(
'
.shortcuts-issue-boards
'
);
});
Mousetrap
.
bind
(
'
g m
'
,
function
()
{
return
ShortcutsNavigation
.
findAndFollowLink
(
'
.shortcuts-merge_requests
'
);
});
...
...
app/views/help/_shortcuts.html.haml
View file @
23303990
...
...
@@ -162,6 +162,12 @@
.key
i
%td
Go to issues
%tr
%td
.shortcut
.key
g
.key
l
%td
Go to issue boards
%tr
%td
.shortcut
.key
g
...
...
app/views/layouts/nav/_project.html.haml
View file @
23303990
...
...
@@ -113,3 +113,7 @@
%li
.hidden
=
link_to
project_commits_path
(
@project
),
title:
'Commits'
,
class:
'shortcuts-commits'
do
Commits
-# Shortcut to issue boards
%li
.hidden
=
link_to
'Issue Boards'
,
namespace_project_board_path
(
@project
.
namespace
,
@project
),
title:
'Issue Boards'
,
class:
'shortcuts-issue-boards'
spec/features/boards/keyboard_shortcut_spec.rb
0 → 100644
View file @
23303990
require
'rails_helper'
describe
'Issue Boards shortcut'
,
feature:
true
,
js:
true
do
let
(
:project
)
{
create
(
:empty_project
)
}
before
do
project
.
create_board
project
.
board
.
lists
.
create
(
list_type: :backlog
)
project
.
board
.
lists
.
create
(
list_type: :done
)
login_as
:admin
visit
namespace_project_path
(
project
.
namespace
,
project
)
end
it
'takes user to issue board index'
do
find
(
'body'
).
native
.
send_keys
(
'gl'
)
expect
(
page
).
to
have_selector
(
'.boards-list'
)
end
end
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