mirror of https://gitlab.com/bashrc2/epicyon
Displaying of timelines on profile screen
parent
d87b66d847
commit
ed781f8655
|
@ -634,45 +634,45 @@ def htmlProfile(rssIconAtTop: bool,
|
||||||
translate['Get the source code'] + '" title="' + \
|
translate['Get the source code'] + '" title="' + \
|
||||||
translate['Get the source code'] + '" src="/icons/agpl.png" /></a>'
|
translate['Get the source code'] + '" src="/icons/agpl.png" /></a>'
|
||||||
|
|
||||||
if selected == 'posts':
|
if selected == 'posts':
|
||||||
profileStr += \
|
profileStr += \
|
||||||
htmlProfilePosts(recentPostsCache, maxRecentPosts,
|
htmlProfilePosts(recentPostsCache, maxRecentPosts,
|
||||||
translate,
|
translate,
|
||||||
baseDir, httpPrefix, authorized,
|
baseDir, httpPrefix, authorized,
|
||||||
nickname, domain, port,
|
nickname, domain, port,
|
||||||
session, wfRequest, personCache,
|
session, wfRequest, personCache,
|
||||||
projectVersion,
|
projectVersion,
|
||||||
YTReplacementDomain,
|
YTReplacementDomain,
|
||||||
showPublishedDateOnly) + licenseStr
|
showPublishedDateOnly) + licenseStr
|
||||||
if selected == 'following':
|
elif selected == 'following':
|
||||||
profileStr += \
|
profileStr += \
|
||||||
htmlProfileFollowing(translate, baseDir, httpPrefix,
|
htmlProfileFollowing(translate, baseDir, httpPrefix,
|
||||||
authorized, nickname,
|
authorized, nickname,
|
||||||
domain, port, session,
|
domain, port, session,
|
||||||
wfRequest, personCache, extraJson,
|
wfRequest, personCache, extraJson,
|
||||||
projectVersion, ["unfollow"], selected,
|
projectVersion, ["unfollow"], selected,
|
||||||
usersPath, pageNumber, maxItemsPerPage)
|
usersPath, pageNumber, maxItemsPerPage)
|
||||||
if selected == 'followers':
|
elif selected == 'followers':
|
||||||
profileStr += \
|
profileStr += \
|
||||||
htmlProfileFollowing(translate, baseDir, httpPrefix,
|
htmlProfileFollowing(translate, baseDir, httpPrefix,
|
||||||
authorized, nickname,
|
authorized, nickname,
|
||||||
domain, port, session,
|
domain, port, session,
|
||||||
wfRequest, personCache, extraJson,
|
wfRequest, personCache, extraJson,
|
||||||
projectVersion, ["block"],
|
projectVersion, ["block"],
|
||||||
selected, usersPath, pageNumber,
|
selected, usersPath, pageNumber,
|
||||||
maxItemsPerPage)
|
maxItemsPerPage)
|
||||||
if selected == 'roles':
|
elif selected == 'roles':
|
||||||
profileStr += \
|
profileStr += \
|
||||||
htmlProfileRoles(translate, nickname, domainFull,
|
htmlProfileRoles(translate, nickname, domainFull,
|
||||||
extraJson)
|
extraJson)
|
||||||
if selected == 'skills':
|
elif selected == 'skills':
|
||||||
profileStr += \
|
profileStr += \
|
||||||
htmlProfileSkills(translate, nickname, domainFull, extraJson)
|
htmlProfileSkills(translate, nickname, domainFull, extraJson)
|
||||||
if selected == 'shares':
|
elif selected == 'shares':
|
||||||
profileStr += \
|
profileStr += \
|
||||||
htmlProfileShares(actor, translate,
|
htmlProfileShares(actor, translate,
|
||||||
nickname, domainFull,
|
nickname, domainFull,
|
||||||
extraJson) + licenseStr
|
extraJson) + licenseStr
|
||||||
|
|
||||||
# Footer which is only used for system accounts
|
# Footer which is only used for system accounts
|
||||||
profileFooterStr = ''
|
profileFooterStr = ''
|
||||||
|
|
|
@ -518,7 +518,7 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
|
||||||
# use the blog timeline of the news actor
|
# use the blog timeline of the news actor
|
||||||
timelineNickname = 'news'
|
timelineNickname = 'news'
|
||||||
timelineBoxName = 'tlblog'
|
timelineBoxName = 'tlblog'
|
||||||
|
|
||||||
# if this is the media timeline then add an extra gallery container
|
# if this is the media timeline then add an extra gallery container
|
||||||
if boxName == 'tlmedia':
|
if boxName == 'tlmedia':
|
||||||
if pageNumber > 1:
|
if pageNumber > 1:
|
||||||
|
|
Loading…
Reference in New Issue