mirror of https://gitlab.com/bashrc2/epicyon
Combine instance settings
parent
2463a96d2c
commit
5e5dd546d8
|
@ -1294,6 +1294,19 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str,
|
||||||
' <input type="checkbox" class="profilecheckbox" ' + \
|
' <input type="checkbox" class="profilecheckbox" ' + \
|
||||||
'name="brochMode"> ' + \
|
'name="brochMode"> ' + \
|
||||||
translate['Broch mode'] + '<br>\n'
|
translate['Broch mode'] + '<br>\n'
|
||||||
|
# Instance type
|
||||||
|
instanceStr += \
|
||||||
|
' <input type="checkbox" class="profilecheckbox" ' + \
|
||||||
|
'name="mediaInstance" ' + mediaInstanceStr + '> ' + \
|
||||||
|
translate['This is a media instance'] + '<br>\n'
|
||||||
|
instanceStr += \
|
||||||
|
' <input type="checkbox" class="profilecheckbox" ' + \
|
||||||
|
'name="blogsInstance" ' + blogsInstanceStr + '> ' + \
|
||||||
|
translate['This is a blogging instance'] + '<br>\n'
|
||||||
|
instanceStr += \
|
||||||
|
' <input type="checkbox" class="profilecheckbox" ' + \
|
||||||
|
'name="newsInstance" ' + newsInstanceStr + '> ' + \
|
||||||
|
translate['This is a news instance'] + '<br>\n'
|
||||||
instanceStr += ' </div>\n'
|
instanceStr += ' </div>\n'
|
||||||
|
|
||||||
# Themes section
|
# Themes section
|
||||||
|
@ -1623,23 +1636,6 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str,
|
||||||
' <input type="text" name="passwordconfirm" value="">\n'
|
' <input type="text" name="passwordconfirm" value="">\n'
|
||||||
editProfileForm += ' </div>\n'
|
editProfileForm += ' </div>\n'
|
||||||
|
|
||||||
if path.startswith('/users/' + adminNickname + '/'):
|
|
||||||
# Instance type
|
|
||||||
editProfileForm += ' <div class="container">\n'
|
|
||||||
editProfileForm += \
|
|
||||||
' <input type="checkbox" class="profilecheckbox" ' + \
|
|
||||||
'name="mediaInstance" ' + mediaInstanceStr + '> ' + \
|
|
||||||
translate['This is a media instance'] + '<br>\n'
|
|
||||||
editProfileForm += \
|
|
||||||
' <input type="checkbox" class="profilecheckbox" ' + \
|
|
||||||
'name="blogsInstance" ' + blogsInstanceStr + '> ' + \
|
|
||||||
translate['This is a blogging instance'] + '<br>\n'
|
|
||||||
editProfileForm += \
|
|
||||||
' <input type="checkbox" class="profilecheckbox" ' + \
|
|
||||||
'name="newsInstance" ' + newsInstanceStr + '> ' + \
|
|
||||||
translate['This is a news instance'] + '<br>\n'
|
|
||||||
editProfileForm += ' </div>\n'
|
|
||||||
|
|
||||||
# Content controls
|
# Content controls
|
||||||
editProfileForm += ' <div class="container">\n'
|
editProfileForm += ' <div class="container">\n'
|
||||||
editProfileForm += \
|
editProfileForm += \
|
||||||
|
|
Loading…
Reference in New Issue