forked from indymedia/epicyon
New post on both timelines
parent
3fd48a4f89
commit
a60683afff
|
@ -430,7 +430,8 @@ def individualPostAsHtml(session,wfRequest: {},personCache: {}, \
|
||||||
'</div>\n'
|
'</div>\n'
|
||||||
|
|
||||||
def htmlTimeline(session,baseDir: str,wfRequest: {},personCache: {}, \
|
def htmlTimeline(session,baseDir: str,wfRequest: {},personCache: {}, \
|
||||||
nickname: str,domain: str,timelineJson: {},boxName: str) -> str:
|
nickname: str,domain: str,timelineJson: {}, \
|
||||||
|
boxName: str) -> str:
|
||||||
"""Show the timeline as html
|
"""Show the timeline as html
|
||||||
"""
|
"""
|
||||||
with open(baseDir+'/epicyon-profile.css', 'r') as cssFile:
|
with open(baseDir+'/epicyon-profile.css', 'r') as cssFile:
|
||||||
|
@ -451,8 +452,6 @@ def htmlTimeline(session,baseDir: str,wfRequest: {},personCache: {}, \
|
||||||
|
|
||||||
actor='/users/'+nickname
|
actor='/users/'+nickname
|
||||||
tlStr=htmlHeader(profileStyle)
|
tlStr=htmlHeader(profileStyle)
|
||||||
newPostStr=''
|
|
||||||
if boxName=='inbox':
|
|
||||||
newPostStr=' <a href="'+actor+'/newpost"><button class="'+newPostButton+'"><span>New Post </span></button></a>'
|
newPostStr=' <a href="'+actor+'/newpost"><button class="'+newPostButton+'"><span>New Post </span></button></a>'
|
||||||
tlStr+= \
|
tlStr+= \
|
||||||
'<div class="timeline-banner">' \
|
'<div class="timeline-banner">' \
|
||||||
|
|
Loading…
Reference in New Issue