Filter out snapshot content blocks from CMS Explore view
This commit is contained in:
parent
a299ac5bcd
commit
bbaa5882e0
|
|
@ -72,12 +72,12 @@
|
||||||
<div style="margin-top:10px; padding-left: 30px">
|
<div style="margin-top:10px; padding-left: 30px">
|
||||||
<ul>
|
<ul>
|
||||||
{% for c in page.get_children %}
|
{% for c in page.get_children %}
|
||||||
{% if not c.specific.user_created %}
|
{% if not c.specific.user_created and not c.specific.contentblocksnapshot %}
|
||||||
<li>
|
<li>
|
||||||
{% if page_perms.can_edit %}
|
{% if page_perms.can_edit %}
|
||||||
<a href="{% url 'wagtailadmin_pages:edit' c.id %}"
|
<a href="{% url 'wagtailadmin_pages:edit' c.id %}"
|
||||||
title="{% trans 'Edit this page' %}"> {{ c.get_admin_display_title }}
|
title="{% trans 'Edit this page' %}"> {{ c.get_admin_display_title }}
|
||||||
</a>
|
</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ c.get_admin_display_title }}
|
{{ c.get_admin_display_title }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue