{% load nav_tags %}
{% if nav_id %}
<nav class="clearfix">
{% if cached %}
    {{ cached|safe }}
{% else %}
    {% load_nav nav_id %}
{% endif %}
{% if user.profile.is_superuser %}
<div class="admin-inline">
  <div class="admin-links clear-block"><a href="{% url navs.edit_items nav_id %}?next={{ request.path }}" title="Edit Nav" class="edit-nav">Edit Nav</a></div>
</div>
{% endif %}
</nav>
{% endif %}