diff --git a/client/html/post_edit_sidebar.tpl b/client/html/post_edit_sidebar.tpl index a66a375f..78e90aab 100644 --- a/client/html/post_edit_sidebar.tpl +++ b/client/html/post_edit_sidebar.tpl @@ -58,6 +58,16 @@ <% } %> + <% if (ctx.canEditPostSource) { %> +
+ <%= ctx.makeTextInput({ + text: 'Source', + name: 'source', + value: ctx.post.source, + }) %> +
+ <% } %> + <% if (ctx.canEditPostTags) { %>
<%= ctx.makeTextInput({}) %> diff --git a/client/html/post_readonly_sidebar.tpl b/client/html/post_readonly_sidebar.tpl index 401ce209..78e92fb8 100644 --- a/client/html/post_readonly_sidebar.tpl +++ b/client/html/post_readonly_sidebar.tpl @@ -38,6 +38,14 @@ both
+ <% if (ctx.post.source) { %> +
+ Source: + <%- ctx.post.prettyPrintSource() %> + +
+ <% } %> +