retrospring/app/views/layouts/inbox.html.haml
Georg Gadinger a2ae98eee8 inbox_controller: update all inbox entries when requesting turbo stream
since there's no layout rendered which updates all inbox entries the
inbox entries would still be shown as unread

fixes #827
2022-11-25 00:10:36 +01:00

13 lines
359 B
Text

.container-lg.container--main
.row
.col-sm-10.col-md-10.col-lg-9.mx-auto
= render 'inbox/actions', delete_id: @delete_id, disabled: @disabled, inbox_count: @inbox_count
= render 'layouts/messages'
= yield
= render 'shared/links'
:ruby
@inbox.update_all(new: false)
provide(:title, generate_title('Inbox'))
parent_layout 'base'