wip
This commit is contained in:
		
							
								
								
									
										39
									
								
								hub/templates/admin-peer-list.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								hub/templates/admin-peer-list.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,39 @@ | ||||
| {{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>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 .IP}}</td> | ||||
|     <td>{{.Port}}</td> | ||||
|     <td>{{if .Mediator}}T{{else}}F{{end}}</td> | ||||
|   </tr> | ||||
|   </tbody> | ||||
|   {{- end}} | ||||
| </table> | ||||
| {{- else}} | ||||
| <p>No peers.</p> | ||||
| {{- end}} | ||||
|  | ||||
| {{- end}} | ||||
		Reference in New Issue
	
	Block a user