aboutsummaryrefslogtreecommitdiff
path: root/static/admin
diff options
context:
space:
mode:
Diffstat (limited to 'static/admin')
-rw-r--r--static/admin/config.yml35
-rw-r--r--static/admin/index.html2
2 files changed, 23 insertions, 14 deletions
diff --git a/static/admin/config.yml b/static/admin/config.yml
index 2909785..16ff862 100644
--- a/static/admin/config.yml
+++ b/static/admin/config.yml
@@ -13,28 +13,37 @@ backend:
name: git-gateway
media_folder: "static/img"
public_folder: "/img"
+display_url: /
# Do not change this!
collections:
# Used in routes, e.g., /admin/collections/blog
- name: "issue"
# Used in the UI
- label: "Issues"
+ label: "Incident"
# The path to the folder where the documents are stored
folder: "content/issues"
# Allow users to create new documents in this collection
create: true
# Filename template, e.g., YYYY-MM-DD-title.md
- slug: "{{slug}}.md"
+ slug: "{{slug}}"
# The fields for each document, usually in front matter
fields:
- - {label: "Section", name: "Section", widget: "hidden", default: "issue"}
-
- - {label: "What is this issue about?", name: "Title", widget: "string"}
- - {label: "When did this issue begin?", name: "Date", widget: "datetime"}
-
- - {label: "Has it now been fully resolved?", name: "Resolved", widget: "boolean"}
- - {label: "When did downtime end (if it did)?", name: "ResolvedWhen", widget: "date"}
-
- - {label: "What is the severity?", name: "Severity", widget: "string", options: ['disrupted', 'down', 'notice']}
- - {label: "What is affected? Example: ['API', 'Media Proxy']", name: "Affected", widget: "string"}
- - {label: "Write any relevant notes here.", name: "body", widget: "markdown"}
+ # Hidden
+ - {label: "Mark as incident", name: "Section", widget: "hidden", default: "issue"}
+ # Very basic
+ - {label: "Title", name: "Title", widget: "string"}
+ - {label: "Start date & time", name: "Date", widget: "datetime"}
+ - {label: "Mark as resolved", name: "Resolved", widget: "boolean"}
+ - {label: "End date & time", name: "ResolvedWhen", widget: "datetime", required: false}
+ - label: "Severity"
+ name: "Severity"
+ widget: "select"
+ options:
+ - { label: "High (Down)", value: "down" }
+ - { label: "Medium (Disrupted)", value: "disrupted" }
+ - { label: "Low (Maintenance)", value: "notice" }
+ - label: "Affected systems (use exact name)"
+ name: "Affected"
+ widget: "list"
+ required: false
+ - {label: "Sequence of events", name: "body", widget: "markdown", default: "We are investigating a potential issue that might affect the uptime of one our of services."}
diff --git a/static/admin/index.html b/static/admin/index.html
index 5d0b4fe..f8ef914 100644
--- a/static/admin/index.html
+++ b/static/admin/index.html
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>{{ .Site.Title }} | cState Admin</title>
+ <title>cState Admin</title>
<link rel="stylesheet" href="https://unpkg.com/netlify-cms@~1.1/dist/cms.css" />
</head>
<body>