diff --git a/gulp/res/js/captchaformsection.js b/gulp/res/js/captchaformsection.js index f46327d2..0ad155ce 100644 --- a/gulp/res/js/captchaformsection.js +++ b/gulp/res/js/captchaformsection.js @@ -3,7 +3,7 @@ function pug_escape(e){var a=""+e,t=pug_match_html.exec(a);if(!t)return e;var r, var pug_match_html=/["&<>]/;function captchaformsection(locals) {var pug_html = "", pug_mixins = {}, pug_interp;; var locals_for_with = (locals || {}); - (function (captchaGridSize, captchaType, googleRecaptchaSiteKey) { + (function (captchaGridSize, captchaType, googleRecaptchaSiteKey, minimal) { pug_mixins["captchaexpand"] = pug_interp = function(){ var block = (this && this.block), attributes = (this && this.attributes) || {}; pug_html = pug_html + "\u003Cdetails class=\"row label mr-0\"\u003E\u003Csummary class=\"pv-5\"\u003ECaptcha\u003Cspan class=\"required\"\u003E*\u003C\u002Fspan\u003E\u003C\u002Fsummary\u003E"; @@ -15,7 +15,10 @@ case 'text': pug_html = pug_html + "\u003Cnoscript class=\"no-m-p\"\u003E\u003Ciframe" + (" class=\"captcha\""+" src=\"\u002Fcaptcha.html\""+pug_attr("width=210", true, true, false)+" height=\"80\" scrolling=\"no\" loading=\"lazy\"") + "\u003E\u003C\u002Fiframe\u003E\u003C\u002Fnoscript\u003E\u003Cdiv class=\"jsonly captcha\" style=\"display:none;\"\u003E\u003C\u002Fdiv\u003E\u003Cinput" + (" class=\"captchafield\""+" type=\"text\" name=\"captcha\" autocomplete=\"off\" placeholder=\"Captcha text\" pattern=\".{6}\""+pug_attr("required", true, true, false)+" title=\"6 characters\"") + "\u002F\u003E"; break; case 'grid': -pug_html = pug_html + "\u003Ca class=\"text-center\" href=\"\u002Ffaq.html#captcha\"\u003EInstructions\u003C\u002Fa\u003E\u003Cdiv class=\"catalog\"\u003E\u003Cnoscript class=\"no-m-p\"\u003E\u003Ciframe class=\"captcha\" src=\"\u002Fcaptcha.html\" width=\"150\" height=\"150\" scrolling=\"no\" loading=\"lazy\"\u003E\u003C\u002Fiframe\u003E\u003C\u002Fnoscript\u003E\u003Cdiv class=\"jsonly captcha\" style=\"display:none\"\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"captchafield noselect\"\u003E"; +if (!(minimal)) { +pug_html = pug_html + "\u003Ca class=\"text-center\" href=\"\u002Ffaq.html#captcha\"\u003EInstructions\u003C\u002Fa\u003E"; +} +pug_html = pug_html + "\u003Cdiv class=\"catalog\"\u003E\u003Cnoscript class=\"no-m-p\"\u003E\u003Ciframe class=\"captcha\" src=\"\u002Fcaptcha.html\" width=\"150\" height=\"150\" scrolling=\"no\" loading=\"lazy\"\u003E\u003C\u002Fiframe\u003E\u003C\u002Fnoscript\u003E\u003Cdiv class=\"jsonly captcha\" style=\"display:none\"\u003E\u003C\u002Fdiv\u003E\u003Cdiv class=\"captchafield noselect\"\u003E"; for(let i = 0; i < captchaGridSize**2; i++) { pug_html = pug_html + "\u003Clabel class=\"captchachecklabel\"\u003E\u003Cinput" + (" type=\"checkbox\" name=\"captcha\""+pug_attr("value", i, true, false)) + "\u002F\u003E\u003Cspan class=\"captchacheckbox\"\u003E\u003C\u002Fspan\u003E\u003C\u002Flabel\u003E"; } @@ -31,5 +34,7 @@ pug_mixins["captchaexpand"](); locals_for_with.captchaType : typeof captchaType !== 'undefined' ? captchaType : undefined, "googleRecaptchaSiteKey" in locals_for_with ? locals_for_with.googleRecaptchaSiteKey : - typeof googleRecaptchaSiteKey !== 'undefined' ? googleRecaptchaSiteKey : undefined)); + typeof googleRecaptchaSiteKey !== 'undefined' ? googleRecaptchaSiteKey : undefined, "minimal" in locals_for_with ? + locals_for_with.minimal : + typeof minimal !== 'undefined' ? minimal : undefined)); ;;return pug_html;} \ No newline at end of file diff --git a/views/pages/account.pug b/views/pages/account.pug index d76a5393..f2669af2 100644 --- a/views/pages/account.pug +++ b/views/pages/account.pug @@ -12,7 +12,24 @@ block content h4.no-m-p General: ul if user.authLevel <= 1 - li: a(href='/globalmanage/recent.html') Global management + li + a(href='/globalmanage/recent.html') Global management + | - + a(href=`/globalmanage/reports.html`) Reports + | , + a(href=`/globalmanage/bans.html`) Bans + | , + a(href=`/globalmanage/recent.html`) Recent + | , + a(href=`/globalmanage/boards.html`) Boards + | , + a(href=`/globalmanage/globallogs.html`) Logs + | , + a(href=`/globalmanage/accounts.html`) Accounts + | , + a(href=`/globalmanage/news.html`) News + | , + a(href=`/globalmanage/settings.html`) Settings if enableUserBoardCreation || user.authLevel <= 1 li: a(href='/create.html') Create a board if !enableUserAccountCreation && user.authLevel <= 1