From 41675a63fc2baaf5a85a0da48c15869ea5566ed7 Mon Sep 17 00:00:00 2001 From: Yanislav Igonin Date: Sat, 4 Sep 2021 21:46:27 +0300 Subject: [PATCH] feat: add simple form for thread creating --- templates/index.html | 43 ++++++++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/templates/index.html b/templates/index.html index 5d49d6b..04331b0 100644 --- a/templates/index.html +++ b/templates/index.html @@ -44,31 +44,36 @@

Welcome to Micrach

-
- - {{range $Post := .}} -
-
+
+ + + +
+ +
+ {{range $Post := .}} +
+
- {{ $length := len $Post.Files }} {{ if gt $length 0 }} - {{$FirstFile := index $Post.Files 0}} - Uploaded picture - {{end}} + {{ $length := len $Post.Files }} {{ if gt $length 0 }} + {{$FirstFile := index $Post.Files 0}} + Uploaded picture + {{end}} -
-
{{$Post.Title}}
-

{{$Post.Text}}

- Open -
+
+
{{$Post.Title}}
+

{{$Post.Text}}

+ Open
- +
{{end}}
+