Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add publication date to collections #3369

Merged
merged 12 commits into from
Dec 20, 2018
16 changes: 8 additions & 8 deletions templates/collection/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
k-brk marked this conversation as resolved.
Show resolved Hide resolved
{% 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 %}
Expand Down