Add link to the new_session route; add name for version_string route

This commit is contained in:
swagg boi 2025-02-11 17:00:10 -05:00
parent 097b67923c
commit 29dd0d862c
2 changed files with 5 additions and 2 deletions

View File

@ -140,13 +140,13 @@ sub startup($self) {
$c->session(expires => 1);
$c->redirect_to('threads_list');
});
})->name('new_session');
# Hide a version string to check build later
if (my $version = $self->config->{'version'}) {
$r->get('/version', sub ($c) {
$c->render(text => $version)
});
})->name('version_string');
}
# Static pages

View File

@ -93,6 +93,9 @@
<%= content =%>
<footer class="site-footer">
<p>In UTF-8 we trust. 🫡</p>
<p><%= link_to new_session => begin %>
New Session/Identity
<% end %></p>
<p><%= link_to javascript_page =>
('data-jslicense', 1),
begin %>JavaScript License Information<% end %></p>