mirror of https://gitlab.com/bashrc2/epicyon
Onion version of profile page
parent
db22635f6c
commit
0f30362f61
|
@ -1870,6 +1870,7 @@ def htmlProfile(defaultTimeline: str, \
|
||||||
editProfileStr=''
|
editProfileStr=''
|
||||||
logoutStr=''
|
logoutStr=''
|
||||||
actor=profileJson['id']
|
actor=profileJson['id']
|
||||||
|
usersPath='/users/'+actor.split('/users/')[1]
|
||||||
|
|
||||||
donateSection=''
|
donateSection=''
|
||||||
donateUrl=getDonationUrl(profileJson)
|
donateUrl=getDonationUrl(profileJson)
|
||||||
|
@ -1917,7 +1918,7 @@ def htmlProfile(defaultTimeline: str, \
|
||||||
translate['Login']+'</button></a>'
|
translate['Login']+'</button></a>'
|
||||||
else:
|
else:
|
||||||
editProfileStr= \
|
editProfileStr= \
|
||||||
'<a href="'+actor+ \
|
'<a href="'+usersPath+ \
|
||||||
'/editprofile"><button class="button"><span>'+ \
|
'/editprofile"><button class="button"><span>'+ \
|
||||||
translate['Edit']+' </span></button></a>'
|
translate['Edit']+' </span></button></a>'
|
||||||
logoutStr= \
|
logoutStr= \
|
||||||
|
@ -2006,25 +2007,25 @@ def htmlProfile(defaultTimeline: str, \
|
||||||
profileStr+='<div class="container">\n'
|
profileStr+='<div class="container">\n'
|
||||||
profileStr+=' <center>'
|
profileStr+=' <center>'
|
||||||
profileStr+= \
|
profileStr+= \
|
||||||
' <a href="'+actor+'"><button class="'+postsButton+ \
|
' <a href="'+usersPath+'"><button class="'+postsButton+ \
|
||||||
'"><span>'+translate['Posts']+' </span></button></a>'
|
'"><span>'+translate['Posts']+' </span></button></a>'
|
||||||
profileStr+= \
|
profileStr+= \
|
||||||
' <a href="'+actor+'/following"><button class="'+ \
|
' <a href="'+usersPath+'/following"><button class="'+ \
|
||||||
followingButton+'"><span>'+translate['Following']+ \
|
followingButton+'"><span>'+translate['Following']+ \
|
||||||
' </span></button></a>'
|
' </span></button></a>'
|
||||||
profileStr+= \
|
profileStr+= \
|
||||||
' <a href="'+actor+'/followers"><button class="'+ \
|
' <a href="'+usersPath+'/followers"><button class="'+ \
|
||||||
followersButton+'"><span>'+translate['Followers']+ \
|
followersButton+'"><span>'+translate['Followers']+ \
|
||||||
' </span></button></a>'
|
' </span></button></a>'
|
||||||
profileStr+= \
|
profileStr+= \
|
||||||
' <a href="'+actor+'/roles"><button class="'+ \
|
' <a href="'+usersPath+'/roles"><button class="'+ \
|
||||||
rolesButton+'"><span>'+translate['Roles']+' </span></button></a>'
|
rolesButton+'"><span>'+translate['Roles']+' </span></button></a>'
|
||||||
profileStr+= \
|
profileStr+= \
|
||||||
' <a href="'+actor+'/skills"><button class="'+ \
|
' <a href="'+usersPath+'/skills"><button class="'+ \
|
||||||
skillsButton+'"><span>'+translate['Skills']+ \
|
skillsButton+'"><span>'+translate['Skills']+ \
|
||||||
' </span></button></a>'
|
' </span></button></a>'
|
||||||
profileStr+= \
|
profileStr+= \
|
||||||
' <a href="'+actor+'/shares"><button class="'+ \
|
' <a href="'+usersPath+'/shares"><button class="'+ \
|
||||||
sharesButton+'"><span>'+translate['Shares']+ \
|
sharesButton+'"><span>'+translate['Shares']+ \
|
||||||
' </span></button></a>'
|
' </span></button></a>'
|
||||||
profileStr+=editProfileStr+logoutStr
|
profileStr+=editProfileStr+logoutStr
|
||||||
|
|
Loading…
Reference in New Issue