From fcc6330b1935da1221f5d00b17edffe36bf512cd Mon Sep 17 00:00:00 2001 From: Yanislav Igonin Date: Mon, 4 Oct 2021 19:49:44 +0300 Subject: [PATCH] feat: make form responsible for different screens --- templates/templates.html | 73 +++++++++++++++++++++------------------- 1 file changed, 38 insertions(+), 35 deletions(-) diff --git a/templates/templates.html b/templates/templates.html index 72cf211..4d1c23f 100644 --- a/templates/templates.html +++ b/templates/templates.html @@ -64,47 +64,50 @@ {{ end }} {{ define "post-form" }} -
- - {{ if eq .FirstPostID 0 }} -
- {{ else }} - - {{ end }} +
+
{{ if eq .FirstPostID 0 }} - + + {{ else }} + {{ end }} - - - -
- Captcha -
- - - -
- {{ if ne .FirstPostID 0 }} -
- - -
+ {{ if eq .FirstPostID 0 }} + {{ end }} -
- + + + +
+ Captcha
-
- + + + +
+ {{ if ne .FirstPostID 0 }} +
+ + +
+ {{ end }} + +
+ +
+
+ +
+
{{ end }} \ No newline at end of file