diff options
Diffstat (limited to 'weed/server/master_ui/templates.go')
| -rw-r--r-- | weed/server/master_ui/templates.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/server/master_ui/templates.go b/weed/server/master_ui/templates.go index e9ee2d8d2..bfce617c5 100644 --- a/weed/server/master_ui/templates.go +++ b/weed/server/master_ui/templates.go @@ -33,6 +33,7 @@ var StatusTpl = template.Must(template.New("status").Parse(`<!DOCTYPE html> <th>Max</th> <td>{{ .Topology.Max }}</td> </tr> + {{ with .RaftServer }} <tr> <th>Leader</th> <td><a href="http://{{ .Leader }}">{{ .Leader }}</a></td> @@ -45,6 +46,7 @@ var StatusTpl = template.Must(template.New("status").Parse(`<!DOCTYPE html> {{ end }} </ul></td> </tr> + {{ end }} </tbody> </table> </div> |
