Peertube and youtube settings in same section

merge-requests/21/head
Bob Mottram 2021-03-06 13:04:28 +00:00
parent f351cbfe7e
commit 10cfb9e686
1 changed files with 10 additions and 11 deletions

View File

@ -1399,6 +1399,15 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str,
' <textarea id="message" name="ptInstances" ' + \
'style="height:200px" spellcheck="false">' + \
peertubeInstancesStr + '</textarea>\n'
peertubeStr += \
' <br><b><label class="labels">' + \
translate['YouTube Replacement Domain'] + '</label></b>\n'
YTReplacementDomain = getConfigParam(baseDir, "youtubedomain")
if not YTReplacementDomain:
YTReplacementDomain = ''
peertubeStr += \
' <input type="text" name="ytdomain" value="' + \
YTReplacementDomain + '">\n'
peertubeStr += ' </div>\n'
instanceTitle = \
@ -1639,7 +1648,7 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str,
' <input type="text" name="passwordconfirm" value="">\n'
editProfileForm += ' </div>\n'
# Content controls
# Filtering and blocking section
editProfileForm += ' <div class="container">\n'
editProfileForm += \
' <b><label class="labels">' + \
@ -1712,16 +1721,6 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str,
'style="height:100px" spellcheck="false">' + \
gitProjectsStr + '</textarea>\n'
editProfileForm += \
' <br><b><label class="labels">' + \
translate['YouTube Replacement Domain'] + '</label></b>\n'
YTReplacementDomain = getConfigParam(baseDir, "youtubedomain")
if not YTReplacementDomain:
YTReplacementDomain = ''
editProfileForm += \
' <input type="text" name="ytdomain" value="' + \
YTReplacementDomain + '">\n'
editProfileForm += ' </div>\n'
editProfileForm += ' <div class="container">\n'
editProfileForm += \