2023-03-05 17:17:02 +01:00
|
|
|
#timeline{ data: { controller: "navigation" } }
|
|
|
|
%button.d-none{ data: { hotkey: "j", action: "navigation#down" } }
|
|
|
|
%button.d-none{ data: { hotkey: "k", action: "navigation#up" } }
|
2023-12-10 21:56:48 +01:00
|
|
|
- if @timeline.empty?
|
|
|
|
= render "shared/empty", type: "timeline"
|
|
|
|
|
2020-04-25 18:23:02 +02:00
|
|
|
- @timeline.each do |answer|
|
2023-11-26 19:32:50 +01:00
|
|
|
= render "answerbox", a: answer
|
2020-04-25 18:23:02 +02:00
|
|
|
|
2020-05-09 04:51:14 +02:00
|
|
|
- if @more_data_available
|
2022-10-25 21:52:58 +02:00
|
|
|
.d-flex.justify-content-center#paginator
|
2023-01-21 19:11:05 +01:00
|
|
|
= button_to t("voc.load"), request.path,
|
|
|
|
class: "btn btn-light",
|
|
|
|
method: :get,
|
|
|
|
params: { last_id: @timeline_last_id },
|
2023-03-19 14:42:01 +01:00
|
|
|
data: { controller: :hotkey, hotkey: "." },
|
2023-01-21 19:11:05 +01:00
|
|
|
form: { data: { turbo_stream: true } }
|
2020-04-25 18:23:02 +02:00
|
|
|
|
2022-07-21 15:57:12 +02:00
|
|
|
- provide(:title, @title || APP_CONFIG["site_name"])
|
2020-05-10 08:40:32 +02:00
|
|
|
- parent_layout 'feed'
|