retrospring/app/views/timeline/timeline.html.haml
2023-12-10 22:39:58 +01:00

20 lines
705 B
Text

#timeline{ data: { controller: "navigation" } }
%button.d-none{ data: { hotkey: "j", action: "navigation#down" } }
%button.d-none{ data: { hotkey: "k", action: "navigation#up" } }
- if @timeline.empty?
= render "shared/empty", type: "timeline"
- @timeline.each do |answer|
= render "answerbox", a: answer
- if @more_data_available
.d-flex.justify-content-center#paginator
= button_to t("voc.load"), request.path,
class: "btn btn-light",
method: :get,
params: { last_id: @timeline_last_id },
data: { controller: :hotkey, hotkey: "." },
form: { data: { turbo_stream: true } }
- provide(:title, @title || APP_CONFIG["site_name"])
- parent_layout 'feed'