Add settings page
[bloat] / templates / postform.tmpl
index ea93efad9cce655e44d1ef56ede80e23e9a130ed..a79f86bd50c45e1c791db26fbe3704320c877361 100644 (file)
@@ -5,12 +5,23 @@
        {{else}}
        <label for="post-content"> New post </label>
        {{end}}
+       <a class="post-form-emoji-link" href="/emojis" target="_blank">
+               <i class="fa fa-smile-o" title="emoji reference"></i>
+       </a>
        <div class="post-form-content-container">
                <textarea id="post-content" name="content" class="post-content" cols="50" rows="5">{{if .ReplyContext}}{{.ReplyContext.ReplyContent}}{{end}}</textarea>
        </div>
        <div>
+               {{if gt (len .Formats) 0}}
                <span class="post-form-field">
-                       <label for="post-visilibity"> Visibility </label>
+                       <label for="post-format"> Format </label>
+                       <select id="post-format" name="format">
+                               {{range .Formats}} <option value="{{.Type}}">{{.Name}}</option> {{end}}
+                       </select>
+               </span>
+               {{end}}
+               <span class="post-form-field">
+                       <label for="post-visilibity"> Scope </label>
                        <select id="post-visilibity" name="visibility">
                                <option value="public" {{if eq .DefaultVisibility "public"}}selected{{end}}>Public</option>
                                <option value="unlisted" {{if eq .DefaultVisibility "unlisted"}}selected{{end}}>Unlisted</option>