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' %>