flounder

A simple gemini site builder
git clone git://git.alexwennerberg.com/flounder
Log | Files | Refs | README | LICENSE

edit_file.html (1192B) - 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 .IsGemini }}
      8       <p>
      9    <em>For help with the Gemini markup format, see the <a href="https://admin.flounder.online/gemini_text_guide.gmi">Gemtext Guide</a></em>
     10    </p>
     11    {{ end }}
     12    {{ if .IsGemlog }}
     13    <p>
     14    <em>For information about writing a Gemlog, see <a href="https://admin.flounder.online/gemfeed.gmi">Gemini Logs and Feeds</a></em>
     15    </p>
     16    {{ end }}
     17   <textarea rows="24" name="file_text" id="editor">{{.FileText}}</textarea>
     18   {{ end }}
     19   <br>
     20   <input type="submit" value="Save file" class="button">
     21   <a href="/my_site">Back</a>
     22   <script type="text/javascript">window.setTimeout("document.getElementById('save-message').style.display='none';", 2000); </script>
     23   <div id="save-message" class="alert">{{.Alert}}</div>
     24   <div class="warning">
     25     <p>
     26    {{ range .Warnings }}
     27     </p>
     28     {{ . }}
     29   {{ end }}
     30   </div>
     31 </form> 
     32 
     33 {{template "footer" .}}