all repos — flounder @ 6c98078eb024bc7a15bdcc7b33ab0314148e1134

A small site builder for the Gemini protocol

templates/edit_file.html (view raw)

 1{{template "header" .}}
 2<h2>Editing <a href="//{{.AuthUser.Username}}.{{.Host}}/{{.FileName}}">{{.FileName}}</a></h2>
 3<form id="edit-form" action="/edit/{{.FileName}}" method="POST">
 4 <label for="rename">Rename:</label>
 5   <input type="text" value="{{.FileName}}" id="rename" name="rename">
 6  <div class="warning">
 7    <p>
 8   {{ range .Warnings }}
 9    </p>
10    {{ . }}
11  {{ end }}
12  </div>
13   {{ if .IsText }}
14   {{ if .IsGemini }}
15   <p>
16   <em>For help with the Gemini markup format, see the <a href="https://admin.flounder.online/gemini_text_guide.gmi">Gemini Text Guide</a></em>
17   </p>
18   {{ end }}
19   {{ if .IsGemlog }}
20   <p>
21   <em>For information about writing a Gemlog, see <a href="https://admin.flounder.online/gemfeed.gmi">Gemini Logs and Feeds</a></em>
22   </p>
23   {{ end }}
24  <textarea rows="27" name="file_text" id="editor">{{.FileText}}</textarea>
25  {{ end }}
26  <br>
27  <input type="submit" value="Save file" class="button">
28  <a href="/my_site">Back</a>
29  <script type="text/javascript">window.setTimeout("document.getElementById('save-message').style.display='none';", 2000); </script>
30  <div id="save-message" class="alert">{{.Alert}}</div>
31</form>
32{{template "footer" .}}