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
3d1a246f
Commit
3d1a246f
authored
Sep 08, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7697 from Razer6/fix_project_shortcuts
Change keyboard shortcut for activity to project
parents
69c4026e
7f7bf86b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
4 deletions
+10
-4
app/assets/javascripts/shortcuts_navigation.coffee
app/assets/javascripts/shortcuts_navigation.coffee
+1
-1
app/views/help/_shortcuts.html.haml
app/views/help/_shortcuts.html.haml
+2
-2
app/views/layouts/nav/_project.html.haml
app/views/layouts/nav/_project.html.haml
+1
-1
features/project/shortcuts.feature
features/project/shortcuts.feature
+6
-0
No files found.
app/assets/javascripts/shortcuts_navigation.coffee
View file @
3d1a246f
...
...
@@ -3,7 +3,7 @@
class
@
ShortcutsNavigation
extends
Shortcuts
constructor
:
->
super
()
Mousetrap
.
bind
(
'g
a'
,
->
ShortcutsNavigation
.
findAndollowLink
(
'.shortcuts-activity
'
))
Mousetrap
.
bind
(
'g
p'
,
->
ShortcutsNavigation
.
findAndollowLink
(
'.shortcuts-project
'
))
Mousetrap
.
bind
(
'g f'
,
->
ShortcutsNavigation
.
findAndollowLink
(
'.shortcuts-tree'
))
Mousetrap
.
bind
(
'g c'
,
->
ShortcutsNavigation
.
findAndollowLink
(
'.shortcuts-commits'
))
Mousetrap
.
bind
(
'g n'
,
->
ShortcutsNavigation
.
findAndollowLink
(
'.shortcuts-network'
))
...
...
app/views/help/_shortcuts.html.haml
View file @
3d1a246f
...
...
@@ -78,9 +78,9 @@
%tr
%td
.shortcut
.key
g
.key
a
.key
p
%td
Go to the activity feed
Go to the
project's
activity feed
%tr
%td
.shortcut
.key
g
...
...
app/views/layouts/nav/_project.html.haml
View file @
3d1a246f
%ul
.project-navigation
=
nav_link
(
path:
'projects#show'
,
html_options:
{
class:
"home"
})
do
=
link_to
project_path
(
@project
),
title:
'Project'
,
class:
'shortcuts-
activity
'
do
=
link_to
project_path
(
@project
),
title:
'Project'
,
class:
'shortcuts-
project
'
do
Project
-
if
project_nav_tab?
:files
=
nav_link
(
controller:
%w(tree blob blame edit_tree new_tree)
)
do
...
...
features/project/shortcuts.feature
View file @
3d1a246f
...
...
@@ -44,3 +44,9 @@ Feature: Project shortcuts
Scenario
:
Navigate to wiki tab
Given
I press
"g"
and
"w"
Then
the active main tab should be Wiki
@javascript
Scenario
:
Navigate to project feed
Given
I visit my project's files page
Given
I press
"g"
and
"p"
Then
the active main tab should be Home
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