From 279c1cd47dcfc5fac90e53c119b9bbcd20062b1e Mon Sep 17 00:00:00 2001 From: swag Date: Wed, 21 Sep 2022 01:28:50 -0400 Subject: [PATCH] Various tweaks --- assets/css/PostText.css | 4 ++++ templates/list_page.html.ep | 8 ++++---- templates/post.html.ep | 6 +++++- templates/remark_id.html.ep | 2 +- templates/thread_id.html.ep | 9 +++++---- templates/thread_page.html.ep | 9 ++++++--- 6 files changed, 25 insertions(+), 13 deletions(-) diff --git a/assets/css/PostText.css b/assets/css/PostText.css index a671f73..c96f702 100644 --- a/assets/css/PostText.css +++ b/assets/css/PostText.css @@ -7,3 +7,7 @@ border-style: dotted; border-collapse: collapse; } + +.thread .id, .remark .id { + float: right; +} diff --git a/templates/list_page.html.ep b/templates/list_page.html.ep index 2eca410..c4454e4 100644 --- a/templates/list_page.html.ep +++ b/templates/list_page.html.ep @@ -4,20 +4,20 @@
<% for my $thread (@{$threads}) { =%>
- +

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

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

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

<%= $thread->{'body'} %>

- +
<% } =%>
diff --git a/templates/post.html.ep b/templates/post.html.ep index d55b45e..56098f2 100644 --- a/templates/post.html.ep +++ b/templates/post.html.ep @@ -15,7 +15,11 @@
<%= label_for title => 'Title' %> - <%= text_field 'title', maxlength => 127, minlength => 1 %> + <%= text_field title => ( + maxlength => 127, + minlength => 1, + autofocus => 'autofocus' + ) %> <% if (my $error = validation->error('title')) { =%>

Invalid title: 1 to 127 characters please.

<% } =%> diff --git a/templates/remark_id.html.ep b/templates/remark_id.html.ep index a117979..0634141 100644 --- a/templates/remark_id.html.ep +++ b/templates/remark_id.html.ep @@ -3,7 +3,7 @@

<%= title %>

- #<%= $remark->{'id'} %> +

<%= $remark->{'date'} %>

<%= $remark->{'author'} %>

<%= $remark->{'body'} %>

diff --git a/templates/thread_id.html.ep b/templates/thread_id.html.ep index 24aa034..c33057a 100644 --- a/templates/thread_id.html.ep +++ b/templates/thread_id.html.ep @@ -19,7 +19,8 @@ maxlength => 4000, minlength => 2, required => 'true', - rows => 6 + rows => 6, + autofocus => 'autofocus' ) %> <% if (my $error = validation->error('body')) { =%>

Invalid text: Up to 4,000 characters only.

@@ -30,10 +31,10 @@

Thread

- +

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

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

<%= $thread->{'author'} %>
@@ -44,7 +45,7 @@

Last Remark

- #<%= $last_remark_id %> +

<%= $last_remark->{'date'} %>

<%= $last_remark->{'author'} %>

<%= $last_remark->{'body'} %>

diff --git a/templates/thread_page.html.ep b/templates/thread_page.html.ep index 5245120..72dd288 100644 --- a/templates/thread_page.html.ep +++ b/templates/thread_page.html.ep @@ -10,23 +10,26 @@
<% if (my $first_remark = $remarks->[0]) { =%>

Remarks

<% for my $remark (@{$remarks}) { =%>
- +

<%= $remark->{'date'} %>

<%= $remark->{'author'} %>

<%= $remark->{'body'} %>

<% } =%>
+