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 --- static/admin/config.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'static/admin/config.yml') 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