diff --git a/epicyon-profile.css b/epicyon-profile.css index 0dd2658a..1cd4adff 100644 --- a/epicyon-profile.css +++ b/epicyon-profile.css @@ -60,6 +60,10 @@ a:link { font-weight: bold; } +.license { + width: 5%; +} + .cwButton { border-radius: var(--button-corner-radius); background-color: #554; diff --git a/img/icons/agpl.png b/img/icons/agpl.png new file mode 100644 index 00000000..c2d94b2e Binary files /dev/null and b/img/icons/agpl.png differ diff --git a/webinterface.py b/webinterface.py index 4e41e760..5a775cf4 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1288,13 +1288,15 @@ def htmlProfile(translate: {},projectVersion: str, \ with open(cssFilename, 'r') as cssFile: profileStyle = cssFile.read().replace('image.png',actor+'/image.png') + licenseStr='' + if selected=='posts': profileStr+= \ htmlProfilePosts(translate, \ baseDir,httpPrefix,authorized, \ ocapAlways,nickname,domain,port, \ session,wfRequest,personCache, \ - projectVersion) + projectVersion)+licenseStr if selected=='following': profileStr+= \ htmlProfileFollowing(translate,baseDir,httpPrefix, \ @@ -1317,13 +1319,13 @@ def htmlProfile(translate: {},projectVersion: str, \ pageNumber,maxItemsPerPage) if selected=='roles': profileStr+= \ - htmlProfileRoles(translate,nickname,domainFull,extraJson) + htmlProfileRoles(translate,nickname,domainFull,extraJson)+licenseStr if selected=='skills': profileStr+= \ - htmlProfileSkills(translate,nickname,domainFull,extraJson) + htmlProfileSkills(translate,nickname,domainFull,extraJson)+licenseStr if selected=='shares': profileStr+= \ - htmlProfileShares(translate,nickname,domainFull,extraJson) + htmlProfileShares(translate,nickname,domainFull,extraJson)+licenseStr profileStr=htmlHeader(cssFilename,profileStyle)+profileStr+htmlFooter() return profileStr