mirror of https://gitlab.com/bashrc2/epicyon
Don't chow image changing options on news instances
parent
100c9c557f
commit
c631c49d98
|
@ -1255,34 +1255,35 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str,
|
||||||
' <input type="file" id="avatar" name="avatar"'
|
' <input type="file" id="avatar" name="avatar"'
|
||||||
editProfileForm += ' accept="' + imageFormats + '">\n'
|
editProfileForm += ' accept="' + imageFormats + '">\n'
|
||||||
|
|
||||||
editProfileForm += \
|
if not newsInstance:
|
||||||
' <br><label class="labels">' + \
|
editProfileForm += \
|
||||||
translate['Background image'] + '</label>\n'
|
' <br><label class="labels">' + \
|
||||||
editProfileForm += ' <input type="file" id="image" name="image"'
|
translate['Background image'] + '</label>\n'
|
||||||
editProfileForm += ' accept="' + imageFormats + '">\n'
|
editProfileForm += ' <input type="file" id="image" name="image"'
|
||||||
|
editProfileForm += ' accept="' + imageFormats + '">\n'
|
||||||
|
|
||||||
editProfileForm += ' <br><label class="labels">' + \
|
editProfileForm += ' <br><label class="labels">' + \
|
||||||
translate['Timeline banner image'] + '</label>\n'
|
translate['Timeline banner image'] + '</label>\n'
|
||||||
editProfileForm += ' <input type="file" id="banner" name="banner"'
|
editProfileForm += ' <input type="file" id="banner" name="banner"'
|
||||||
editProfileForm += ' accept="' + imageFormats + '">\n'
|
editProfileForm += ' accept="' + imageFormats + '">\n'
|
||||||
|
|
||||||
editProfileForm += ' <br><label class="labels">' + \
|
editProfileForm += ' <br><label class="labels">' + \
|
||||||
translate['Search banner image'] + '</label>\n'
|
translate['Search banner image'] + '</label>\n'
|
||||||
editProfileForm += ' <input type="file" id="search_banner" '
|
editProfileForm += ' <input type="file" id="search_banner" '
|
||||||
editProfileForm += 'name="search_banner"'
|
editProfileForm += 'name="search_banner"'
|
||||||
editProfileForm += ' accept="' + imageFormats + '">\n'
|
editProfileForm += ' accept="' + imageFormats + '">\n'
|
||||||
|
|
||||||
editProfileForm += ' <br><label class="labels">' + \
|
editProfileForm += ' <br><label class="labels">' + \
|
||||||
translate['Left column image'] + '</label>\n'
|
translate['Left column image'] + '</label>\n'
|
||||||
editProfileForm += ' <input type="file" id="left_col_image" '
|
editProfileForm += ' <input type="file" id="left_col_image" '
|
||||||
editProfileForm += 'name="left_col_image"'
|
editProfileForm += 'name="left_col_image"'
|
||||||
editProfileForm += ' accept="' + imageFormats + '">\n'
|
editProfileForm += ' accept="' + imageFormats + '">\n'
|
||||||
|
|
||||||
editProfileForm += ' <br><label class="labels">' + \
|
editProfileForm += ' <br><label class="labels">' + \
|
||||||
translate['Right column image'] + '</label>\n'
|
translate['Right column image'] + '</label>\n'
|
||||||
editProfileForm += ' <input type="file" id="right_col_image" '
|
editProfileForm += ' <input type="file" id="right_col_image" '
|
||||||
editProfileForm += 'name="right_col_image"'
|
editProfileForm += 'name="right_col_image"'
|
||||||
editProfileForm += ' accept="' + imageFormats + '">\n'
|
editProfileForm += ' accept="' + imageFormats + '">\n'
|
||||||
|
|
||||||
editProfileForm += ' </div>\n'
|
editProfileForm += ' </div>\n'
|
||||||
editProfileForm += ' <div class="container">\n'
|
editProfileForm += ' <div class="container">\n'
|
||||||
|
|
Loading…
Reference in New Issue