From 00f5d17147a4ae7add3c487fb9784e9f1473c3b4 Mon Sep 17 00:00:00 2001 From: Mantas Vilčinskas Date: Wed, 12 Aug 2020 14:56:17 +0300 Subject: Small changes. Laying the groundwork for timeago.js --- exampleSite/content/issues/2018-06-13-maintenance-window.md | 13 ------------- exampleSite/content/issues/2020-06-13-maintenance-window.md | 13 +++++++++++++ i18n/en.yaml | 12 ++++++++++++ i18n/lt.yaml | 12 ++++++++++++ static/admin/config.yml | 10 ++++++++++ 5 files changed, 47 insertions(+), 13 deletions(-) delete mode 100644 exampleSite/content/issues/2018-06-13-maintenance-window.md create mode 100644 exampleSite/content/issues/2020-06-13-maintenance-window.md diff --git a/exampleSite/content/issues/2018-06-13-maintenance-window.md b/exampleSite/content/issues/2018-06-13-maintenance-window.md deleted file mode 100644 index dae3afb..0000000 --- a/exampleSite/content/issues/2018-06-13-maintenance-window.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -title: Maintenance Window -date: 2018-06-13 15:54:00 -resolved: true -resolvedWhen: 2018-06-13 16:54:00 -# Possible severity levels: down, disrupted, notice -severity: disrupted -affected: - - API -section: issue ---- - -*Just began* - We're currently shutting down the network. {{< track "2018-06-13 15:54:00" >}} diff --git a/exampleSite/content/issues/2020-06-13-maintenance-window.md b/exampleSite/content/issues/2020-06-13-maintenance-window.md new file mode 100644 index 0000000..404ccc4 --- /dev/null +++ b/exampleSite/content/issues/2020-06-13-maintenance-window.md @@ -0,0 +1,13 @@ +--- +title: Maintenance Window +date: 2020-06-13 15:54:00 +resolved: true +resolvedWhen: 2020-06-13 16:54:00 +# Possible severity levels: down, disrupted, notice +severity: disrupted +affected: + - API +section: issue +--- + +*Just began* - We're currently shutting down the network. {{< track "2018-06-13 15:54:00" >}} diff --git a/i18n/en.yaml b/i18n/en.yaml index 47bb7e1..911bf2a 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -147,3 +147,15 @@ translation: Recently, based on average data, it looks like this system has gone down for about - id: averageSystemsDowntimeSecondPart translation: minutes at a time. + + +## +## v4.4 +## + +- id: in + translation: in +- id: weeksAgo + translation: "w" +- id: yearAgo + translation: " metus" \ No newline at end of file diff --git a/i18n/lt.yaml b/i18n/lt.yaml index 5c1368d..da11d6a 100644 --- a/i18n/lt.yaml +++ b/i18n/lt.yaml @@ -147,3 +147,15 @@ translation: Pastaruoju metu, regis, šis komponentas sutrikimų metu neveikia apie - id: averageSystemsDowntimeSecondPart translation: min. + + +## +## v4.4 +## + +- id: in + translation: in +- id: weeksAgo + translation: " sav." # has to include space +- id: yearAgo + translation: " metus" \ No newline at end of file diff --git a/static/admin/config.yml b/static/admin/config.yml index eacf165..f7a7182 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -38,6 +38,9 @@ collections: - label: Drafts field: draft pattern: true + - label: Published (not a draft) + field: draft + pattern: false - label: "High severity (down)" field: severity pattern: 'down' @@ -77,6 +80,13 @@ collections: folder: "content/pages" create: true slug: "{{slug}}" + view_filters: + - label: Drafts + field: draft + pattern: true + - label: Published (not a draft) + field: draft + pattern: false fields: - {label: "Title", name: "title", widget: "string"} - {label: "Hide this from the site (make it a draft) 👀", name: "draft", widget: "boolean", required: false, default: false} -- cgit v1.2.3-70-g09d2