forked from indymedia/epicyon
Only show the replies button if replies exist.
This simplifies the first time user experience a littlemain
parent
291f24f6d6
commit
4df52f6c13
|
@ -7,6 +7,7 @@ __email__ = "bob@freedombone.net"
|
||||||
__status__ = "Production"
|
__status__ = "Production"
|
||||||
|
|
||||||
|
|
||||||
|
import os
|
||||||
import time
|
import time
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from happening import todaysEventsCheck
|
from happening import todaysEventsCheck
|
||||||
|
@ -87,6 +88,10 @@ def headerButtonsTimeline(defaultTimeline: str,
|
||||||
'"><span>' + htmlHighlightLabel(translate['DM'], newDM) + \
|
'"><span>' + htmlHighlightLabel(translate['DM'], newDM) + \
|
||||||
'</span></button></a>'
|
'</span></button></a>'
|
||||||
|
|
||||||
|
repliesIndexFilename = \
|
||||||
|
baseDir + '/accounts/' + \
|
||||||
|
nickname + '@' + domain + '/tlreplies.index'
|
||||||
|
if os.path.isfile(repliesIndexFilename):
|
||||||
tlStr += \
|
tlStr += \
|
||||||
'<a href="' + usersPath + '/tlreplies"><button class="' + \
|
'<a href="' + usersPath + '/tlreplies"><button class="' + \
|
||||||
repliesButton + '"><span>' + \
|
repliesButton + '"><span>' + \
|
||||||
|
|
Loading…
Reference in New Issue