From ee36f2391b2d3620fc7b56bfcb7a650146be9c65 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sat, 27 Aug 2022 04:21:51 +0400 Subject: [PATCH] Removed email field from a form and from posts. --- homepage/views/guestbook.pug | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/homepage/views/guestbook.pug b/homepage/views/guestbook.pug index 4253e81..ad685dd 100644 --- a/homepage/views/guestbook.pug +++ b/homepage/views/guestbook.pug @@ -21,29 +21,25 @@ block nav block content form#new-post(action='/guestbook', method='POST') input(type='text' maxlength='80' placeholder='Name (Anonymous if left blank)' name='name') - input(type='text' maxlength='255' placeholder='E-Mail (optional)' name='email') input(type='text' maxlength='255' placeholder='Website (optional)' name='website') textarea(maxlength='4096' placeholder='Your message' name='message' required) span.checkboxes - span.checkbox - input(type='checkbox' id='hide-email' name='hide_email' checked) - label(for='hide-email') Hide E-Mail* span.checkbox input(type='checkbox' id='hide-website' name='hide_website' checked) label(for='hide-website') Hide website* + small *Only I can see if set. span.captcha input(type='hidden', name='captcha_id' value=captcha_id) img(src='/captcha/'+captcha_id+'/image', alt="CAPTCHA" width='160' height='40') input(type='text' maxlength='6' placeholder='CAPTCHA' name='captcha_answer' required) small Valid for #[b 10] minutes. - small *Only I can see if set. input(type='submit' value='Send a post') section#posts if (posts) each post in posts article header - | Posted by #[span.highlighted= post.name] #{post.email} #{post.website} on #[time(datetime=post.created)= date_(post.created, tz)] + | Posted by #[span.highlighted= post.name] #{post.website} on #[time(datetime=post.created)= date_(post.created, tz)] each line in post.message.split("\n") +entryLine(line) if post.feedback