Show current scope

merge-requests/8/head
Bob Mottram 2020-11-04 12:27:13 +00:00
parent fc58a2f977
commit 0b766fdbe5
1 changed files with 7 additions and 3 deletions

View File

@ -2413,7 +2413,8 @@ def htmlSuspended(cssCache: {}, baseDir: str) -> str:
return suspendedForm return suspendedForm
def htmlNewPostDropDown(replyStr: str, def htmlNewPostDropDown(scopeIcon: str, scopeDescription: str,
replyStr: str,
translate: {}, translate: {},
iconsDir: str, iconsDir: str,
showPublicOnDropdown: bool, showPublicOnDropdown: bool,
@ -2434,7 +2435,9 @@ def htmlNewPostDropDown(replyStr: str,
'id="my-newPostDropdown" value="" name="my-checkbox">\n' 'id="my-newPostDropdown" value="" name="my-checkbox">\n'
dropDownContent += ' <label for="my-newPostDropdown"\n' dropDownContent += ' <label for="my-newPostDropdown"\n'
dropDownContent += ' data-toggle="newPostDropdown">\n' dropDownContent += ' data-toggle="newPostDropdown">\n'
dropDownContent += ' Choose one\n' dropDownContent += ' <img loading="lazy" alt="" title="" src="/' + \
iconsDir + '/' + scopeIcon + '"/><b>' + \
scopeDescription + '</b>\n'
dropDownContent += ' </label>\n' dropDownContent += ' </label>\n'
dropDownContent += ' <ul>\n' dropDownContent += ' <ul>\n'
@ -3049,7 +3052,8 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
dropDownContent += '</div>\n' dropDownContent += '</div>\n'
dropDownContent = \ dropDownContent = \
htmlNewPostDropDown(replyStr, htmlNewPostDropDown(scopeIcon, scopeDescription,
replyStr,
translate, translate,
iconsDir, iconsDir,
showPublicOnDropdown, showPublicOnDropdown,