2022-09-04 11:24:32 -07:00
|
|
|
= turbo_stream.append "entries" do
|
|
|
|
- @inbox.each do |i|
|
2023-02-12 08:36:25 -08:00
|
|
|
= render "inbox/entry", i:
|
2022-09-04 11:24:32 -07:00
|
|
|
|
|
|
|
= turbo_stream.update "paginator" do
|
|
|
|
- if @more_data_available
|
2023-01-19 07:25:56 -08:00
|
|
|
= button_to t("voc.load"), inbox_path,
|
|
|
|
class: "btn btn-light",
|
|
|
|
method: :get,
|
|
|
|
params: { last_id: @inbox_last_id, author: @author }.compact,
|
2023-03-19 06:42:01 -07:00
|
|
|
data: { controller: :hotkey, hotkey: "." },
|
2023-01-19 07:25:56 -08:00
|
|
|
form: { data: { turbo_stream: true } }
|