Use layout inheritance by convention

This commit is contained in:
Andreas Nedbal 2020-04-25 17:54:52 +02:00
parent 19e7ed557e
commit ae4c68a10b
2 changed files with 3 additions and 4 deletions

View File

@ -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"

View File

@ -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