Small tweaks I've been meaning to make

This commit is contained in:
swagg boi 2022-04-08 12:59:15 -04:00
parent 5583b9f608
commit 94dfa4043e
2 changed files with 7 additions and 6 deletions

View file

@ -129,12 +129,12 @@ group {
get '/:number', [number => qr/[0-9]+/], {number => 1} => sub ($c) {
my $base_path = $c->url_for(number => undef);
my $this_page = $c->param('number');
my $last_page =
$base_path eq '/view' ? $c->message->get_last_page()
: $c->message->get_last_page(1);
my $view_posts =
$base_path eq '/view' ? $c->message->get_posts($this_page)
: $c->message->get_spam($this_page);
my $last_page = $base_path eq '/view'
? $c->message->get_last_page()
: $c->message->get_last_page(1);
my $view_posts = $base_path eq '/view'
? $c->message->get_posts($this_page)
: $c->message->get_spam($this_page);
$c->stash(
view_posts => $view_posts,

View file

@ -11,6 +11,7 @@
<meta name="twitter:description" content="Messages from the World Wide Web">
<meta name="twitter:creator" content="@swaggboi@eattherich.club">
<meta name="twitter:site" content="@swaggboi@eattherich.club">
<meta content="Messages from the World Wide Web" name="description">
<title>Swagg::Net::Guestbook - <%= title %></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<%= asset 'swagg.css' %>