Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
collection publication logic
k-brk2fecc3489cfc
diff --git a/templates/collection/index.html b/templates/collection/index.htmlindex 1d86734460..5ba4a24317 100644--- a/templates/collection/index.html+++ b/templates/collection/index.html@@ -10,19 +10,19 @@{% endblock %}{% block collection_published_warning %}- {% if not object.is_published %}- <div class="alert alert-warning" role="alert">- {% blocktrans context "Unavailable collection detail text" %}- <strong>Warning!</strong>- You are previewing a collection that is not published.- {% endblocktrans %}- </div>- {% elif object.published_date is not None %}+ {% if not object.is_visible %}<div class="alert alert-warning" role="alert">+ {% if object.published_date %}{% blocktrans trimmed with date=object.published_date|date context "Unpublished collection details text" %}<strong>Warning!</strong>You are previewing a collection that will become visible on <strong>{{ date }}</strong>.{% endblocktrans %}+ {% else %}+ {% blocktrans context "Unavailable collection detail text" %}+ <strong>Warning!</strong>+ You are previewing a collection that is not published.+ {% endblocktrans %}+ {% endif %}</div>{% endif %}{% endblock %}