Add link to the new_session route; add name for version_string route
This commit is contained in:
parent
097b67923c
commit
29dd0d862c
@ -140,13 +140,13 @@ sub startup($self) {
|
|||||||
$c->session(expires => 1);
|
$c->session(expires => 1);
|
||||||
|
|
||||||
$c->redirect_to('threads_list');
|
$c->redirect_to('threads_list');
|
||||||
});
|
})->name('new_session');
|
||||||
|
|
||||||
# Hide a version string to check build later
|
# Hide a version string to check build later
|
||||||
if (my $version = $self->config->{'version'}) {
|
if (my $version = $self->config->{'version'}) {
|
||||||
$r->get('/version', sub ($c) {
|
$r->get('/version', sub ($c) {
|
||||||
$c->render(text => $version)
|
$c->render(text => $version)
|
||||||
});
|
})->name('version_string');
|
||||||
}
|
}
|
||||||
|
|
||||||
# Static pages
|
# Static pages
|
||||||
|
@ -93,6 +93,9 @@
|
|||||||
<%= content =%>
|
<%= content =%>
|
||||||
<footer class="site-footer">
|
<footer class="site-footer">
|
||||||
<p>In UTF-8 we trust. 🫡</p>
|
<p>In UTF-8 we trust. 🫡</p>
|
||||||
|
<p><%= link_to new_session => begin %>
|
||||||
|
New Session/Identity
|
||||||
|
<% end %></p>
|
||||||
<p><%= link_to javascript_page =>
|
<p><%= link_to javascript_page =>
|
||||||
('data-jslicense', 1),
|
('data-jslicense', 1),
|
||||||
begin %>JavaScript License Information<% end %></p>
|
begin %>JavaScript License Information<% end %></p>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user