{{ template "widget-base.html" . }}

{{- define "widget-content" }}
{{- range .Servers }}
<div class="server">
    <div class="server-info">
        <div class="server-details">
            <div class="server-name color-highlight size-h3">{{ if .Name }}{{ .Name }}{{ else }}{{ .Info.Hostname }}{{ end }}</div>
            <div>
                {{- if .IsReachable }}
                    {{ if .Info.HostInfoIsAvailable }}<span {{ dynamicRelativeTimeAttrs .Info.BootTime }}></span>{{ else }}unknown{{ end }} uptim