all repos — flounder @ cc7d3feee74b827a859c04a7d993d8214c52fba5

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   {{ if .IsText }}
 7   {{ if eq .FileName "following.txt" }}
 8   <p><em>Add URLs here of feeds you would like to follow. They will be available at <a href="//{{.AuthUser.Username}}.{{.Host}}/following.gmi">following.gmi</a>. For more information, see <a href="https://admin.flounder.online/following-pages.gmi">Following Feeds</a></em></p> 
 9   {{ end}}
10   {{ if .IsGemini }}
11   <p>
12   <em>For help with the Gemini markup format, see the <a href="https://admin.flounder.online/gemini_text_guide.gmi">Gemtext Guide</a></em>
13   </p>
14   {{ end }}
15   {{ if .IsGemlog }}
16   <p>
17   <em>For information about writing a Gemlog, see <a href="https://admin.flounder.online/gemfeed.gmi">Gemini Logs and Feeds</a></em>
18   </p>
19   {{ end }}
20  <textarea rows="27" name="file_text" id="editor">{{.FileText}}</textarea>
21  {{ end }}
22  <br>
23  <input type="submit" value="Save file" class="button">
24  <a href="/my_site">Back</a>
25  <script type="text/javascript">window.setTimeout("document.getElementById('save-message').style.display='none';", 2000); </script>
26  <div id="save-message" class="alert">{{.Alert}}</div>
27  <div class="warning">
28    <p>
29   {{ range .Warnings }}
30    </p>
31    {{ . }}
32  {{ end }}
33  </div>
34</form>
35{{template "footer" .}}