Retrospring/app/views/timeline/timeline.html.haml

21 lines
705 B
Plaintext

#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'