diff options
author | Mantas <11616378+mistermantas@users.noreply.github.com> | 2018-08-03 11:50:16 +0300 |
---|---|---|
committer | Mantas <11616378+mistermantas@users.noreply.github.com> | 2018-08-03 11:50:16 +0300 |
commit | 8a19ae81974657b22e50fb3db7100c8c8f084232 (patch) | |
tree | b945823ce9b9a7dfce21dfe53ae31ef6e14c1043 | |
parent | be3bcf16385e0f7baee0be00d09dbe436ad3bff1 (diff) |
More work towards #16, should fix #17
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | layouts/issues/issue.html | 2 | ||||
-rw-r--r-- | static/admin/config.yml | 35 |
3 files changed, 25 insertions, 14 deletions
@@ -99,7 +99,7 @@ Do this from root: git submodule foreach git pull origin master ``` -More info on [Stack Overflow](https://stackoverflow.com/a/5828396). +More info about updating on [Stack Overflow](https://stackoverflow.com/a/5828396). You may also run into unexpected behavior with cloning, [see this thread](https://stackoverflow.com/questions/3796927/how-to-git-clone-including-submodules). ## FAQ diff --git a/layouts/issues/issue.html b/layouts/issues/issue.html index c4d5ab6..acc3fb3 100644 --- a/layouts/issues/issue.html +++ b/layouts/issues/issue.html @@ -26,7 +26,7 @@ {{ end }} </span> {{ else }} - <span class="error">Ongoing, services {{ .Params.severity }}</span> + <em>Ongoing, services {{ if eq .Params.severity "notice" }}on notice{{ else }}{{ .Params.severity }}{{ end }}</em> {{ end }} <h3> <a href="{{ .Permalink }}">{{ .Title }}</a> diff --git a/static/admin/config.yml b/static/admin/config.yml index 16ff862..2d95a5f 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -14,36 +14,47 @@ backend: 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: "Incident" - # The path to the folder where the documents are stored + label: "Incidents" + label_singular: "Incident" + description: "Welcome to the cState admin panel! Here you can create new incidents or manage existing ones. Go ahead and give it a shot." 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}}" - # The fields for each document, usually in front matter + slug: "{{year}}-{{month}}-{{day}}-{{slug}}" fields: # 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: "Start date & time (your time)", name: "Date", widget: "datetime"} + - {label: "Mark as resolved", name: "Resolved", widget: "boolean", required: false} + - {label: "End date & time (your 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: "Low (Announcement)", value: "notice" } - label: "Affected systems (use exact name)" name: "Affected" widget: "list" + allow_add: true 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."} + - name: "settings" + label: "Settings" + delete: false + editor: + preview: false + files: + - name: "config" + label: "Site Configuration" + file: "config.yml" + description: "Here you can visually edit the settings of your cState instance." + fields: + - {label: "Site title", name: "title", widget: "string"} + - {label: "Should posts, which have a publish date from the future, be built? Useful for sharing upcoming maintenance, etc.", name: buildFuture, default: true, widget: boolean} |