Mobile buttons only relevent to news

merge-requests/8/head
Bob Mottram 2020-10-30 11:22:02 +00:00
parent 626e55b953
commit 4eecbe56af
1 changed files with 13 additions and 12 deletions

View File

@ -3409,18 +3409,19 @@ def htmlProfile(cssCache: {}, iconsAsButtons: bool,
if not authorized:
# the links button to show left column links
loginButton = ' <div class="frontPageMobileButtons">\n'
loginButton += \
' <a href="' + \
'/users/news/newswiremobile' + \
'"><button class="buttonMobile">' + \
'<span>' + translate['Newswire'] + \
'</span></button></a>\n'
loginButton += \
' <a href="' + \
'/users/news/linksmobile' + \
'"><button class="buttonMobile">' + \
'<span>' + translate['Links'] + \
'</span></button></a>\n'
if nickname == 'news':
loginButton += \
' <a href="' + \
'/users/news/newswiremobile' + \
'"><button class="buttonMobile">' + \
'<span>' + translate['Newswire'] + \
'</span></button></a>\n'
loginButton += \
' <a href="' + \
'/users/news/linksmobile' + \
'"><button class="buttonMobile">' + \
'<span>' + translate['Links'] + \
'</span></button></a>\n'
loginButton += \
' <a href="/login' + \
'"><button class="buttonMobile">' + \