Don't show some timelines on profile for group account

merge-requests/30/head
Bob Mottram 2021-09-21 18:31:05 +01:00
parent b566f14e66
commit 2fbe471e04
1 changed files with 15 additions and 13 deletions

View File

@ -827,23 +827,25 @@ def htmlProfile(signingPrivateKeyPem: str,
' <a href="' + usersPath + '#buttonheader"><button class="' + \ ' <a href="' + usersPath + '#buttonheader"><button class="' + \
postsButton + '"><span>' + translate['Posts'] + \ postsButton + '"><span>' + translate['Posts'] + \
' </span></button></a>' ' </span></button></a>'
profileStr += \ if not isGroup:
' <a href="' + usersPath + '/following#buttonheader">' + \ profileStr += \
'<button class="' + followingButton + '"><span>' + \ ' <a href="' + usersPath + '/following#buttonheader">' + \
translate['Following'] + ' </span></button></a>' '<button class="' + followingButton + '"><span>' + \
translate['Following'] + ' </span></button></a>'
profileStr += \ profileStr += \
' <a href="' + usersPath + '/followers#buttonheader">' + \ ' <a href="' + usersPath + '/followers#buttonheader">' + \
'<button class="' + followersButton + \ '<button class="' + followersButton + \
'"><span>' + followersStr + ' </span></button></a>' '"><span>' + followersStr + ' </span></button></a>'
profileStr += \ if not isGroup:
' <a href="' + usersPath + '/roles#buttonheader">' + \ profileStr += \
'<button class="' + rolesButton + '"><span>' + \ ' <a href="' + usersPath + '/roles#buttonheader">' + \
translate['Roles'] + \ '<button class="' + rolesButton + '"><span>' + \
' </span></button></a>' translate['Roles'] + \
profileStr += \ ' </span></button></a>'
' <a href="' + usersPath + '/skills#buttonheader">' + \ profileStr += \
'<button class="' + skillsButton + '"><span>' + \ ' <a href="' + usersPath + '/skills#buttonheader">' + \
translate['Skills'] + ' </span></button></a>' '<button class="' + skillsButton + '"><span>' + \
translate['Skills'] + ' </span></button></a>'
# profileStr += \ # profileStr += \
# ' <a href="' + usersPath + '/shares#buttonheader">' + \ # ' <a href="' + usersPath + '/shares#buttonheader">' + \
# '<button class="' + sharesButton + '"><span>' + \ # '<button class="' + sharesButton + '"><span>' + \