Skip to content

Commit

Permalink
small fixes to menus
Browse files Browse the repository at this point in the history
  • Loading branch information
jscott1989 committed Dec 1, 2016
1 parent ab84ef2 commit d57e418
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/admin/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ def setup_form(form):
def menus(request):
"""Edit menus."""
menus = [{"menu": m, "name": navigation_item_name(m.name)}
for m in NavigationItemConfiguration.objects.all()]
for m in NavigationItemConfiguration.objects.all()
if plugin_enabled(m.name.rsplit(".", 1)[0])]
allocated_menus = [m["menu"].name for m in menus]

unallocated_menus = []
Expand Down
2 changes: 1 addition & 1 deletion src/templates/admin/menus.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h2 class="block__header-text">Menus</h2>
<tr>
<td>{{menu.name}}</td>
<td>
{% if not menu.menu.order == 1 %}
{% if not menu.menu.order == 0 %}
<form class="form form--inline" method="POST" action="{% url "move_menu_up" menu.menu.pk %}">
{% csrf_token %}
<button type="submit" class="btn--plain"><i class="fa fa-arrow-up"></i></button>
Expand Down

0 comments on commit d57e418

Please sign in to comment.