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
5ba52693
Commit
5ba52693
authored
May 17, 2016
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix dashboard shortcuts
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
442083e0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
app/assets/javascripts/dispatcher.js.coffee
app/assets/javascripts/dispatcher.js.coffee
+1
-1
app/assets/javascripts/shortcuts_dashboard_navigation.js.coffee
...sets/javascripts/shortcuts_dashboard_navigation.js.coffee
+4
-4
app/views/layouts/nav/_dashboard.html.haml
app/views/layouts/nav/_dashboard.html.haml
+4
-4
No files found.
app/assets/javascripts/dispatcher.js.coffee
View file @
5ba52693
...
...
@@ -119,7 +119,7 @@ class Dispatcher
new
UsersSelect
()
when
'projects'
new
NamespaceSelect
()
when
'dashboard'
when
'dashboard'
,
'root'
shortcut_handler
=
new
ShortcutsDashboardNavigation
()
when
'profiles'
new
Profile
()
...
...
app/assets/javascripts/shortcuts_dashboard_navigation.js.coffee
View file @
5ba52693
...
...
@@ -3,10 +3,10 @@
class
@
ShortcutsDashboardNavigation
extends
Shortcuts
constructor
:
->
super
()
Mousetrap
.
bind
(
'g a'
,
->
ShortcutsDashboardNavigation
.
findAndFollowLink
(
'.shortcuts-activity'
))
Mousetrap
.
bind
(
'g i'
,
->
ShortcutsDashboardNavigation
.
findAndFollowLink
(
'.shortcuts-issues'
))
Mousetrap
.
bind
(
'g m'
,
->
ShortcutsDashboardNavigation
.
findAndFollowLink
(
'.shortcuts-merge_requests'
))
Mousetrap
.
bind
(
'g p'
,
->
ShortcutsDashboardNavigation
.
findAndFollowLink
(
'.shortcuts-projects'
))
Mousetrap
.
bind
(
'g a'
,
->
ShortcutsDashboardNavigation
.
findAndFollowLink
(
'.
dashboard-
shortcuts-activity'
))
Mousetrap
.
bind
(
'g i'
,
->
ShortcutsDashboardNavigation
.
findAndFollowLink
(
'.
dashboard-
shortcuts-issues'
))
Mousetrap
.
bind
(
'g m'
,
->
ShortcutsDashboardNavigation
.
findAndFollowLink
(
'.
dashboard-
shortcuts-merge_requests'
))
Mousetrap
.
bind
(
'g p'
,
->
ShortcutsDashboardNavigation
.
findAndFollowLink
(
'.
dashboard-
shortcuts-projects'
))
@
findAndFollowLink
:
(
selector
)
->
link
=
$
(
selector
).
attr
(
'href'
)
...
...
app/views/layouts/nav/_dashboard.html.haml
View file @
5ba52693
%ul
.nav.nav-sidebar
=
nav_link
(
path:
[
'root#index'
,
'projects#trending'
,
'projects#starred'
,
'dashboard/projects#index'
],
html_options:
{
class:
"
#{
project_tab_class
}
home"
})
do
=
link_to
dashboard_projects_path
,
title:
'Projects'
do
=
link_to
dashboard_projects_path
,
title:
'Projects'
,
class:
'dashboard-shortcuts-projects'
do
=
icon
(
'bookmark fw'
)
%span
Projects
...
...
@@ -11,7 +11,7 @@
Todos
%span
.count.todos-pending-count
=
number_with_delimiter
(
todos_pending_count
)
=
nav_link
(
path:
'dashboard#activity'
)
do
=
link_to
activity_dashboard_path
,
class:
'shortcuts-activity'
,
title:
'Activity'
do
=
link_to
activity_dashboard_path
,
class:
'
dashboard-
shortcuts-activity'
,
title:
'Activity'
do
=
icon
(
'dashboard fw'
)
%span
Activity
...
...
@@ -26,13 +26,13 @@
%span
Milestones
=
nav_link
(
path:
'dashboard#issues'
)
do
=
link_to
assigned_issues_dashboard_path
,
title:
'Issues'
,
class:
'shortcuts-issues'
do
=
link_to
assigned_issues_dashboard_path
,
title:
'Issues'
,
class:
'
dashboard-
shortcuts-issues'
do
=
icon
(
'exclamation-circle fw'
)
%span
Issues
%span
.count
=
number_with_delimiter
(
current_user
.
assigned_issues
.
opened
.
count
)
=
nav_link
(
path:
'dashboard#merge_requests'
)
do
=
link_to
assigned_mrs_dashboard_path
,
title:
'Merge Requests'
,
class:
'shortcuts-merge_requests'
do
=
link_to
assigned_mrs_dashboard_path
,
title:
'Merge Requests'
,
class:
'
dashboard-
shortcuts-merge_requests'
do
=
icon
(
'tasks fw'
)
%span
Merge Requests
...
...
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