From e62c29462ffca04f96d1bc1db4b29c103af098a7 Mon Sep 17 00:00:00 2001 From: swaggboi Date: Wed, 24 Aug 2022 22:15:52 -0400 Subject: [PATCH] Add a hyperlink back to thread --- assets/css/PostText.css | 12 ++++++++---- templates/remark_page.html.ep | 3 +-- templates/thread_id.html.ep | 4 +++- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/assets/css/PostText.css b/assets/css/PostText.css index e26381e..a671f73 100644 --- a/assets/css/PostText.css +++ b/assets/css/PostText.css @@ -1,5 +1,9 @@ -.field-with-error {} - -.thread, .remark { - border-style: dotted; +.field-with-error { + border-style: solid; + border-color: red; +} + +.thread, .remark, .field-with-error { + border-style: dotted; + border-collapse: collapse; } diff --git a/templates/remark_page.html.ep b/templates/remark_page.html.ep index 2531acd..3175d60 100644 --- a/templates/remark_page.html.ep +++ b/templates/remark_page.html.ep @@ -25,9 +25,8 @@ <% } =%> <% } =%> diff --git a/templates/thread_id.html.ep b/templates/thread_id.html.ep index ff5a8ed..164e7bf 100644 --- a/templates/thread_id.html.ep +++ b/templates/thread_id.html.ep @@ -3,7 +3,9 @@

<%= title %>

- #<%= %$thread{'id'} %> + + <%= link_to "#$thread->{'id'}", remark_page => {thread_id => $thread->{'id'}} %> +

<%= %$thread{'title'} %>

<%= %$thread{'date'} %>

<%= %$thread{'author'} %>