2015-12-23 05:02:11 +05:00
|
|
|
{{!
|
|
|
|
modpage.mustache -- the moderator panel when logged in
|
|
|
|
template parameters:
|
|
|
|
- prefix ( the site's prefix )
|
|
|
|
}}
|
2015-12-23 05:33:03 +05:00
|
|
|
<!doctype html><html><head>
|
2015-12-23 07:25:52 +05:00
|
|
|
<link rel="stylesheet" href="{{prefix}}static/chen-chan/main.css">
|
2015-12-23 05:02:11 +05:00
|
|
|
<!-- yes it uses js -->
|
2015-12-23 05:33:03 +05:00
|
|
|
<script src="{{prefix}}static/mod.js"></script>
|
|
|
|
<title>nntpchan mod page</title>
|
|
|
|
</head><body>
|
|
|
|
<dl>
|
|
|
|
<dt>post actions</dt>
|
|
|
|
<dd>
|
2015-12-23 05:02:11 +05:00
|
|
|
<div>
|
|
|
|
<label for="nntpchan_mod_target">target</label>
|
2015-12-23 05:33:03 +05:00
|
|
|
<input id="nntpchan_mod_target" type="text">
|
2015-12-23 05:02:11 +05:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<button onclick="nntpchan_ban()">ban (url)</button>
|
|
|
|
<button onclick="nntpchan_delete()">delete (url)</button>
|
|
|
|
<button onclick="nntpchan_unban()">unban (ip)</button>
|
|
|
|
</div>
|
2015-12-23 05:33:03 +05:00
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
<dl>
|
|
|
|
<dt>key actions</dt>
|
|
|
|
<dd>
|
2015-12-23 05:02:11 +05:00
|
|
|
<div>
|
|
|
|
<label for="nntpchan_board_target">pubkey:</label>
|
|
|
|
<input type="text" id="nntpchan_key_target" />
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<button onclick="nntpchan_key_add()">add key</button>
|
|
|
|
<button onclick="nntpchan_key_del()">remove key</button>
|
|
|
|
</div>
|
2015-12-23 05:33:03 +05:00
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
<dl>
|
|
|
|
<dt>board actions</dt>
|
|
|
|
<dd>
|
2015-12-23 05:02:11 +05:00
|
|
|
<div>
|
|
|
|
<label for="nntpchan_board_target">board name:</label>
|
2015-12-23 05:33:03 +05:00
|
|
|
<input type="text" id="nntpchan_board_target">
|
2015-12-23 05:02:11 +05:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<button onclick="nntpchan_admin_board('frontend.add')">add board</button>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<button onclick="nntpchan_admin_board('frontend.regen')">regenerate</button>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<button onclick="nntpchan_admin_board('frontend.ban')">ban</button>
|
|
|
|
<button onclick="nntpchan_admin_board('frontend.unban')">unban</button>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<button onclick="nntpchan_admin_board('frontend.nuke')">nuke</button>
|
|
|
|
</div>
|
2015-12-23 05:33:03 +05:00
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
<dl>
|
|
|
|
<dt>lightweight actions</dt>
|
|
|
|
<dd>
|
|
|
|
<button onclick="nntpchan_admin('template.reload')">reload all templates</button>
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
<dl>
|
|
|
|
<dt>very load heavy actions, use with care</dt>
|
|
|
|
<dd>
|
2015-12-23 05:02:11 +05:00
|
|
|
<div>
|
|
|
|
<button onclick="nntpchan_admin('frontend.regen')">regenerate all pages</button>
|
|
|
|
<button onclick="nntpchan_admin('thumbnail.regen')">regenerate all thumbnails</button>
|
|
|
|
</div>
|
2015-12-23 05:33:03 +05:00
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
<dl>
|
|
|
|
<dt>status</dt>
|
|
|
|
<dd>
|
|
|
|
<div id="nntpchan_mod_result"></div>
|
|
|
|
<noscript>
|
|
|
|
<b>enable js to use the mod panel kthx</b>
|
|
|
|
</noscript>
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
</body></html>
|