Front page buttons within div

merge-requests/8/head
Bob Mottram 2020-10-30 10:24:11 +00:00
parent 8923b5f1fa
commit 79ff9f1316
2 changed files with 8 additions and 4 deletions

View File

@ -1312,7 +1312,9 @@ div.container {
.buttonMobile { .buttonMobile {
background: transparent; background: transparent;
border: none !important; border: none !important;
font-size:0; font-size: 0;
padding: 0 0;
margin: 0 0;
} }
.button { .button {
border-radius: var(--button-corner-radius); border-radius: var(--button-corner-radius);

View File

@ -3408,23 +3408,25 @@ def htmlProfile(cssCache: {}, iconsAsButtons: bool,
iconsDir = getIconsDir(baseDir) iconsDir = getIconsDir(baseDir)
if not authorized: if not authorized:
# the links button to show left column links # the links button to show left column links
loginButton = ' <div>\n'
loginButton = \ loginButton = \
' <a href="' + \ ' <a href="' + \
'/users/news/newswiremobile' + \ '/users/news/newswiremobile' + \
'"><button class="buttonMobile">' + \ '"><button class="buttonMobile">' + \
'<span>' + translate['Newswire'] + \ '<span>' + translate['Newswire'] + \
'</span></button></a>\n' '</span></button></a>\n'
loginButton += \ loginButton += \
' <a href="' + \ ' <a href="' + \
'/users/news/linksmobile' + \ '/users/news/linksmobile' + \
'"><button class="buttonMobile">' + \ '"><button class="buttonMobile">' + \
'<span>' + translate['Links'] + \ '<span>' + translate['Links'] + \
'</span></button></a>\n' '</span></button></a>\n'
loginButton += \ loginButton += \
' <a href="/login' + \ ' <a href="/login' + \
'"><button class="buttonMobile">' + \ '"><button class="buttonMobile">' + \
'<span>' + translate['Login'] + \ '<span>' + translate['Login'] + \
'</span></button></a>\n' '</span></button></a>\n'
loginButton = ' </div>\n'
else: else:
editProfileStr = \ editProfileStr = \
'<a class="imageAnchor" href="' + usersPath + '/editprofile">' + \ '<a class="imageAnchor" href="' + usersPath + '/editprofile">' + \