<% if (ctx.enableSafety && ctx.canEditPostSafety) { %>
<%= ctx.makeRadio({ name: 'safety', class: 'safety-safe', value: 'safe', selectedValue: ctx.post.safety, text: 'Safe'}) %> <%= ctx.makeRadio({ name: 'safety', class: 'safety-sketchy', value: 'sketchy', selectedValue: ctx.post.safety, text: 'Sketchy'}) %> <%= ctx.makeRadio({ name: 'safety', value: 'unsafe', selectedValue: ctx.post.safety, class: 'safety-unsafe', text: 'Unsafe'}) %>
<% } %> <% if (ctx.canEditPostRelations) { %>
<%= ctx.makeTextInput({ text: 'Relations', name: 'relations', placeholder: 'space-separated post IDs', pattern: '^[0-9 ]*$', value: ctx.post.relations.map(rel => rel.id).join(' '), }) %>
<% } %> <% if (ctx.canEditPostFlags && ctx.post.type === 'video') { %>
<%= ctx.makeCheckbox({ text: 'Loop video', name: 'loop', checked: ctx.post.flags.includes('loop'), }) %> <%= ctx.makeCheckbox({ text: 'Sound', name: 'sound', checked: ctx.post.flags.includes('sound'), }) %>
<% } %> <% if (ctx.canEditPostSource) { %>
<%= ctx.makeTextarea({ text: 'Source', value: ctx.post.source, }) %>
<% } %> <% if (ctx.canEditPostTags) { %>
<%= ctx.makeTextInput({}) %>
<% } %> <% if (ctx.canEditPoolPosts) { %>
<%= ctx.makeTextInput({}) %>
<% } %> <% if (ctx.canEditPostNotes) { %>
Add a note <%= ctx.makeTextarea({disabled: true, text: 'Content (supports Markdown)', rows: '8'}) %> Delete selected note <% if (ctx.hasClipboard) { %>
Export notes to clipboard
Import notes from clipboard <% } %>
<% } %> <% if (ctx.canEditPostContent) { %>
<% } %> <% if (ctx.canEditPostThumbnail) { %>
Discard custom thumbnail
<% } %> <% if (ctx.canFeaturePosts || ctx.canDeletePosts || ctx.canMergePosts) { %>
    <% if (ctx.canFeaturePosts) { %>
  • Feature this post on main page
  • <% } %> <% if (ctx.canMergePosts) { %>
  • Merge this post with another
  • <% } %> <% if (ctx.canDeletePosts) { %>
  • Delete this post
  • <% } %>
<% } %>