{{define "user/monitors.html"}} {{template "user/layout_head" .}}

{{Tp "user_monitors" "user_monitors_title"}}

{{Tp "user_monitors" "user_monitors_hint"}}

{{Tp "user_monitors" "filter_all"}}
{{index (index .Data "Summary") "total"}} / {{index .Data "MaxMonitors"}}
{{Tp "user_monitors" "stat_up"}}
{{index (index .Data "Summary") "up"}}
{{Tp "user_monitors" "stat_down"}}
{{index (index .Data "Summary") "down"}}
{{Tp "user_monitors" "stat_unknown"}}
{{index (index .Data "Summary") "unknown"}}
{{Tp "user_monitors" "auto_refresh_hint"}} --

{{T "table_scroll_hint"}}

{{if editionHasBatchOps}}{{end}} {{range index .Data "Monitors"}} {{if editionHasBatchOps}}{{end}} {{else}} {{end}}
{{T "col_status"}}{{T "col_name"}}{{T "col_url"}}{{T "col_interval"}} {{T "col_code"}}{{T "col_response"}}{{T "col_checked"}}{{T "col_actions"}}
{{stateLabel (asInt .current_state)}}
{{maskText .name}}{{.name}} {{if .show_probe_detail}}
{{range .probe_nodes}} {{if .show_probe_badge}} {{.probe_node_name}} {{end}} {{end}}
{{$m := .}} {{range .probe_nodes}} {{if .show_probe_badge}}
{{.probe_node_name}} {{.node_state_label}} {{T "col_code"}} {{.last_status_code}} {{T "col_response"}} {{.last_response_ms}} ms {{.last_checked_label}}
{{end}} {{end}}
{{else}}
{{range .probe_nodes}} {{if .show_probe_badge}} {{.probe_node_name}} {{end}} {{end}}
{{end}}
{{maskURL .url}}{{.url}} {{formatInterval (asInt .interval_sec)}} {{.last_status_code}} {{.last_response_ms}} ms {{unixTime .last_checked_at}}
{{if eq (asInt .status) 2}} {{else}} {{end}}
{{if eq (index .Data "Filter") "all"}}{{Tp "user_monitors" "no_monitors"}}{{else}}{{Tp "user_monitors" "filter_empty"}}{{end}}
{{$pag := index .Data "Pagination"}} {{if $pag}} {{else}} {{end}}
{{if editionHasBatchOps}}
{{end}}
{{if index .Data "ShowProbeNodeField"}} {{end}} {{template "public/script_chartjs" .}} {{template "user/layout_foot" .}} {{end}}