mirror of https://gitlab.com/bashrc2/epicyon
Login button on profile screen
parent
f4222bd4f4
commit
3fd48a4f89
|
@ -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;
|
||||
|
|
|
@ -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' \
|
||||
|
|
Loading…
Reference in New Issue