mirror of
				https://github.com/h44z/wg-portal.git
				synced 2025-11-04 08:06:18 +00:00 
			
		
		
		
	peer expiry feature: frontend updates
This commit is contained in:
		@@ -246,9 +246,9 @@
 | 
			
		||||
                                        {{if $p.DeactivatedAt}}
 | 
			
		||||
                                        <div class="pull-right-lg mt-lg-5 disabled-peer">Peer is disabled! <i class="fas fa-comment-dots" data-toggle="tooltip" data-placement="left" title="" data-original-title="Reason: {{$p.DeactivatedReason}}"></i></div>
 | 
			
		||||
                                        {{end}}
 | 
			
		||||
                                        {{if $p.WillExpire}}{{if not $p.DeactivatedAt}}
 | 
			
		||||
                                        {{if $p.WillExpire}}
 | 
			
		||||
                                        <div class="pull-right-lg mt-lg-5 expiring-peer"><i class="fas fa-exclamation-triangle"></i> Peer will expire on {{ formatDate $p.ExpiresAt}}</div>
 | 
			
		||||
                                        {{end}}{{end}}
 | 
			
		||||
                                        {{end}}
 | 
			
		||||
                                        {{if eq $.Device.Type "server"}}
 | 
			
		||||
                                        <div class="pull-right-lg mt-lg-5 mt-md-3">
 | 
			
		||||
                                        <a href="/admin/peer/download?pkey={{$p.PublicKey}}" class="btn btn-primary" title="Download configuration">Download</a>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user