From 7579138d99946857393dc5c585f5eb3558131b4a Mon Sep 17 00:00:00 2001 From: barnold Date: Sun, 18 Sep 2022 14:51:16 +0100 Subject: [PATCH] Simplied page nav a little further... by dropping the '->to_abs' calls. Makes no difference to the links and saves a little clutter. --- templates/_page-navigation.html.ep | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/templates/_page-navigation.html.ep b/templates/_page-navigation.html.ep index b0a1dff..8d06101 100644 --- a/templates/_page-navigation.html.ep +++ b/templates/_page-navigation.html.ep @@ -2,22 +2,18 @@ Page <%= $pager->current_page %> of <%= $pager->last_page %>     -<%= link_to url_with(page_number => 1) -->to_abs => begin %>◄ First<% end %> +<%= link_to url_with(page_number => 1) => begin %>◄ First<% end %> % if (my $prev = $pager->previous_page) { - <%= link_to url_with(page_number => $prev) - ->to_abs => begin %>◄ Prev<% end %> + <%= link_to url_with(page_number => $prev) => begin %>◄ Prev<% end %> % } else { ◄ Prev % } % if (my $next = $pager->next_page) { - <%= link_to url_with(page_number => $next) - ->to_abs => begin %>Next ►<% end %> + <%= link_to url_with(page_number => $next) => begin %>Next ►<% end %> % } else { Next ► % } -<%= link_to url_with(page_number => $pager->last_page) -->to_abs => begin %>Last ►<% end %> +<%= link_to url_with(page_number => $pager->last_page) => begin %>Last ►<% end %>