Some small style tweaks
This commit is contained in:
parent
ec2f950ad3
commit
d8ae4529e9
|
@ -15,7 +15,7 @@ plugin 'TagHelpers::Pagination';
|
||||||
|
|
||||||
# Helpers
|
# Helpers
|
||||||
helper pg => sub {
|
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(
|
state $pg = Mojo::Pg->new(
|
||||||
'postgres://' .
|
'postgres://' .
|
||||||
|
@ -57,7 +57,7 @@ get '/' => sub ($c) {
|
||||||
$c->render();
|
$c->render();
|
||||||
} => 'index';
|
} => 'index';
|
||||||
|
|
||||||
any '/sign' => sub ($c) {
|
any [qw{GET POST}], '/sign' => sub ($c) {
|
||||||
if ($c->req->method() eq 'POST') {
|
if ($c->req->method() eq 'POST') {
|
||||||
my $name = $c->param('name');
|
my $name = $c->param('name');
|
||||||
my $message = $c->param('message');
|
my $message = $c->param('message');
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
<th> </th>
|
<th> </th>
|
||||||
<td>
|
<td>
|
||||||
<%= radio_button answer => "false" %>
|
<%= radio_button answer => "false" %>
|
||||||
<%= label_for answer => "I\'m ready to post" %>
|
<%= label_for answer => "I\'m ready to post (choose this one)" %>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user