diff --git a/contrib/static/about.mp3 b/contrib/static/about.mp3 new file mode 100644 index 0000000..0109f0b Binary files /dev/null and b/contrib/static/about.mp3 differ diff --git a/contrib/static/faq.html b/contrib/static/faq.html index 3bcfd64..e542570 100644 --- a/contrib/static/faq.html +++ b/contrib/static/faq.html @@ -43,5 +43,9 @@


+ diff --git a/contrib/static/fieri.png b/contrib/static/fieri.png new file mode 100644 index 0000000..94d1f85 Binary files /dev/null and b/contrib/static/fieri.png differ diff --git a/contrib/static/mod.js b/contrib/static/mod.js index 8388235..b06a2b3 100644 --- a/contrib/static/mod.js +++ b/contrib/static/mod.js @@ -42,6 +42,34 @@ function nntpchan_unban() { }) } +function get_board_target() { + var e = document.getElementById("nntpchan_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() + }) +} + function nntpchan_admin(method, param) { nntpchan_mod({ name:"admin", @@ -54,7 +82,9 @@ function nntpchan_admin(method, param) { } else { return "nothing happened?"; } - } + }, + method: ( param && "POST" ) || "GET", + data: param }) } @@ -145,7 +175,13 @@ function nntpchan_mod(mod_action) { if (mod_action.name) { var url = mod_action.name + "/" + target; ajax.open(mod_action.method || "GET", url); - ajax.send(); + var data = mod_action.data; + if (data) { + ajax.setRequestHeader("Content-type","text/json"); + ajax.send(JSON.stringify(data)); + } else { + ajax.send(); + } } else { alert("mod action has no name"); } diff --git a/contrib/static/site.css b/contrib/static/site.css index a0393e9..ac8e45c 100644 --- a/contrib/static/site.css +++ b/contrib/static/site.css @@ -43,6 +43,10 @@ textarea { padding: 10px 10px; } +pre > p { + display: block-inline; +} + .reply, th, .ukko_thread_header { background: #202331; } @@ -242,4 +246,8 @@ html { margin-left: 20%; width: 50%; padding: 10px; +} + +#captcha_img { + background: grey; } \ No newline at end of file diff --git a/contrib/templates/default/frontpage.mustache b/contrib/templates/default/frontpage.mustache index c04a431..ad82948 100644 --- a/contrib/templates/default/frontpage.mustache +++ b/contrib/templates/default/frontpage.mustache @@ -19,7 +19,7 @@

{{frontend}} on nntpchan

View the overboard

Read the FAQ

-

Join the IRC

+

Join the IRC

Fork on github: frontend and core

We've Had {{totalposts}} Posts Since August 01 2015

diff --git a/contrib/templates/default/modpage.mustache b/contrib/templates/default/modpage.mustache index 6ad8161..0944a4b 100644 --- a/contrib/templates/default/modpage.mustache +++ b/contrib/templates/default/modpage.mustache @@ -25,8 +25,52 @@ +
- +
key actions
+
+ + +
+
+ + +
+
+
+
+
board actions
+
+ + +
+
+ +
+
+ + +
+
+ +
+
+
+
+
+ lightweight actions +
+
+ +
+
+
+
+ +
+ + +