all repos — flounder @ c5bd236ad413ba79eb8d7b318e00a3baa1dff78d

A small site builder for the Gemini protocol

Move warnings to the bottom of page
alex wennerberg alex@alexwennerberg.com
Sun, 24 Jan 2021 22:40:15 -0800
commit

c5bd236ad413ba79eb8d7b318e00a3baa1dff78d

parent

646872f120abe310670252db919aaca54c7d17aa

1 files changed, 7 insertions(+), 7 deletions(-)

jump to
M templates/edit_file.htmltemplates/edit_file.html

@@ -3,13 +3,6 @@ <h2>Editing <a href="//{{.AuthUser.Username}}.{{.Host}}/{{.FileName}}">{{.FileName}}</a></h2>

<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 @@ <br>

<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" .}}