40 lines
		
	
	
		
			628 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			628 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {{define "body" -}}
 | |
| <h2>Peers</h2>
 | |
| 
 | |
| <p>
 | |
|   <a href="/admin/peer/create/">Add Peer</a>
 | |
| </p>
 | |
| 
 | |
| {{if .Peers -}}
 | |
| <table>
 | |
|   <thead>
 | |
|     <tr>
 | |
|       <th>PeerIP</th>
 | |
|       <th>Name</th>
 | |
|       <th>Public IP</th>
 | |
|       <th>Port</th>
 | |
|       <th>Mediator</th>
 | |
|     </tr>
 | |
|   </thead>
 | |
|   <tbody>
 | |
|   {{range .Peers -}}
 | |
|   <tr>
 | |
|     <td>
 | |
|       <a href="/admin/peer/view/?PeerIP={{.PeerIP}}">
 | |
|         {{.PeerIP}}
 | |
|       </a>
 | |
|     </td>
 | |
|     <td>{{.Name}}</td>
 | |
|     <td>{{ipToString .PublicIP}}</td>
 | |
|     <td>{{.Port}}</td>
 | |
|     <td>{{if .Mediator}}T{{else}}F{{end}}</td>
 | |
|   </tr>
 | |
|   </tbody>
 | |
|   {{- end}}
 | |
| </table>
 | |
| {{- else}}
 | |
| <p>No peers.</p>
 | |
| {{- end}}
 | |
| 
 | |
| {{- end}}
 |