{% load wikimenu %}
{% load in_list %}
{% if wikis %}
  <ul class="tree-menu">
    {% for wk in wikis %}
      <li class={% if wk|in_list:current.ancestors_with_self %}"menu-item-open"{% else %}"menu-item-closed"{% endif %}>
        {% if wk.wiki_parent_set.all %}<a href="#" onclick="return menu_toggle(this);"><img class="menu-icon" src="{% if wk|in_list:current.ancestors_with_self %}{{ folderopen }}{% else %}{{ folder }}{% endif %}" /></a>{% endif %}
        <a href="{{ wk.get_absolute_url }}">{% ifequal current wk %}<b>{% endifequal %}{{ wk.name }}{% ifequal current wk %}</b>{% endifequal %}</a>
        {% if wk.wiki_parent_set.all %}{% wikimenu current wk nextlevel maxrec %}{% endif %}
      </li>
    {% endfor %}
  </ul>
{% endif %}
