diff --git a/README.md b/README.md index ca7c147..1fa049b 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,7 @@ Run the tests locally (against development environment): ### (Lord knows there's TODOs I could be working on...) +1. Support at least some Markdown, specifically the code blocks 1. RSS feed!! 1. Return a text response instead of HTML if a `.txt` extension [is requested](https://docs.mojolicious.org/Mojolicious/Plugin/DefaultHelpers#respond_to) diff --git a/lib/PostText/Controller/Thread.pm b/lib/PostText/Controller/Thread.pm index b798ef9..f6cc724 100644 --- a/lib/PostText/Controller/Thread.pm +++ b/lib/PostText/Controller/Thread.pm @@ -91,7 +91,9 @@ sub bump($self) { $self->thread->bump($thread_id); $self->flash(info => "Thread #$thread_id has been bumped.🔝"); - $self->redirect_to('threads_list'); + $self->redirect_to( + $self->url_for('threads_list')->fragment('info')->to_abs + ); } 1; diff --git a/templates/layouts/main.html.ep b/templates/layouts/main.html.ep index e09badc..3ed4baf 100644 --- a/templates/layouts/main.html.ep +++ b/templates/layouts/main.html.ep @@ -5,18 +5,18 @@ <%= asset 'main.css' %> -<% if (flash 'info') { =%> -

<%= flash 'info' %>

-<% } =%>

Post::Text


+<% if (flash 'info') { =%> +

<%= flash 'info' %>

+<% } =%> <%= content =%>