Some TODOs

This commit is contained in:
swaggboi 2022-08-23 19:09:08 -04:00
parent e73170c1f2
commit 2c3faa9f2e
3 changed files with 5 additions and 0 deletions

View File

@ -135,6 +135,7 @@ group {
group {
under '/thread';
# This desperately needs clean-up
get '/:thread_id/:remark_page',
[thread_id => qr/[0-9]+/, remark_page => qr/[0-9]+/],
{remark_page => 1}, sub ($c) {

View File

@ -25,6 +25,7 @@ Run the tests locally (against development environment)
## TODOs
1. Hyperlink to remarks form
1. In remark form, show the parent thread and maybe the last reply too
1. Is there something I can do about route names?
1. I'm kinda hardcoding the single-thread view `link_to` in the
templates because I cannot for the life of me figure out how to use
@ -32,3 +33,5 @@ Run the tests locally (against development environment)
clean-up the HTML too, just used `<span>` cuz I didn't know what
else to use
1. Tests for remark form
1. Marked some items for clean up with comments
1. Method names may need to be shortened

View File

@ -37,6 +37,7 @@ sub remarks_per_page($self, $value = undef) {
$self->{'remarks_per_page'} = $value // $self->{'remarks_per_page'}
}
# Probably can clean this up too
sub create_remark(
$self,
$thread_id,