mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-13 21:33:20 +01:00
inbox: remove haml lints
This commit is contained in:
parent
c4724b8c62
commit
be55dee7db
2 changed files with 12 additions and 4 deletions
|
@ -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 } }
|
||||
|
|
|
@ -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 } }
|
||||
|
|
Loading…
Reference in a new issue