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