Compare commits
No commits in common. "main" and "template_cleanup" have entirely different histories.
main
...
template_c
@ -5,6 +5,7 @@ WORKDIR /opt
|
|||||||
COPY lib/ ./lib/
|
COPY lib/ ./lib/
|
||||||
COPY migrations/ ./migrations/
|
COPY migrations/ ./migrations/
|
||||||
COPY public/ ./public/
|
COPY public/ ./public/
|
||||||
|
COPY t/ ./t/
|
||||||
COPY templates/ ./templates/
|
COPY templates/ ./templates/
|
||||||
COPY script/ ./script/
|
COPY script/ ./script/
|
||||||
COPY cpanfile .
|
COPY cpanfile .
|
||||||
|
@ -61,6 +61,7 @@ tests locally:
|
|||||||
|
|
||||||
## TODOs
|
## TODOs
|
||||||
|
|
||||||
|
- Figure out why `filter_text` is set to `0` and document that?
|
||||||
- Stop working on this and start the imageboard
|
- Stop working on this and start the imageboard
|
||||||
|
|
||||||
## AGPL-3.0+ANTIFA compliance
|
## AGPL-3.0+ANTIFA compliance
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
remarks_per_page => 5,
|
remarks_per_page => 5,
|
||||||
results_per_page => 5,
|
results_per_page => 5,
|
||||||
body_max_length => 8_000,
|
body_max_length => 8_000,
|
||||||
version => 'Feb 11 2025',
|
|
||||||
secrets => ['t0p_s3cr3t'],
|
secrets => ['t0p_s3cr3t'],
|
||||||
development => {
|
development => {
|
||||||
pg_string =>
|
pg_string =>
|
||||||
|
@ -30,8 +30,6 @@ sub startup($self) {
|
|||||||
|
|
||||||
$self->helper(hr => sub ($c) {
|
$self->helper(hr => sub ($c) {
|
||||||
state $hr = HTML::Restrict->new(
|
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,
|
filter_text => 0,
|
||||||
strip_enclosed_content => [],
|
strip_enclosed_content => [],
|
||||||
rules => {
|
rules => {
|
||||||
@ -140,14 +138,7 @@ 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
|
|
||||||
if (my $version = $self->config->{'version'}) {
|
|
||||||
$r->get('/version', sub ($c) {
|
|
||||||
$c->render(text => $version . "\n")
|
|
||||||
})->name('version_string');
|
|
||||||
}
|
|
||||||
|
|
||||||
# Static pages
|
# Static pages
|
||||||
$r->get('/about')->to('page#about')->name('about_page');
|
$r->get('/about')->to('page#about')->name('about_page');
|
||||||
|
@ -93,9 +93,6 @@
|
|||||||
<%= 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