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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
eb45c48d
Commit
eb45c48d
authored
Apr 12, 2016
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set `i` as a shortcut for creating a new issue
parent
91de6e25
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
app/assets/javascripts/shortcuts_navigation.coffee
app/assets/javascripts/shortcuts_navigation.coffee
+1
-0
app/views/layouts/nav/_project.html.haml
app/views/layouts/nav/_project.html.haml
+5
-0
No files found.
app/assets/javascripts/shortcuts_navigation.coffee
View file @
eb45c48d
...
@@ -14,6 +14,7 @@ class @ShortcutsNavigation extends Shortcuts
...
@@ -14,6 +14,7 @@ class @ShortcutsNavigation extends Shortcuts
Mousetrap
.
bind
(
'g m'
,
->
ShortcutsNavigation
.
findAndFollowLink
(
'.shortcuts-merge_requests'
))
Mousetrap
.
bind
(
'g m'
,
->
ShortcutsNavigation
.
findAndFollowLink
(
'.shortcuts-merge_requests'
))
Mousetrap
.
bind
(
'g w'
,
->
ShortcutsNavigation
.
findAndFollowLink
(
'.shortcuts-wiki'
))
Mousetrap
.
bind
(
'g w'
,
->
ShortcutsNavigation
.
findAndFollowLink
(
'.shortcuts-wiki'
))
Mousetrap
.
bind
(
'g s'
,
->
ShortcutsNavigation
.
findAndFollowLink
(
'.shortcuts-snippets'
))
Mousetrap
.
bind
(
'g s'
,
->
ShortcutsNavigation
.
findAndFollowLink
(
'.shortcuts-snippets'
))
Mousetrap
.
bind
(
'i'
,
->
ShortcutsNavigation
.
findAndFollowLink
(
'.shortcuts-new-issue'
))
@
enabledHelp
.
push
(
'.hidden-shortcut.project'
)
@
enabledHelp
.
push
(
'.hidden-shortcut.project'
)
@
findAndFollowLink
:
(
selector
)
->
@
findAndFollowLink
:
(
selector
)
->
...
...
app/views/layouts/nav/_project.html.haml
View file @
eb45c48d
...
@@ -124,3 +124,8 @@
...
@@ -124,3 +124,8 @@
%li
.hidden
%li
.hidden
=
link_to
namespace_project_network_path
(
@project
.
namespace
,
@project
,
current_ref
),
title:
'Network'
,
class:
'shortcuts-network'
do
=
link_to
namespace_project_network_path
(
@project
.
namespace
,
@project
,
current_ref
),
title:
'Network'
,
class:
'shortcuts-network'
do
Network
Network
-# Shortcut to create a new issue
%li
.hidden
=
link_to
polymorphic_path
([
@project
.
namespace
.
becomes
(
Namespace
),
@project
,
:issue
],
action: :new
),
class:
'shortcuts-new-issue'
do
New Issue
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