Skip to content

Instantly share code, notes, and snippets.

@shurik
Created April 9, 2012 22:32
Show Gist options
  • Save shurik/2347089 to your computer and use it in GitHub Desktop.
Save shurik/2347089 to your computer and use it in GitHub Desktop.
diff --git a/project/templates/pages/menus/admin.html b/project/templates/pages/menus/admin.html
index 39299d6..c92e283 100644
--- a/project/templates/pages/menus/admin.html
+++ b/project/templates/pages/menus/admin.html
@@ -41,7 +41,11 @@
</div>
<br clear="all" />
+ {% if page.children.all %}
{% page_menu page %}
+ {% else %}
+ <ul><li id="ordering_-1">&nbsp;</li></ul>
+ {% endif %}
</li>
{% endfor %}
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment