remove mptt driven menu
This commit is contained in:
parent
637921628e
commit
ae6fd7947e
2 changed files with 0 additions and 25 deletions
|
@ -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)
|
||||
|
|
|
@ -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 %}
|
||||
|
||||
|
|
Loading…
Reference in a new issue