Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Improve storefront warnings

akjanik83d6a57e0ded
diff --git a/templates/page/details.html b/templates/page/details.html
index 6dc039defe..db5a77ab4e 100644
--- a/templates/page/details.html
+++ b/templates/page/details.html
@@ -20,9 +20,16 @@
{% endblock breadcrumb %}
{% block content %}
- {% if not is_visible %}
+ {% if not page.is_visible %}
<div class="alert alert-warning" role="alert">
- {% blocktrans trimmed with date=page.available_on|date context "Page details text" %}
+ {% blocktrans context "Unavailable page detail text" %}
+ <strong>Warning!</strong>
+ You are previewing a page that is not visible.
+ {% endblocktrans %}
+ </div>
+ {% elif not is_visible %}
+ <div class="alert alert-warning" role="alert">
+ {% blocktrans trimmed with date=page.available_on|date context "Unpublished page details text" %}
<strong>Warning!</strong>
You are previewing a page that will become visible on <strong>{{ date }}</strong>.
{% endblocktrans %}