forked from indymedia/epicyon
License on profile page
parent
5cb313383d
commit
6a74bac2bb
|
@ -60,6 +60,10 @@ a:link {
|
|||
font-weight: bold;
|
||||
}
|
||||
|
||||
.license {
|
||||
width: 5%;
|
||||
}
|
||||
|
||||
.cwButton {
|
||||
border-radius: var(--button-corner-radius);
|
||||
background-color: #554;
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 8.2 KiB |
|
@ -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='<centre><a href="https://gitlab.com/bashrc2/epicyon"><img class="license" src="/icons/agpl.png" /></a></centre>'
|
||||
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue