Add hotkey for loading more entries

This commit is contained in:
Karina Kwiatek 2023-03-05 18:57:25 +01:00
parent b22fc0bd16
commit 0eb9a4d089
19 changed files with 21 additions and 0 deletions

View file

@ -11,4 +11,5 @@
class: "btn btn-light",
method: :get,
params: { last_id: @inbox_last_id, author: @author }.compact,
data: { hotkey: "." },
form: { data: { turbo_stream: true } }

View file

@ -8,4 +8,5 @@
class: "btn btn-light",
method: :get,
params: { last_id: @inbox_last_id, author: @author }.compact,
data: { hotkey: "." },
form: { data: { turbo_stream: true } }

View file

@ -14,4 +14,5 @@
class: "btn btn-light",
method: :get,
params: { last_id: @inbox_last_id },
data: { hotkey: "." },
form: { data: { turbo_stream: true } }

View file

@ -8,4 +8,5 @@
class: "btn btn-light",
method: :get,
params: { last_id: @inbox_last_id },
data: { hotkey: "." },
form: { data: { turbo_stream: true } }

View file

@ -8,6 +8,7 @@
class: "btn btn-light",
method: :get,
params: { last_id: @reports_last_id },
data: { hotkey: "." },
form: { data: { turbo_stream: true } }
- parent_layout "moderation"

View file

@ -8,4 +8,5 @@
class: "btn btn-light",
method: :get,
params: { last_id: @reports_last_id },
data: { hotkey: "." },
form: { data: { turbo_stream: true } }

View file

@ -22,6 +22,7 @@
class: "btn btn-light",
method: :get,
params: { last_id: @notifications_last_id },
data: { hotkey: "." },
form: { data: { turbo_stream: true } }
- provide(:title, generate_title(t(".title")))

View file

@ -11,4 +11,5 @@
class: "btn btn-light",
method: :get,
params: { last_id: @notifications_last_id },
data: { hotkey: "." },
form: { data: { turbo_stream: true } }

View file

@ -14,6 +14,7 @@
class: "btn btn-light",
method: :get,
params: { last_id: @answers_last_id },
data: { hotkey: "." },
form: { data: { turbo_stream: true } }
- if user_signed_in? && !current_user.answered?(@question) && current_user != @question.user && @question.user&.privacy_allow_stranger_answers

View file

@ -8,4 +8,5 @@
class: "btn btn-light",
method: :get,
params: { last_id: @answers_last_id },
data: { hotkey: "." },
form: { data: { turbo_stream: true } }

View file

@ -52,6 +52,9 @@
%li.list-group-item
= t('navigation.desktop.ask_question')
%kbd n
%li.list-group-item
= t('voc.load')
%kbd .
%li.list-group-item
= t('.show_dialog')
%kbd ?

View file

@ -10,6 +10,7 @@
class: "btn btn-light",
method: :get,
params: { last_id: @timeline_last_id },
data: { hotkey: "." },
form: { data: { turbo_stream: true } }
- provide(:title, @title || APP_CONFIG["site_name"])

View file

@ -8,4 +8,5 @@
class: "btn btn-light",
method: :get,
params: { last_id: @timeline_last_id },
data: { hotkey: "." },
form: { data: { turbo_stream: true } }

View file

@ -8,6 +8,7 @@
class: "btn btn-light",
method: :get,
params: { last_id: @questions_last_id },
data: { hotkey: "." },
form: { data: { turbo_stream: true } }
- provide(:title, questions_title(@user))

View file

@ -8,4 +8,5 @@
class: "btn btn-light",
method: :get,
params: { last_id: @questions_last_id },
data: { hotkey: "." },
form: { data: { turbo_stream: true } }

View file

@ -13,6 +13,7 @@
class: "btn btn-light",
method: :get,
params: { last_id: @answers_last_id },
data: { hotkey: "." },
form: { data: { turbo_stream: true } }
:ruby

View file

@ -8,4 +8,5 @@
class: "btn btn-light",
method: :get,
params: { last_id: @answers_last_id },
data: { hotkey: "." },
form: { data: { turbo_stream: true } }

View file

@ -9,6 +9,7 @@
class: "btn btn-light",
method: :get,
params: { last_id: @relationships_last_id },
data: { hotkey: "." },
form: { data: { turbo_stream: true } }
- provide(:title, t(".title.#{type}", user: @user.profile.safe_name))

View file

@ -9,4 +9,5 @@
class: "btn btn-light",
method: :get,
params: { last_id: @relationships_last_id },
data: { hotkey: "." },
form: { data: { turbo_stream: true } }