flounder

A simple gemini site builder
Log | Files | Refs | README | LICENSE

commit c5bd236ad413ba79eb8d7b318e00a3baa1dff78d
parent 646872f120abe310670252db919aaca54c7d17aa
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sun, 24 Jan 2021 22:40:15 -0800

Move warnings to the bottom of page

Diffstat:
Mtemplates/edit_file.html | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/templates/edit_file.html b/templates/edit_file.html @@ -3,13 +3,6 @@ <form id="edit-form" action="/edit/{{.FileName}}" method="POST"> <label for="rename">Rename:</label> <input type="text" value="{{.FileName}}" id="rename" name="rename"> - <div class="warning"> - <p> - {{ range .Warnings }} - </p> - {{ . }} - {{ end }} - </div> {{ if .IsText }} {{ if .IsGemini }} <p> @@ -27,6 +20,13 @@ <input type="submit" value="Save file" class="button"> <a href="/my_site">Back</a> <script type="text/javascript">window.setTimeout("document.getElementById('save-message').style.display='none';", 2000); </script> + <div class="warning"> + <p> + {{ range .Warnings }} + </p> + {{ . }} + {{ end }} + </div> <div id="save-message" class="alert">{{.Alert}}</div> </form> {{template "footer" .}}