Mobile buttons only relevent to news

main
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: if not authorized:
# the links button to show left column links # the links button to show left column links
loginButton = ' <div class="frontPageMobileButtons">\n' loginButton = ' <div class="frontPageMobileButtons">\n'
loginButton += \ if nickname == 'news':
' <a href="' + \ loginButton += \
'/users/news/newswiremobile' + \ ' <a href="' + \
'"><button class="buttonMobile">' + \ '/users/news/newswiremobile' + \
'<span>' + translate['Newswire'] + \ '"><button class="buttonMobile">' + \
'</span></button></a>\n' '<span>' + translate['Newswire'] + \
loginButton += \ '</span></button></a>\n'
' <a href="' + \ loginButton += \
'/users/news/linksmobile' + \ ' <a href="' + \
'"><button class="buttonMobile">' + \ '/users/news/linksmobile' + \
'<span>' + translate['Links'] + \ '"><button class="buttonMobile">' + \
'</span></button></a>\n' '<span>' + translate['Links'] + \
'</span></button></a>\n'
loginButton += \ loginButton += \
' <a href="/login' + \ ' <a href="/login' + \
'"><button class="buttonMobile">' + \ '"><button class="buttonMobile">' + \