diff options
author | Mantas <11616378+mistermantas@users.noreply.github.com> | 2019-04-08 21:46:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-08 21:46:03 +0300 |
commit | d69ebc475fc67c65c52c206b7cc1eb70e1633645 (patch) | |
tree | 4808b9ae6e28372ced486b1e827d8300406dcbe0 /static/admin | |
parent | 9c2eb26b5732e0a9087dd024f7fd0b10fec9ef74 (diff) | |
parent | 7f610d23ed696d050ed2d1e405f6bba339a497c4 (diff) |
cState v3.1.0 | #54 | here goes nothing
cState v3.1.0
Diffstat (limited to 'static/admin')
-rw-r--r-- | static/admin/config.yml | 28 | ||||
-rw-r--r-- | static/admin/index.html | 2 |
2 files changed, 23 insertions, 7 deletions
diff --git a/static/admin/config.yml b/static/admin/config.yml index 014372e..5bee7cb 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -27,14 +27,14 @@ collections: fields: - {label: "Mark as incident", name: "section", widget: "hidden", default: "issue"} - {label: "Title", name: "title", widget: "string"} - - {label: "Start date & time (your time)", name: "date", widget: "datetime"} - - {label: "Mark as resolved", name: "resolved", widget: "boolean", required: false, default: false} - - {label: "End date & time (your time)", name: "resolvedWhen", widget: "datetime", required: false} - - label: "Affected systems (use exact name, separated by commas)" + - {label: "Start date & time (your time) β", name: "date", widget: "datetime"} + - {label: "Mark as resolved β", name: "resolved", widget: "boolean", required: false, default: false} + - {label: "End date & time (your time) β", name: "resolvedWhen", widget: "datetime", required: false} + - label: "Affected systems (use exact name, separated by commas) π§" name: "affected" widget: "list" required: false - - label: "Severity" + - label: "Severity β " name: "severity" widget: "select" options: @@ -45,6 +45,19 @@ collections: name: "body" widget: "markdown" default: "*Investigating* - We are investigating a potential issue that might affect the uptime of one our of services. We are sorry for any inconvenience this may cause you. This incident post will be updated once we have more information." + - name: "pages" + label: "Pages" + label_singular: "Page" + description: "π Create and manage pages (not connected or related to issues). Good for things like about pages, SLAs, ways of contact, and so forth." + folder: "content/pages" + create: true + slug: "{{slug}}" + fields: + - {label: "Title", name: "title", widget: "string"} + - {label: "Description for SEO and social media", name: "description", widget: "string", required: false} + - label: "Markdown (or HTML) body" + name: "body" + widget: "markdown" - name: "settings" label: "Settings" description: "β Please be warned that by editing settings from Netlify CMS you are _OVERWRITING_ what you have in the original Git repository, meaning any CURRENT SETTINGS OR COMMENTS left will be deleted." @@ -75,8 +88,11 @@ collections: options: - { label: "πΊπΈ English (default)", value: "en" } - { label: "π±πΉ Lithuanian (official)", value: "lt" } + - { label: "πΉπ· Turkish", value: "tr" } + - { label: "π©πͺ Deutsch", value: "de" } + - { label: "π«π· French", value: "fr" } - label: 'Site language in code for html[lang]' - hint: 'Use the ISO 639-1 defined abbreviations. Examples: en, lt, de. Fully explained here: https://github.com/mistermantas/cstate/wiki/Customization#changing-site-language' + hint: 'Use the ISO 639-1 defined abbreviations. Examples: en, lt, de. Fully explained here: https://github.com/cstate/cstate/wiki/Customization#changing-site-language' name: 'languageCode' widget: 'string' default: 'en' diff --git a/static/admin/index.html b/static/admin/index.html index 03fce04..028edc1 100644 --- a/static/admin/index.html +++ b/static/admin/index.html @@ -34,7 +34,7 @@ var resultOfState = 'This incident has been resolved.'; } - if (layoutPostDateEnd.getYear() === layoutPostDate.getYear()) { + if (layoutPostDateEnd.getFullYear() === layoutPostDate.getFullYear()) { if (layoutPostDateEnd.getHours() === layoutPostDate.getHours()) { if (layoutPostDateEnd.getMinutes() === layoutPostDate.getMinutes()) { var resultOfStateProps = {"class": "red"}; |