From be86cfc5be2dd7f036661c3ccf6a21c0b80ae03f Mon Sep 17 00:00:00 2001 From: gasoved <gasoved@gmail.com> Date: Thu, 28 Jan 2021 22:18:56 +0300 Subject: [PATCH] feat: add post diff remove button --- templates/partials/modals/post_history.tpl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/templates/partials/modals/post_history.tpl b/templates/partials/modals/post_history.tpl index 25d13c0..6a2ac6e 100644 --- a/templates/partials/modals/post_history.tpl +++ b/templates/partials/modals/post_history.tpl @@ -24,7 +24,13 @@ {{{ if editable }}} <button class="btn btn-primary" data-action="restore">[[topic:diffs.restore]]</button> + {{{ end }}} + {{{ if deletable }}} + <button class="btn btn-danger" data-action="delete">[[topic:diffs.delete]]</button> + {{{ end }}} + {{{ if editable }}} <p class="help-block">[[topic:diffs.restore-description]]</p> {{{ end }}} + </div> -<!-- END --> \ No newline at end of file +<!-- END -->