From c78bd0c85bbfde7ac6241fbfe40d6f2dbaf32add Mon Sep 17 00:00:00 2001 From: Lucas Date: Fri, 24 Mar 2023 13:58:39 +0000 Subject: [PATCH] backend: move all header and pager display out of layout --- templates/exception.html.ep | 1 + templates/gallery.html.ep | 3 +++ templates/layouts/main.html.ep | 6 ------ templates/media.html.ep | 4 +++- templates/not_found.html.ep | 1 + templates/tags.html.ep | 3 +++ 6 files changed, 11 insertions(+), 7 deletions(-) diff --git a/templates/exception.html.ep b/templates/exception.html.ep index d90acf5..930483b 100644 --- a/templates/exception.html.ep +++ b/templates/exception.html.ep @@ -1,2 +1,3 @@ % layout "main"; % title "Error"; +

<%= title %>

diff --git a/templates/gallery.html.ep b/templates/gallery.html.ep index c3d2f59..770ed3c 100644 --- a/templates/gallery.html.ep +++ b/templates/gallery.html.ep @@ -1,4 +1,5 @@ % layout "main"; +

<%= title %>

+ +%= include "_pager"; diff --git a/templates/layouts/main.html.ep b/templates/layouts/main.html.ep index 2b9d4c0..8a46b70 100644 --- a/templates/layouts/main.html.ep +++ b/templates/layouts/main.html.ep @@ -18,13 +18,7 @@
-% if (defined title) { -

<%= title %>

-% } -
%= content -
-%= include "_pager"