Login button on profile screen

master
Bob Mottram 2019-07-28 16:52:59 +01:00
parent f4222bd4f4
commit 3fd48a4f89
2 changed files with 18 additions and 1 deletions

View File

@ -280,6 +280,19 @@ input[type=submit] {
font-size: 18px;
}
.loginButton {
background-color: #2965;
color: #000;
float: center;
margin: 0px 10px;
padding: 12px 40px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 24px;
opacity: 0.7;
}
input[type=file] {
background-color: #555;
color: white;

View File

@ -295,6 +295,9 @@ def htmlProfile(baseDir: str,httpPrefix: str,authorized: bool, \
skillsButton='buttonselected'
elif selected=='shares':
sharesButton='buttonselected'
loginButton=''
if not authorized:
loginButton='<br><a href="/login"><button class="loginButton">Login</button></a>'
actor=profileJson['id']
profileStr= \
' <div class="hero-image">' \
@ -302,7 +305,8 @@ def htmlProfile(baseDir: str,httpPrefix: str,authorized: bool, \
' <img src="'+profileJson['icon']['url']+'" alt="'+nickname+'@'+domainFull+'">' \
' <h1>'+preferredName+'</h1>' \
' <p><b>@'+nickname+'@'+domainFull+'</b></p>' \
' <p>'+profileDescription+'</p>' \
' <p>'+profileDescription+'</p>'+ \
loginButton+ \
' </div>' \
'</div>' \
'<div class="container">\n' \