Открыть боковую панель
Захаров Дмитрий Сергеевич
Gitlab
Коммиты
50c89103
Коммит
50c89103
создал
Июл 06, 2018
по автору
Jose
Просмотр файлов
Add pod logs to the projects sidebar shortcut
владелец
a30c3f03
Изменения
5
Скрыть пробелы
Построчно
Рядом
app/assets/javascripts/shortcuts_navigation.js
Просмотр файла @
50c89103
...
...
@@ -21,6 +21,7 @@ export default class ShortcutsNavigation extends Shortcuts {
Mousetrap
.
bind
(
'
g k
'
,
()
=>
findAndFollowLink
(
'
.shortcuts-kubernetes
'
));
Mousetrap
.
bind
(
'
g e
'
,
()
=>
findAndFollowLink
(
'
.shortcuts-environments
'
));
Mousetrap
.
bind
(
'
g l
'
,
()
=>
findAndFollowLink
(
'
.shortcuts-metrics
'
));
Mousetrap
.
bind
(
'
g o
'
,
()
=>
findAndFollowLink
(
'
.shortcuts-pod-logs
'
));
Mousetrap
.
bind
(
'
i
'
,
()
=>
findAndFollowLink
(
'
.shortcuts-new-issue
'
));
this
.
enabledHelp
.
push
(
'
.hidden-shortcut.project
'
);
...
...
app/views/help/_shortcuts.html.haml
Просмотр файла @
50c89103
...
...
@@ -185,6 +185,12 @@
%kbd
l
%td
Go to metrics
%tr
%td
.shortcut
%kbd
g
%kbd
o
%td
Go to pod logs
%tr
%td
.shortcut
%kbd
g
...
...
app/views/layouts/nav/sidebar/_project.html.haml
Просмотр файла @
50c89103
...
...
@@ -215,6 +215,11 @@
%span
=
_
(
'Metrics'
)
=
nav_link
(
controller: :environments
,
action:
[
:metrics
,
:metrics_redirect
])
do
=
link_to
metrics_project_environments_path
(
@project
),
title:
_
(
'Pod logs'
),
class:
'shortcuts-pod-logs'
do
%span
=
_
(
'Pod logs'
)
=
nav_link
(
controller: :environments
,
action:
[
:index
,
:folder
,
:show
,
:new
,
:edit
,
:create
,
:update
,
:stop
,
:terminal
])
do
=
link_to
project_environments_path
(
@project
),
title:
_
(
'Environments'
),
class:
'shortcuts-environments'
do
%span
...
...
ee/changelogs/unreleased/5768-add-pod-logs-to-operations-tab.yml
0 → 100644
Просмотр файла @
50c89103
---
title
:
Add Pod logs shortcut to project sidebar
merge_request
:
6415
author
:
type
:
changed
spec/features/projects/user_uses_shortcuts_spec.rb
Просмотр файла @
50c89103
...
...
@@ -118,6 +118,14 @@
expect
(
page
).
to
have_active_sub_navigation
(
'Metrics'
)
end
it
'redirects to the Pod logs page'
do
find
(
'body'
).
native
.
send_key
(
'g'
)
find
(
'body'
).
native
.
send_key
(
'o'
)
expect
(
page
).
to
have_active_navigation
(
'Operations'
)
expect
(
page
).
to
have_active_sub_navigation
(
'Pod logs'
)
end
it
'redirects to the Environments page'
do
find
(
'body'
).
native
.
send_key
(
'g'
)
find
(
'body'
).
native
.
send_key
(
'e'
)
...
...
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать