Link scope

main
Bob Mottram 2020-06-25 23:15:01 +01:00
parent 26ffccdeab
commit 4064a317bc
1 changed files with 27 additions and 27 deletions

View File

@ -1910,15 +1910,15 @@ def htmlNewPost(mediaInstance: bool, translate: {},
questionOptionOnDropdown = '' questionOptionOnDropdown = ''
if not replyStr: if not replyStr:
shareOptionOnDropdown = \ shareOptionOnDropdown = \
' <li><a href="' + pathBase + \ ' <a href="' + pathBase + \
'/newshare"><img loading="lazy" alt="" title="" src="/' + \ '/newshare"><li><img loading="lazy" alt="" title="" src="/' + \
iconsDir + '/scope_share.png"/><b>' + translate['Shares'] + \ iconsDir + '/scope_share.png"/><b>' + translate['Shares'] + \
'</b><br>' + translate['Describe a shared item'] + '</a></li>\n' '</b><br>' + translate['Describe a shared item'] + '</li></a>\n'
questionOptionOnDropdown = \ questionOptionOnDropdown = \
' <li><a href="' + pathBase + \ ' <a href="' + pathBase + \
'/newquestion"><img loading="lazy" alt="" title="" src="/' + \ '/newquestion"><li><img loading="lazy" alt="" title="" src="/' + \
iconsDir + '/scope_question.png"/><b>' + translate['Question'] + \ iconsDir + '/scope_question.png"/><b>' + translate['Question'] + \
'</b><br>' + translate['Ask a question'] + '</a></li>\n' '</b><br>' + translate['Ask a question'] + '</li></a>\n'
mentionsStr = '' mentionsStr = ''
for m in mentions: for m in mentions:
@ -1991,47 +1991,47 @@ def htmlNewPost(mediaInstance: bool, translate: {},
dropDownContent += "class='dropdown-menutoggle'>\n" dropDownContent += "class='dropdown-menutoggle'>\n"
if showPublicOnDropdown: if showPublicOnDropdown:
dropDownContent += " <li>" \ dropDownContent += " " \
'<a href="' + pathBase + dropdownNewPostSuffix + \ '<a href="' + pathBase + dropdownNewPostSuffix + \
'"><img loading="lazy" alt="" title="" src="/' + \ '"><li><img loading="lazy" alt="" title="" src="/' + \
iconsDir + '/scope_public.png"/><b>' + \ iconsDir + '/scope_public.png"/><b>' + \
translate['Public'] + '</b><br>' + \ translate['Public'] + '</b><br>' + \
translate['Visible to anyone'] + '</a></li>\n' translate['Visible to anyone'] + '</li></a>\n'
dropDownContent += " <li>" \ dropDownContent += " " \
'<a href="' + pathBase + dropdownNewBlogSuffix + \ '<a href="' + pathBase + dropdownNewBlogSuffix + \
'"><img loading="lazy" alt="" title="" src="/' + \ '"><li><img loading="lazy" alt="" title="" src="/' + \
iconsDir + '/edit.png"/><b>' + \ iconsDir + '/edit.png"/><b>' + \
translate['Blog'] + '</b><br>' + \ translate['Blog'] + '</b><br>' + \
translate['Publicly visible post'] + '</a></li>\n' translate['Publicly visible post'] + '</li></a>\n'
dropDownContent += " <li>" \ dropDownContent += " " \
'<a href="' + pathBase + dropdownUnlistedSuffix + \ '<a href="' + pathBase + dropdownUnlistedSuffix + \
'"><img loading="lazy" alt="" title="" src="/' + \ '"><li><img loading="lazy" alt="" title="" src="/' + \
iconsDir+'/scope_unlisted.png"/><b>' + \ iconsDir+'/scope_unlisted.png"/><b>' + \
translate['Unlisted'] + '</b><br>' + \ translate['Unlisted'] + '</b><br>' + \
translate['Not on public timeline'] + '</a></li>\n' translate['Not on public timeline'] + '</li></a>\n'
dropDownContent += " <li>" \ dropDownContent += " " \
'<a href="' + pathBase + dropdownFollowersSuffix + \ '<a href="' + pathBase + dropdownFollowersSuffix + \
'"><img loading="lazy" alt="" title="" src="/' + \ '"><li><img loading="lazy" alt="" title="" src="/' + \
iconsDir + '/scope_followers.png"/><b>' + \ iconsDir + '/scope_followers.png"/><b>' + \
translate['Followers'] + '</b><br>' + \ translate['Followers'] + '</b><br>' + \
translate['Only to followers'] + '</a></li>\n' translate['Only to followers'] + '</li></a>\n'
dropDownContent += " <li>" \ dropDownContent += " " \
'<a href="' + pathBase + dropdownDMSuffix + \ '<a href="' + pathBase + dropdownDMSuffix + \
'"><img loading="lazy" alt="" title="" src="/' + \ '"><li><img loading="lazy" alt="" title="" src="/' + \
iconsDir + '/scope_dm.png"/><b>' + translate['DM'] + \ iconsDir + '/scope_dm.png"/><b>' + translate['DM'] + \
'</b><br>' + translate['Only to mentioned people'] + \ '</b><br>' + translate['Only to mentioned people'] + \
'</a></li>\n' '</li></a>\n'
dropDownContent += " <li>" \ dropDownContent += " " \
'<a href="' + pathBase + dropdownReminderSuffix + \ '<a href="' + pathBase + dropdownReminderSuffix + \
'"><img loading="lazy" alt="" title="" src="/' + \ '"><li><img loading="lazy" alt="" title="" src="/' + \
iconsDir + '/scope_reminder.png"/><b>' + translate['Reminder'] + \ iconsDir + '/scope_reminder.png"/><b>' + translate['Reminder'] + \
'</b><br>' + translate['Scheduled note to yourself'] + \ '</b><br>' + translate['Scheduled note to yourself'] + \
'</a></li>\n' '</li></a>\n'
dropDownContent += " <li>" \ dropDownContent += " " \
'<a href="' + pathBase + dropdownReportSuffix + \ '<a href="' + pathBase + dropdownReportSuffix + \
'"><img loading="lazy" alt="" title="" src="/' + iconsDir + \ '"><li><img loading="lazy" alt="" title="" src="/' + iconsDir + \
'/scope_report.png"/><b>' + translate['Report'] + \ '/scope_report.png"/><b>' + translate['Report'] + \
'</b><br>' + translate['Send to moderators'] + '</a></li>\n' '</b><br>' + translate['Send to moderators'] + '</li></a>\n'
dropDownContent += questionOptionOnDropdown + shareOptionOnDropdown dropDownContent += questionOptionOnDropdown + shareOptionOnDropdown
dropDownContent += ' </ul>\n' dropDownContent += ' </ul>\n'
dropDownContent += ' </div>\n' dropDownContent += ' </div>\n'