Edit button changes color when there are newswire items to be moderated
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
						 | 
				
			
			@ -377,7 +377,12 @@ def addBlogsToNewswire(baseDir: str, newswire: {},
 | 
			
		|||
        OrderedDict(sorted(moderationDict.items(), reverse=True))
 | 
			
		||||
    # save the moderation queue details for later display
 | 
			
		||||
    newswireModerationFilename = baseDir + '/accounts/newswiremoderation.txt'
 | 
			
		||||
    saveJson(sortedModerationDict, newswireModerationFilename)
 | 
			
		||||
    if sortedModerationDict:
 | 
			
		||||
        saveJson(sortedModerationDict, newswireModerationFilename)
 | 
			
		||||
    else:
 | 
			
		||||
        # remove the file if there is nothing to moderate
 | 
			
		||||
        if os.path.isfile(newswireModerationFilename):
 | 
			
		||||
            os.remove(newswireModerationFilename)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def getDictFromNewswire(session, baseDir: str) -> {}:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5406,15 +5406,26 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str,
 | 
			
		|||
        htmlStr += '\n      <center>\n'
 | 
			
		||||
 | 
			
		||||
    if moderator:
 | 
			
		||||
        # show the edit icon
 | 
			
		||||
        htmlStr += \
 | 
			
		||||
            '        <a href="' + \
 | 
			
		||||
            '/users/' + nickname + '/editnewswire">' + \
 | 
			
		||||
            '<img class="' + editImageClass + \
 | 
			
		||||
            '" loading="lazy" alt="' + \
 | 
			
		||||
            translate['Edit newswire'] + '" title="' + \
 | 
			
		||||
            translate['Edit newswire'] + '" src="/' + \
 | 
			
		||||
            iconsDir + '/edit.png" /></a>\n'
 | 
			
		||||
        if os.path.isfile(baseDir + '/accounts/newswiremoderation.txt'):
 | 
			
		||||
            # show the edit icon highlighted
 | 
			
		||||
            htmlStr += \
 | 
			
		||||
                '        <a href="' + \
 | 
			
		||||
                '/users/' + nickname + '/editnewswire">' + \
 | 
			
		||||
                '<img class="' + editImageClass + \
 | 
			
		||||
                '" loading="lazy" alt="' + \
 | 
			
		||||
                translate['Edit newswire'] + '" title="' + \
 | 
			
		||||
                translate['Edit newswire'] + '" src="/' + \
 | 
			
		||||
                iconsDir + '/edit_notify.png" /></a>\n'
 | 
			
		||||
        else:
 | 
			
		||||
            # show the edit icon
 | 
			
		||||
            htmlStr += \
 | 
			
		||||
                '        <a href="' + \
 | 
			
		||||
                '/users/' + nickname + '/editnewswire">' + \
 | 
			
		||||
                '<img class="' + editImageClass + \
 | 
			
		||||
                '" loading="lazy" alt="' + \
 | 
			
		||||
                translate['Edit newswire'] + '" title="' + \
 | 
			
		||||
                translate['Edit newswire'] + '" src="/' + \
 | 
			
		||||
                iconsDir + '/edit.png" /></a>\n'
 | 
			
		||||
 | 
			
		||||
    htmlStr += \
 | 
			
		||||
        '        <a href="/newswire.xml">' + \
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||