remove mptt driven menu

This commit is contained in:
Luke Hatcher 2012-05-22 00:37:06 -04:00
parent 637921628e
commit ae6fd7947e
2 changed files with 0 additions and 25 deletions

View file

@ -10,10 +10,3 @@ class PageAdmin(MPTTModelAdmin):
list_display = ("title", "published", "status")
admin.site.register(Page, PageAdmin)
class MenuItemAdmin(MPTTModelAdmin):
prepopulated_fields = {"slug": ("name",)}
list_display = ("name", "login_required", "published",)
admin.site.register(MenuItem, MenuItemAdmin)

View file

@ -2,7 +2,6 @@
{% load metron_tags %}
{% load i18n %}
{% load mptt_tags %}
{% block extra_head_base %}
{% block extra_head %}{% endblock %}
@ -10,23 +9,6 @@
{% block nav %}
<ul class="nav">
{% recursetree menuitems %}
{% if not node.is_leaf_node %}
<li id="tab_{{ node.slug }}" class="dropdown">
<a href="#"
class="dropdown-toggle"
data-toggle="dropdown">
{{ node.name }}
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
{{ children }}
</ul>
</li>
{% else %}
<li id="tab_{{ node.slug }}"><a href="{{ node.url }}">{{ node.name }}</a></li>
{% endif %}
{% endrecursetree %}
</ul>
{% endblock %}