Skip to content

Commit

Permalink
More finetuning of collection behaviour when there are blocks but no …
Browse files Browse the repository at this point in the history
…body.
  • Loading branch information
mworrell committed Jun 20, 2012
1 parent 0651a86 commit d1db4ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
@@ -1,7 +1,7 @@
{% include "_subnav.tpl" %}

{% include "_content_list.tpl" list=id.o.hasfeatured %}
{% if id.body or id.blocks %}
{% if id.body %}
{% include "_content_list.tpl" list=id.o.haspart in_collection=id %}
{% endif %}
{% include "_content_list.tpl" list=id.o.relation %}
9 changes: 5 additions & 4 deletions modules/mod_base_site/templates/tablet/page.collection.tpl
Expand Up @@ -2,10 +2,11 @@

{% block main %}
{% inherit %}
{% if not (id.body or id.blocks) %}
{% if not id.body %}
{% include "_content_list.tpl" list=id.o.haspart in_collection=id is_large %}

{% include "_page_depiction.tpl" is_landscape %}
{% if not id.blocks %}
{% include "_page_depiction.tpl" is_landscape %}
{% endif %}
{% include "_page_thumbnails.tpl" %}
{% endif %}
{% endblock %}
Expand All @@ -17,7 +18,7 @@
{% endblock %}

{% block thumbnails %}
{% if id.body or id.blocks %}
{% if id.body %}
{% inherit %}
{% endif %}
{% endblock %}
Expand Down

0 comments on commit d1db4ac

Please sign in to comment.