Some small style tweaks

This commit is contained in:
swagg boi 2021-12-19 00:43:18 -05:00
parent ec2f950ad3
commit d8ae4529e9
2 changed files with 4 additions and 4 deletions

View file

@ -15,7 +15,7 @@ plugin 'TagHelpers::Pagination';
# Helpers
helper pg => sub {
my $env = app->mode eq 'development' ? 'dev_env' : 'prod_env';
my $env = app->mode() eq 'development' ? 'dev_env' : 'prod_env';
state $pg = Mojo::Pg->new(
'postgres://' .
@ -57,7 +57,7 @@ get '/' => sub ($c) {
$c->render();
} => 'index';
any '/sign' => sub ($c) {
any [qw{GET POST}], '/sign' => sub ($c) {
if ($c->req->method() eq 'POST') {
my $name = $c->param('name');
my $message = $c->param('message');

View file

@ -12,7 +12,7 @@
<td><%= text_area 'message', cols => 40, rows => 6 %></td>
</tr>
<tr>
<th>Swagg CAPTCHA™:</th>
<th>SwaggCAPTCHA™:</th>
<td>
<%= radio_button answer => 0 %>
<%= label_for answer => "I don\'t want to post" %>
@ -22,7 +22,7 @@
<th>&nbsp;</th>
<td>
<%= radio_button answer => "false" %>
<%= label_for answer => "I\'m ready to post" %>
<%= label_for answer => "I\'m ready to post (choose this one)" %>
</td>
</tr>
<tr>