Compare commits
7 Commits
template_c
...
main
Author | SHA1 | Date | |
---|---|---|---|
6683b508e4 | |||
60e4f9ffcc | |||
78fb43a6ba | |||
29dd0d862c | |||
097b67923c | |||
c3b45276a3 | |||
d775ae2ce6 |
@ -5,7 +5,6 @@ WORKDIR /opt
|
||||
COPY lib/ ./lib/
|
||||
COPY migrations/ ./migrations/
|
||||
COPY public/ ./public/
|
||||
COPY t/ ./t/
|
||||
COPY templates/ ./templates/
|
||||
COPY script/ ./script/
|
||||
COPY cpanfile .
|
||||
|
@ -61,7 +61,6 @@ tests locally:
|
||||
|
||||
## TODOs
|
||||
|
||||
- Figure out why `filter_text` is set to `0` and document that?
|
||||
- Stop working on this and start the imageboard
|
||||
|
||||
## AGPL-3.0+ANTIFA compliance
|
||||
|
@ -4,6 +4,7 @@
|
||||
remarks_per_page => 5,
|
||||
results_per_page => 5,
|
||||
body_max_length => 8_000,
|
||||
version => 'Feb 11 2025',
|
||||
secrets => ['t0p_s3cr3t'],
|
||||
development => {
|
||||
pg_string =>
|
||||
|
@ -30,6 +30,8 @@ sub startup($self) {
|
||||
|
||||
$self->helper(hr => sub ($c) {
|
||||
state $hr = HTML::Restrict->new(
|
||||
# filter_text breaks greater and less than symbols in Markdown code blocks
|
||||
# Also breaks Markdown quote blocks
|
||||
filter_text => 0,
|
||||
strip_enclosed_content => [],
|
||||
rules => {
|
||||
@ -138,7 +140,14 @@ 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 . "\n")
|
||||
})->name('version_string');
|
||||
}
|
||||
|
||||
# Static pages
|
||||
$r->get('/about')->to('page#about')->name('about_page');
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user