Display the visitor counter
This commit is contained in:
parent
6fe9a59b6d
commit
3532310738
|
@ -44,7 +44,10 @@ under sub ($c) {
|
||||||
|
|
||||||
$c->stash(status => 403) if $c->flash('error');
|
$c->stash(status => 403) if $c->flash('error');
|
||||||
|
|
||||||
$c->stash(post_count => format_number $c->message->get_post_count);
|
$c->stash(
|
||||||
|
post_count => format_number($c->message->get_post_count),
|
||||||
|
visitor_count => format_number($c->counter->get_visitor_count)
|
||||||
|
);
|
||||||
|
|
||||||
1;
|
1;
|
||||||
};
|
};
|
||||||
|
@ -129,7 +132,7 @@ app->secrets(app->config->{'secrets'}) || die $@;
|
||||||
app->message->max_posts(app->config->{'max_posts'})
|
app->message->max_posts(app->config->{'max_posts'})
|
||||||
if app->config->{'max_posts'};
|
if app->config->{'max_posts'};
|
||||||
|
|
||||||
app->pg->migrations->from_dir('migrations')->migrate(7);
|
app->pg->migrations->from_dir('migrations')->migrate(8);
|
||||||
|
|
||||||
app->asset->process('swagg.css', 'css/swagg.css');
|
app->asset->process('swagg.css', 'css/swagg.css');
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,8 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="outer">
|
<div class="outer">
|
||||||
<footer>
|
<footer>
|
||||||
<p><%= $post_count %> visitors have signed the guestbook to date.</p>
|
<p><%= $post_count %> of <%= $visitor_count %> total visitors have
|
||||||
|
signed the guestbook to date.</p>
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user