From daefabd1af7619c6b9b1940967c863d733645367 Mon Sep 17 00:00:00 2001 From: Lucas Date: Fri, 17 Mar 2023 19:58:12 +0000 Subject: [PATCH] backend: move pager HTML into a partial template --- templates/_pager.html.ep | 11 +++++++++++ templates/layouts/main.html.ep | 12 +----------- 2 files changed, 12 insertions(+), 11 deletions(-) create mode 100644 templates/_pager.html.ep diff --git a/templates/_pager.html.ep b/templates/_pager.html.ep new file mode 100644 index 0000000..571ed64 --- /dev/null +++ b/templates/_pager.html.ep @@ -0,0 +1,11 @@ +<% if (my $pager = stash("pager")) { %> + +<% } %> diff --git a/templates/layouts/main.html.ep b/templates/layouts/main.html.ep index 2db1e1f..6e5fa29 100644 --- a/templates/layouts/main.html.ep +++ b/templates/layouts/main.html.ep @@ -20,17 +20,7 @@

<%= title %>

<%= content %>
- <% if (defined $pager) { %> -
- -
- <% } %> + <%= include '_pager' %>