Clean up inbox layouts
This commit is contained in:
parent
baf5ba698d
commit
2a074227ac
|
@ -1,25 +1,12 @@
|
||||||
- provide(:title, generate_title("Inbox"))
|
#entries
|
||||||
.container.j2-page
|
- @inbox.each do |i|
|
||||||
.row
|
= render 'inbox/entry', i: i
|
||||||
.col-md-3.col-xs-12.col-sm-4.d-none.d-sm-block
|
|
||||||
= render 'inbox/sidebar'
|
|
||||||
.col-md-9.col-xs-12.col-sm-8
|
|
||||||
= render 'layouts/messages'
|
|
||||||
#entries
|
|
||||||
- @inbox.each do |i|
|
|
||||||
= render 'inbox/entry', i: i
|
|
||||||
|
|
||||||
- if @inbox.empty?
|
- if @inbox.empty?
|
||||||
= t 'views.inbox.empty'
|
= t 'views.inbox.empty'
|
||||||
|
|
||||||
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @inbox_last_id
|
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @inbox_last_id
|
||||||
|
|
||||||
- if @more_data_available
|
- if @more_data_available
|
||||||
%button#load-more-btn.btn.btn-default{type: :button, data: { last_id: @inbox_last_id }}
|
%button#load-more-btn.btn.btn-default{type: :button, data: { last_id: @inbox_last_id }}
|
||||||
= t 'views.actions.load'
|
= t 'views.actions.load'
|
||||||
|
|
||||||
.col-md-9.col-xs-12.col-sm-8.d-block.d-sm-none
|
|
||||||
= render 'inbox/sidebar'
|
|
||||||
|
|
||||||
= render "shared/links"
|
|
||||||
- Inbox.where(id: @inbox.ids).update_all(new: false)
|
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
.container.j2-page
|
||||||
|
.row
|
||||||
|
.col-md-3.col-xs-12.col-sm-4.d-none.d-sm-block
|
||||||
|
= render 'inbox/sidebar'
|
||||||
|
.col-md-9.col-xs-12.col-sm-8
|
||||||
|
= render 'layouts/messages'
|
||||||
|
= yield
|
||||||
|
|
||||||
|
.col-md-9.col-xs-12.col-sm-8.d-block.d-sm-none
|
||||||
|
= render 'inbox/sidebar'
|
||||||
|
|
||||||
|
= render "shared/links"
|
||||||
|
|
||||||
|
- Inbox.where(id: @inbox.ids).update_all(new: false)
|
||||||
|
- provide(:title, generate_title("Inbox"))
|
||||||
|
- parent_layout "base"
|
Loading…
Reference in New Issue