From 441be15845ade30490f47b5d0bdbf51de6224a08 Mon Sep 17 00:00:00 2001 From: jeff Date: Fri, 2 Oct 2015 11:00:26 -0400 Subject: [PATCH] add pubkey.* admin functions --- contrib/static/mod.js | 17 +++++++++++++++++ contrib/templates/default/modpage.mustache | 12 ++++++++++++ 2 files changed, 29 insertions(+) diff --git a/contrib/static/mod.js b/contrib/static/mod.js index 02128d2..b06a2b3 100644 --- a/contrib/static/mod.js +++ b/contrib/static/mod.js @@ -47,6 +47,23 @@ function get_board_target() { return e.value; } +function get_key_target() { + var e = document.getElementById("nntpchan_key_target"); + return e.value; +} + +function nntpchan_key_del() { + nntpchan_admin("pubkey.del", { + pubkey: get_key_target() + }); +} + +function nntpchan_key_add() { + nntpchan_admin("pubkey.add", { + pubkey: get_key_target() + }); +} + function nntpchan_admin_board(method) { nntpchan_admin(method, { newsgroup: get_board_target() diff --git a/contrib/templates/default/modpage.mustache b/contrib/templates/default/modpage.mustache index 634134e..0944a4b 100644 --- a/contrib/templates/default/modpage.mustache +++ b/contrib/templates/default/modpage.mustache @@ -26,6 +26,18 @@
+
+
key actions
+
+ + +
+
+ + +
+
+
board actions