Edit icon on right

main
Bob Mottram 2020-10-03 20:33:02 +01:00
parent 8b3bfcbc00
commit ef6452a524
2 changed files with 8 additions and 2 deletions

View File

@ -1019,6 +1019,8 @@ aside .toggle-inside li {
.col-right img.rightColEditImage {
background: var(--column-left-color);
width: var(--column-right-icon-size);
float: right;
margin-right: 40px;
}
.col-right img.rightColImg {
background: var(--column-left-color);

View File

@ -5305,7 +5305,8 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str,
nickname + '/right_col_image.png" />\n' + \
' </center>\n'
htmlStr += '\n <center>\n'
if editImageClass == 'rightColEdit':
htmlStr += '\n <center>\n'
if moderator:
# show the edit icon
@ -5318,7 +5319,10 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str,
translate['Edit newswire'] + '" src="/' + \
iconsDir + '/edit.png" /></a>\n'
htmlStr += ' </center>\n'
if editImageClass == 'rightColEdit':
htmlStr += ' </center>\n'
else:
htmlStr += ' <br>\n'
return htmlStr