Retrospring/app/views/shared/_hotkeys.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

81 lines
2.7 KiB
Plaintext
Raw Normal View History

2023-03-05 10:38:31 -08:00
.modal.fade#modal-hotkeys{ aria: { hidden: true, labelledby: "modal-hotkeys-label" }, role: :dialog, tabindex: -1 }
2023-03-05 09:45:38 -08:00
.modal-dialog
.modal-content
.modal-header
2023-03-05 10:38:31 -08:00
%h5.modal-title#modal-hotkeys-label= t(".title")
2023-03-05 09:45:38 -08:00
%button.btn-close{ data: { bs_dismiss: :modal }, type: :button }
%span.visually-hidden= t("voc.close")
.modal-body
.row
.col-6
.card
.card-header
2023-03-05 10:38:31 -08:00
%h5.card-title= t(".navigation.title")
2023-03-05 09:45:38 -08:00
%ul.list-group.list-group-flush
%li.list-group-item
2023-03-05 10:38:31 -08:00
= t("navigation.timeline")
2023-03-05 09:45:38 -08:00
%kbd
%kbd g
%kbd t
%li.list-group-item
2023-03-05 10:38:31 -08:00
= t("navigation.inbox")
2023-03-05 09:45:38 -08:00
%kbd
%kbd g
%kbd i
2023-05-07 06:10:31 -07:00
- if APP_CONFIG.dig(:features, :discover, :enabled) || current_user&.mod?
2023-03-05 09:45:38 -08:00
%li.list-group-item
2023-03-05 10:38:31 -08:00
= t("navigation.discover")
2023-03-05 09:45:38 -08:00
%kbd
%kbd g
%kbd d
%li.list-group-item
2023-03-05 10:38:31 -08:00
= t("navigation.notifications")
2023-03-05 09:45:38 -08:00
%kbd
%kbd g
%kbd n
%li.list-group-item
2023-03-05 10:38:31 -08:00
= t("navigation.dropdown.profile.profile")
2023-03-05 09:45:38 -08:00
%kbd
%kbd g
%kbd p
.col-6
.card
.card-header
2023-03-05 10:38:31 -08:00
%h5.card-title= t(".global.title")
2023-03-05 09:45:38 -08:00
%ul.list-group.list-group-flush
%li.list-group-item
2023-03-05 10:38:31 -08:00
= t(".global.navigation.up")
2023-03-05 09:45:38 -08:00
%kbd k
%li.list-group-item
2023-03-05 10:38:31 -08:00
= t(".global.navigation.down")
2023-03-05 09:45:38 -08:00
%kbd j
%li.list-group-item
2023-03-05 10:38:31 -08:00
= t("navigation.desktop.ask_question")
2023-03-05 09:45:38 -08:00
%kbd n
2023-03-05 09:57:25 -08:00
%li.list-group-item
2023-03-05 10:38:31 -08:00
= t("voc.load")
2023-03-05 09:57:25 -08:00
%kbd .
2023-03-05 09:45:38 -08:00
%li.list-group-item
2023-03-05 10:38:31 -08:00
= t(".show_dialog")
2023-03-05 09:45:38 -08:00
%kbd ?
.card
.card-header
2023-03-05 10:38:31 -08:00
%h5.card-title= t(".answer.title")
2023-03-05 09:45:38 -08:00
%ul.list-group.list-group-flush
%li.list-group-item
2023-03-05 10:38:31 -08:00
= t("voc.smile")
2023-03-05 09:46:15 -08:00
%kbd s
2023-03-05 09:45:38 -08:00
%li.list-group-item
2023-03-05 10:38:31 -08:00
= t(".answer.view_comments")
2023-03-05 09:45:38 -08:00
%kbd x
%li.list-group-item
2023-03-05 10:38:31 -08:00
= t(".answer.comment")
2023-03-05 09:45:38 -08:00
%kbd c
%li.list-group-item
2023-03-05 10:38:31 -08:00
= t(".answer.all_answers")
2023-03-05 09:45:38 -08:00
%kbd a
2023-03-05 09:50:27 -08:00
%li.list-group-item
2023-03-05 10:38:31 -08:00
= t(".answer.view_answer")
2023-03-05 09:50:27 -08:00
%kbd l
2023-03-05 09:45:38 -08:00