forked from indymedia/epicyon
Login button on profile screen
parent
f4222bd4f4
commit
3fd48a4f89
|
@ -280,6 +280,19 @@ input[type=submit] {
|
||||||
font-size: 18px;
|
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] {
|
input[type=file] {
|
||||||
background-color: #555;
|
background-color: #555;
|
||||||
color: white;
|
color: white;
|
||||||
|
|
|
@ -295,6 +295,9 @@ def htmlProfile(baseDir: str,httpPrefix: str,authorized: bool, \
|
||||||
skillsButton='buttonselected'
|
skillsButton='buttonselected'
|
||||||
elif selected=='shares':
|
elif selected=='shares':
|
||||||
sharesButton='buttonselected'
|
sharesButton='buttonselected'
|
||||||
|
loginButton=''
|
||||||
|
if not authorized:
|
||||||
|
loginButton='<br><a href="/login"><button class="loginButton">Login</button></a>'
|
||||||
actor=profileJson['id']
|
actor=profileJson['id']
|
||||||
profileStr= \
|
profileStr= \
|
||||||
' <div class="hero-image">' \
|
' <div class="hero-image">' \
|
||||||
|
@ -302,7 +305,8 @@ def htmlProfile(baseDir: str,httpPrefix: str,authorized: bool, \
|
||||||
' <img src="'+profileJson['icon']['url']+'" alt="'+nickname+'@'+domainFull+'">' \
|
' <img src="'+profileJson['icon']['url']+'" alt="'+nickname+'@'+domainFull+'">' \
|
||||||
' <h1>'+preferredName+'</h1>' \
|
' <h1>'+preferredName+'</h1>' \
|
||||||
' <p><b>@'+nickname+'@'+domainFull+'</b></p>' \
|
' <p><b>@'+nickname+'@'+domainFull+'</b></p>' \
|
||||||
' <p>'+profileDescription+'</p>' \
|
' <p>'+profileDescription+'</p>'+ \
|
||||||
|
loginButton+ \
|
||||||
' </div>' \
|
' </div>' \
|
||||||
'</div>' \
|
'</div>' \
|
||||||
'<div class="container">\n' \
|
'<div class="container">\n' \
|
||||||
|
|
Loading…
Reference in New Issue