[ui] format peers

This commit is contained in:
chrislusf 2015-03-24 00:09:20 -07:00
parent 78bc7b393f
commit b113760cf4
2 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@ func (ms *MasterServer) uiStatusHandler(w http.ResponseWriter, r *http.Request)
Version string
Topology interface{}
Peers interface{}
Stats interface{}
Stats map[string]interface{}
Counters *stats.ServerStats
}{
util.VERSION,

View file

@ -32,8 +32,8 @@ var StatusTpl = template.Must(template.New("status").Parse(`<!DOCTYPE html>
<tr>
<td class="col-sm-2 field-label"><label>Peers:</label></td>
<td class="col-sm-10"><ul class="list-unstyled">
{{ range .Peers }}
<li><a href="https://{{ . }}">{{ . }}</a></li>
{{ range $k, $p := .Peers }}
<li><a href="{{ $p.ConnectionString }}">{{ $p.Name }}</a></li>
{{ end }}
</ul></td>
</tr>