forked from indymedia/epicyon
Check that header string exists
parent
970e986cf6
commit
10f7cb05a9
|
@ -6022,7 +6022,7 @@ def headerButtonsFrontScreen(translate: {},
|
||||||
authorized: bool) -> str:
|
authorized: bool) -> str:
|
||||||
"""Returns the header buttons for the front page of a news instance
|
"""Returns the header buttons for the front page of a news instance
|
||||||
"""
|
"""
|
||||||
headerStr = ' <div class="frontPageMobileButtons">\n'
|
headerStr = ''
|
||||||
if nickname == 'news':
|
if nickname == 'news':
|
||||||
buttonFeatures = 'buttonMobile'
|
buttonFeatures = 'buttonMobile'
|
||||||
buttonNewswire = 'buttonMobile'
|
buttonNewswire = 'buttonMobile'
|
||||||
|
@ -6062,7 +6062,11 @@ def headerButtonsFrontScreen(translate: {},
|
||||||
'"><button class="buttonMobile">' + \
|
'"><button class="buttonMobile">' + \
|
||||||
'<span>' + translate['Login'] + \
|
'<span>' + translate['Login'] + \
|
||||||
'</span></button></a>\n'
|
'</span></button></a>\n'
|
||||||
headerStr += ' </div>\n'
|
|
||||||
|
if headerStr:
|
||||||
|
headerStr = \
|
||||||
|
' <div class="frontPageMobileButtons">\n' + \
|
||||||
|
headerStr + ' </div>\n'
|
||||||
return headerStr
|
return headerStr
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue