mirror of https://gitlab.com/bashrc2/epicyon
Replies timeline strings
parent
e1eab5ab24
commit
117ed081f3
|
@ -582,10 +582,10 @@ def _desktopShowBox(boxName: str, boxJson: {},
|
||||||
|
|
||||||
notificationIcons = ''
|
notificationIcons = ''
|
||||||
if boxName.startswith('tl'):
|
if boxName.startswith('tl'):
|
||||||
titleStr = boxName[2:]
|
boxNameStr = boxName[2:]
|
||||||
else:
|
else:
|
||||||
titleStr = boxName
|
boxNameStr = boxName
|
||||||
titleStr = '\33[7m' + titleStr.upper() + '\33[0m'
|
titleStr = '\33[7m' + boxNameStr.upper() + '\33[0m'
|
||||||
# titleStr += ' page ' + str(pageNumber)
|
# titleStr += ' page ' + str(pageNumber)
|
||||||
if notificationIcons:
|
if notificationIcons:
|
||||||
while len(titleStr) < 95 - len(notificationIcons):
|
while len(titleStr) < 95 - len(notificationIcons):
|
||||||
|
@ -594,7 +594,7 @@ def _desktopShowBox(boxName: str, boxJson: {},
|
||||||
print(indent + titleStr + '\n')
|
print(indent + titleStr + '\n')
|
||||||
|
|
||||||
if _timelineIsEmpty(boxJson):
|
if _timelineIsEmpty(boxJson):
|
||||||
boxStr = boxName
|
boxStr = boxNameStr
|
||||||
if boxName == 'dm':
|
if boxName == 'dm':
|
||||||
boxStr = 'DM'
|
boxStr = 'DM'
|
||||||
sayStr = indent + 'You have no ' + boxStr + ' posts yet.'
|
sayStr = indent + 'You have no ' + boxStr + ' posts yet.'
|
||||||
|
@ -679,12 +679,12 @@ def _desktopShowBox(boxName: str, boxJson: {},
|
||||||
print('')
|
print('')
|
||||||
|
|
||||||
# say the post number range
|
# say the post number range
|
||||||
sayStr = indent + boxName + ' page ' + str(pageNumber) + \
|
sayStr = indent + boxNameStr + ' page ' + str(pageNumber) + \
|
||||||
' containing ' + str(ctr - 1) + ' posts. '
|
' containing ' + str(ctr - 1) + ' posts. '
|
||||||
if newDMs and boxName != 'dm':
|
if newDMs and boxName != 'dm':
|
||||||
sayStr += \
|
sayStr += \
|
||||||
'Use \33[3mshow dm\33[0m to view direct messages.'
|
'Use \33[3mshow dm\33[0m to view direct messages.'
|
||||||
elif newReplies and boxName != 'replies':
|
elif newReplies and boxName != 'tlreplies':
|
||||||
sayStr += \
|
sayStr += \
|
||||||
'Use \33[3mshow replies\33[0m to view reply posts.'
|
'Use \33[3mshow replies\33[0m to view reply posts.'
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue