Small tweaks I've been meaning to make
This commit is contained in:
parent
5583b9f608
commit
94dfa4043e
|
@ -129,11 +129,11 @@ group {
|
||||||
get '/:number', [number => qr/[0-9]+/], {number => 1} => sub ($c) {
|
get '/:number', [number => qr/[0-9]+/], {number => 1} => sub ($c) {
|
||||||
my $base_path = $c->url_for(number => undef);
|
my $base_path = $c->url_for(number => undef);
|
||||||
my $this_page = $c->param('number');
|
my $this_page = $c->param('number');
|
||||||
my $last_page =
|
my $last_page = $base_path eq '/view'
|
||||||
$base_path eq '/view' ? $c->message->get_last_page()
|
? $c->message->get_last_page()
|
||||||
: $c->message->get_last_page(1);
|
: $c->message->get_last_page(1);
|
||||||
my $view_posts =
|
my $view_posts = $base_path eq '/view'
|
||||||
$base_path eq '/view' ? $c->message->get_posts($this_page)
|
? $c->message->get_posts($this_page)
|
||||||
: $c->message->get_spam($this_page);
|
: $c->message->get_spam($this_page);
|
||||||
|
|
||||||
$c->stash(
|
$c->stash(
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
<meta name="twitter:description" content="Messages from the World Wide Web">
|
<meta name="twitter:description" content="Messages from the World Wide Web">
|
||||||
<meta name="twitter:creator" content="@swaggboi@eattherich.club">
|
<meta name="twitter:creator" content="@swaggboi@eattherich.club">
|
||||||
<meta name="twitter:site" 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>
|
<title>Swagg::Net::Guestbook - <%= title %></title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<%= asset 'swagg.css' %>
|
<%= asset 'swagg.css' %>
|
||||||
|
|
Loading…
Reference in a new issue