Use layout inheritance by convention
This commit is contained in:
parent
19e7ed557e
commit
ae4c68a10b
|
@ -7,4 +7,5 @@
|
|||
= yield
|
||||
|
||||
- Notification.for(current_user).update_all(new: false)
|
||||
- provide(:title, generate_title("Notifications"))
|
||||
- provide(:title, generate_title("Notifications"))
|
||||
- parent_layout "base"
|
|
@ -17,6 +17,4 @@
|
|||
|
||||
- if @more_data_available
|
||||
%button#load-more-btn.btn.btn-default{type: :button, data: { last_id: @notifications_last_id }}
|
||||
Load more
|
||||
|
||||
- parent_layout "notification"
|
||||
Load more
|
Loading…
Reference in New Issue