mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-28 14:06:05 +10:00
Change shortcut for activity to project, because navbar changed
This commit is contained in:
@@ -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'))
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
%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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user