-------------------------------------------------------------------------------
-- Insert
-------------------------------------------------------------------------------
{{define "SourceInsert" -}}
{{template "PageStart"}}
{{template "PageEnd"}}
{{- end}}
-------------------------------------------------------------------------------
-- List
-------------------------------------------------------------------------------
{{define "SourceList" -}}
{{template "PageStart"}}
Sources
{{template "PageEnd"}}
{{- end}}
-------------------------------------------------------------------------------
-- View
-------------------------------------------------------------------------------
{{define "SourceView" -}}
{{template "PageStart"}}
- API Key
- {{.APIKey}}
- Description
- {{.Description}}
- Last Seen
- {{.LastSeenAt.Format "2006-01-02 15:04"}}
- Alert Timeout (sec)
- {{.AlertTimeout}}
- Alerted At
- {{.AlertedAt.Format "2006-01-02 15:04"}}
- Log Action
- {{.LogAction}}
- Alert Action
- {{.AlertAction}}
{{template "PageEnd"}}
{{- end}}
-------------------------------------------------------------------------------
-- Update
-------------------------------------------------------------------------------
{{define "SourceUpdate" -}}
{{template "PageStart"}}
{{template "PageEnd"}}
{{- end}}
-------------------------------------------------------------------------------
-- Delete
-------------------------------------------------------------------------------
{{define "SourceDelete" -}}
{{template "PageStart"}}
Really delete source {{.Source.Name}}?
{{template "PageEnd"}}
{{- end}}