inbox: remove haml lints

This commit is contained in:
Georg Gadinger 2023-01-19 16:25:56 +01:00
parent c4724b8c62
commit be55dee7db
2 changed files with 12 additions and 4 deletions

View file

@ -1,10 +1,14 @@
#entries
- @inbox.each do |i|
= render "inbox/entry", i: i
= render "inbox/entry", i:
- if @inbox.empty?
%p.empty= t(".empty")
- if @more_data_available
.d-flex.justify-content-center#paginator
= button_to t("voc.load"), inbox_path, class: "btn btn-light", method: :get, params: { last_id: @inbox_last_id, author: @author }.compact, form: { data: { turbo_stream: true } }
= button_to t("voc.load"), inbox_path,
class: "btn btn-light",
method: :get,
params: { last_id: @inbox_last_id, author: @author }.compact,
form: { data: { turbo_stream: true } }

View file

@ -1,7 +1,11 @@
= turbo_stream.append "entries" do
- @inbox.each do |i|
= render "inbox/entry", i: i
= render "inbox/entry", i:
= turbo_stream.update "paginator" do
- if @more_data_available
= button_to t("voc.load"), inbox_path, class: "btn btn-light", method: :get, params: { last_id: @inbox_last_id, author: @author }.compact, form: { data: { turbo_stream: true } }
= button_to t("voc.load"), inbox_path,
class: "btn btn-light",
method: :get,
params: { last_id: @inbox_last_id, author: @author }.compact,
form: { data: { turbo_stream: true } }