From edc7a19bb01b54ace7b1827795b96be81b1c0617 Mon Sep 17 00:00:00 2001 From: swaggboi Date: Tue, 23 Aug 2022 20:05:07 -0400 Subject: [PATCH] Clean up this template a lil --- templates/post_remark.html.ep | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/templates/post_remark.html.ep b/templates/post_remark.html.ep index 32c08ff..ad7a6ac 100644 --- a/templates/post_remark.html.ep +++ b/templates/post_remark.html.ep @@ -1,23 +1,21 @@ % layout 'main'; % title 'New Remark';

<%= title %>

-<% if (my $thread_body = %$thread{'body'}) { =%> -
-
- #<%= %$thread{'id'} %> -

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

-

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

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

<%= $thread_body %>

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

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

+

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

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

<%= $thread_body %>

+
+
<%= label_for name => 'Author' %> <%= text_field name =>'Anonymous', maxlength => 63, minlength => 1 %> <% if (my $error = validation->error('name')) { =%> -

Invalid name: 1 to 63 characters please.

+

Invalid name: 1 to 63 characters please.

<% } =%>
@@ -29,7 +27,7 @@ rows => 6 ) %> <% if (my $error = validation->error('post')) { =%> -

Invalid post: Up to 4,000 characters only.

+

Invalid post: Up to 4,000 characters only.

<% } =%>
<%= submit_button 'Post', class => 'post button' %>