forked from indymedia/epicyon
				
			Different donate link style if logged in
							parent
							
								
									0b3809191f
								
							
						
					
					
						commit
						728c9bfcb6
					
				|  | @ -432,6 +432,10 @@ input[type=submit] { | ||||||
|     opacity: 0.7; |     opacity: 0.7; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | .donateLink { | ||||||
|  |     font-size: var(--font-size3); | ||||||
|  | } | ||||||
|  | 
 | ||||||
| input[type=submit]:hover { | input[type=submit]:hover { | ||||||
|     background-color: var(--button-background); |     background-color: var(--button-background); | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -1334,12 +1334,13 @@ def htmlProfile(translate: {},projectVersion: str, \ | ||||||
|     editProfileStr='' |     editProfileStr='' | ||||||
|     actor=profileJson['id'] |     actor=profileJson['id'] | ||||||
| 
 | 
 | ||||||
|     donateButton='' |     donateLink='' | ||||||
|     donateUrl=getDonationUrl(profileJson) |     donateUrl=getDonationUrl(profileJson) | ||||||
|     if donateUrl: |     if donateUrl: | ||||||
|         if authorized: |         if authorized: | ||||||
|             donateButton+='<br>' |             donateLink+='<br><a href="'+donateUrl+'" class="donateLink">'+translate['Donate']+'</a>' | ||||||
|         donateButton+='<a href="'+donateUrl+'"><button class="donateButton">'+translate['Donate']+'</button></a>' |         else: | ||||||
|  |             donateLink='<br><a href="'+donateUrl+'"><button class="loginLink">'+translate['Donate']+'</button></a>' | ||||||
| 
 | 
 | ||||||
|     if not authorized: |     if not authorized: | ||||||
|         loginButton='<br><a href="/login"><button class="loginButton">'+translate['Login']+'</button></a>' |         loginButton='<br><a href="/login"><button class="loginButton">'+translate['Login']+'</button></a>' | ||||||
|  | @ -1401,7 +1402,7 @@ def htmlProfile(translate: {},projectVersion: str, \ | ||||||
|         '    <h1>'+displayName+'</h1>' \ |         '    <h1>'+displayName+'</h1>' \ | ||||||
|         '    <p><b>@'+nickname+'@'+domainFull+'</b></p>' \ |         '    <p><b>@'+nickname+'@'+domainFull+'</b></p>' \ | ||||||
|         '    <p>'+profileDescriptionShort+'</p>'+ \ |         '    <p>'+profileDescriptionShort+'</p>'+ \ | ||||||
|         loginButton+donateButton+ \ |         loginButton+donateLink+ \ | ||||||
|         '  </div>' \ |         '  </div>' \ | ||||||
|         '</div>' |         '</div>' | ||||||
|     profileStr= \ |     profileStr= \ | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue