Don't show license icon on news front page

main
Bob Mottram 2020-11-24 13:05:44 +00:00
parent c002adccc6
commit 28d57f492b
1 changed files with 7 additions and 5 deletions

View File

@ -627,11 +627,13 @@ def htmlProfile(rssIconAtTop: bool,
bannerFile, bannerFilename = \
getBannerFile(baseDir, nickname, domain)
licenseStr = \
'<a href="https://gitlab.com/bashrc2/epicyon">' + \
'<img loading="lazy" class="license" alt="' + \
translate['Get the source code'] + '" title="' + \
translate['Get the source code'] + '" src="/icons/agpl.png" /></a>'
licenseStr = ''
if not isSystemAccount(nickname):
licenseStr = \
'<a href="https://gitlab.com/bashrc2/epicyon">' + \
'<img loading="lazy" class="license" alt="' + \
translate['Get the source code'] + '" title="' + \
translate['Get the source code'] + '" src="/icons/agpl.png" /></a>'
if selected == 'posts':
profileStr += \