Consistent button style on front page

main
Bob Mottram 2020-10-28 18:33:02 +00:00
parent 30f44c1299
commit 6daded8cdf
1 changed files with 17 additions and 36 deletions

View File

@ -3383,42 +3383,23 @@ def htmlProfile(iconsAsButtons: bool, defaultTimeline: str,
if not authorized:
loginButton = '<br>'
# the links button to show left column links
if not iconsAsButtons:
loginButton += \
' <a class="imageAnchorMobile" href="' + \
'/users/news/newswiremobile">' + \
'<img loading="lazy" src="/' + iconsDir + \
'/newswire.png" title="' + translate['News'] + \
'" alt="| ' + translate['News'] + \
'" class="timelineicon"/></a>\n'
loginButton += \
' <a class="imageAnchorMobile" href="' + \
'/users/news/linksmobile">' + \
'<img loading="lazy" src="/' + iconsDir + \
'/links.png" title="' + translate['Edit Links'] + \
'" alt="| ' + translate['Edit Links'] + \
'" class="timelineicon"/></a>\n'
loginButton += \
'<a href="/login"><button class="loginButton">' + \
translate['Login'] + '</button></a>'
else:
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="button">' + \
'<span>' + translate['Login'] + \
'</span></button></a>\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'
loginButton += \
' <a href="/login' + \
'"><button class="button">' + \
'<span>' + translate['Login'] + \
'</span></button></a>\n'
else:
editProfileStr = \
'<a class="imageAnchor" href="' + usersPath + '/editprofile">' + \