Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/yakky/issue_1314_bis' into develop
Browse files Browse the repository at this point in the history
Conflicts:
	cms/templates/admin/cms/page/lazy_child_menu.html
  • Loading branch information
beniwohli committed Jul 31, 2012
2 parents 33f8c85 + 7f4ceaa commit fda830a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
12 changes: 5 additions & 7 deletions cms/templates/admin/cms/page/lazy_child_menu.html
@@ -1,10 +1,8 @@
{% load cms_admin i18n adminmedia %}<li id="page_{{page.pk}}" class="{% if cl.is_filtered %}leaf{% endif %}{% if forloop.last %} last{% endif %}{% if has_move_page_permission %} moveable{% endif %}{%if page.children.all %} closed{% endif %}"{% if metadata %} mdata="{{ metadata }}{% endif %}" rel="{% ifequal page.level 0 %}topnode{% else %}node{% endifequal %}">
{% load cms_admin i18n adminmedia %}{% with page.children.exists as has_children %}<li id="page_{{page.pk}}" class="{% if cl.is_filtered %}leaf{% endif %}{% if has_move_page_permission %} moveable{% endif %}{% if has_children %} closed{% endif %}"{% if metadata %} mdata="{{ metadata }}{% endif %}" rel="{% ifequal page.level 0 %}topnode{% else %}node{% endifequal %}">

{% include 'admin/cms/page/menu_item.html' %}

{% with page.children as children %}
{% if children %}<ul{% if page.last %} class="last"{% endif %}>
</ul>{% endif %}
{% endwith %}
{% if has_children %}<ul{% if page.last %} class="last"{% endif %}>
</ul>{% endif %}
</li>


{% endwith %}
8 changes: 3 additions & 5 deletions cms/templates/admin/cms/page/lazy_menu.html
@@ -1,8 +1,6 @@
{% load cms_admin i18n adminmedia %}
{% with page.children.all as children %}
{% if children %}
{% for child in children %}
{% show_lazy_admin_menu child %}
{% endfor %}
{% endif %}
{% for child in children %}
{% show_lazy_admin_menu child %}
{% endfor %}
{% endwith %}

0 comments on commit fda830a

Please sign in to comment.