diff --git a/cfgov/wagtailadmin_overrides/templates/wagtailadmin/shared/page_status_tag_new.html b/cfgov/wagtailadmin_overrides/templates/wagtailadmin/shared/page_status_tag_new.html new file mode 100644 index 00000000000..aa870abda97 --- /dev/null +++ b/cfgov/wagtailadmin_overrides/templates/wagtailadmin/shared/page_status_tag_new.html @@ -0,0 +1,47 @@ +{% load i18n wagtailadmin_tags %} +{% comment %} + + Variables accepted by this template: + + - `page` - A wagtail page object + - `classes` - String of extra css classes to pass to this component +{% endcomment %} + +{% comment %} Unable to use pageurl template tag here due to issues in unit tests where request is not yet available - see #10157 {% endcomment %} +{% if page.live and page.full_url is not None %} + {% test_page_is_public page as is_public %} + {% trans 'Live' as live_label %} + {% comment %} Two copies of the tag, visibility is toggled by the privacy switch JS {% endcomment %} + + {% icon classname='w-w-4 w-h-4 w-mr-1' name="view" %} + {{ live_label }} + + + {% icon classname='w-w-4 w-h-4 w-mr-1' name="no-view" %} + {{ live_label }} + +{% endif %}