diff --git a/epicyon-profile.css b/epicyon-profile.css index 16bb3c3c..f03c864d 100644 --- a/epicyon-profile.css +++ b/epicyon-profile.css @@ -85,6 +85,22 @@ body, html { margin: 5px; } +.followerApprovalsButton { + border-radius: 4px; + background-color: darkgreen; + border: none; + color: #FFFFFF; + text-align: center; + font-size: 18px; + padding: 10px; + width: 25%; + max-width: 200px; + min-width: 100px; + transition: all 0.5s; + cursor: pointer; + margin: 5px; +} + .followApprove { border-radius: 4px; background-color: darkgreen; @@ -121,6 +137,13 @@ body, html { padding: 0px 20px; } +.followerApprovalsButton span { + cursor: pointer; + display: inline-block; + position: relative; + transition: 0.5s; +} + .button span { cursor: pointer; display: inline-block; @@ -128,6 +151,15 @@ body, html { transition: 0.5s; } +.followerApprovalsButton span:after { + content: '\00bb'; + position: absolute; + opacity: 0; + top: 0; + right: -20px; + transition: 0.5s; +} + .button span:after { content: '\00bb'; position: absolute; @@ -137,10 +169,19 @@ body, html { transition: 0.5s; } +.followerApprovalsButton:hover span { + padding-right: 25px; +} + .button:hover span { padding-right: 25px; } +.followerApprovalsButton:hover span:after { + opacity: 1; + right: 0; +} + .button:hover span:after { opacity: 1; right: 0; diff --git a/webinterface.py b/webinterface.py index 6fef5605..b87c97bc 100644 --- a/webinterface.py +++ b/webinterface.py @@ -513,8 +513,18 @@ def htmlTimeline(session,baseDir: str,wfRequest: {},personCache: {}, \ personalButton='buttonselected' elif boxName=='federated': federatedButton='buttonselected' - actor='/users/'+nickname + + followApprovals='' + followRequestsFilename=baseDir+'/accounts/'+nickname+'@'+domain+'/followrequests.txt' + if os.path.isfile(followRequestsFilename): + with open(followRequestsFilename,'r') as f: + for line in f: + if len(line)>0: + # show a star on the followers tab + followApprovals='' + break + tlStr=htmlHeader(profileStyle) newPostStr=' ' tlStr+= \ @@ -523,8 +533,8 @@ def htmlTimeline(session,baseDir: str,wfRequest: {},personCache: {}, \ '
\n' \ '
'+newPostStr+ \ ' ' \ - ' ' \ - ' ' \ + ' '+ \ + followApprovals+ \ '
' \ '
' for item in timelineJson['orderedItems']: