Switch label order

merge-requests/8/head
Bob Mottram 2020-10-06 20:25:41 +01:00
parent 83bfd0b40a
commit 92bac79367
1 changed files with 8 additions and 6 deletions

View File

@ -5349,10 +5349,11 @@ def htmlNewswire(newswire: str, nickname: str, moderator: bool) -> str:
'<a href="' + item[1] + '">' + item[0] + '</a>' '<a href="' + item[1] + '">' + item[0] + '</a>'
if moderator: if moderator:
htmlStr += \ htmlStr += \
' <label class="newswireDateApproved">' + \ ' ' + \
'<a href="/users/' + nickname + \ '<a href="/users/' + nickname + \
'/newswireunvote=' + dateStr + '">' '/newswireunvote=' + dateStr.replace(' ', 'T') + '">' + \
htmlStr += dateStr.replace('+00:00', '') + '</a></label></p>' '<label class="newswireDateApproved">'
htmlStr += dateStr.replace('+00:00', '') + '</label></a></p>'
else: else:
htmlStr += ' <label class="newswireDateApproved">' htmlStr += ' <label class="newswireDateApproved">'
htmlStr += dateStr.replace('+00:00', '') + '</label></p>' htmlStr += dateStr.replace('+00:00', '') + '</label></p>'
@ -5361,10 +5362,11 @@ def htmlNewswire(newswire: str, nickname: str, moderator: bool) -> str:
'<a href="' + item[1] + '">' + item[0] + '</a>' '<a href="' + item[1] + '">' + item[0] + '</a>'
if moderator: if moderator:
htmlStr += \ htmlStr += \
' <label class="newswireDate">' + \ ' ' + \
'<a href="/users/' + nickname + \ '<a href="/users/' + nickname + \
'/newswirevote=' + dateStr + '">' '/newswirevote=' + dateStr.replace(' ', 'T') + '">' + \
htmlStr += dateStr.replace('+00:00', '') + '</a></label></p>' '<label class="newswireDate">'
htmlStr += dateStr.replace('+00:00', '') + '</label></a></p>'
else: else:
htmlStr += ' <label class="newswireDate">' htmlStr += ' <label class="newswireDate">'
htmlStr += dateStr.replace('+00:00', '') + '</label></p>' htmlStr += dateStr.replace('+00:00', '') + '</label></p>'