\n'
# RSS icon
+ if nickname != 'news':
+ # rss feed for this account
+ rssUrl = httpPrefix + '://' + domainFull + \
+ '/blog/' + nickname + '/rss.xml'
+ else:
+ # rss feed for all accounts on the instance
+ rssUrl = httpPrefix + '://' + domainFull + '/blog/rss.xml'
htmlStr += \
- ' ' + \
+ ' ' + \
' str:
+ showBackButton: bool, timelinePath: str,
+ showPublishButton: bool) -> str:
"""Returns html content for the right column
"""
htmlStr = ''
@@ -5627,6 +5704,14 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str,
'
\n'
+ # checkbox for receiving calendar events
if isFollowingActor(baseDir, nickname, domain, optionsActor):
- if receivingCalendarEvents(baseDir, nickname, domain,
- optionsNickname, optionsDomainFull):
- optionsStr += \
+ checkboxStr = \
+ ' ' + \
+ translate['Receive calendar events from this account'] + \
+ '\n
\n'
+ if not receivingCalendarEvents(baseDir, nickname, domain,
+ optionsNickname, optionsDomainFull):
+ checkboxStr = checkboxStr.replace(' checked>', '>')
+ optionsStr += checkboxStr
+
+ # checkbox for permission to post to newswire
+ if optionsDomainFull == domainFull:
+ if isModerator(baseDir, nickname) and \
+ not isModerator(baseDir, optionsNickname):
+ newswireBlockedFilename = \
+ baseDir + '/accounts/' + \
+ optionsNickname + '@' + optionsDomain + '/.nonewswire'
+ checkboxStr = \
' ' + \
- translate['Receive calendar events from this account'] + \
+ 'class="profilecheckbox" name="postsToNews" checked> ' + \
+ translate['Allow news posts'] + \
'\n
\n'
- else:
- optionsStr += \
- ' ' + \
- translate['Receive calendar events from this account'] + \
- '\n
\n'
+ if os.path.isfile(newswireBlockedFilename):
+ checkboxStr = checkboxStr.replace(' checked>', '>')
+ optionsStr += checkboxStr
optionsStr += optionsLinkStr
optionsStr += \