{% load wiki_macro_tags %}


<li>
  <a href="{% url 'wiki:get' path=parent.path article_id=parent.article.id %}">
    {{ parent.article.current_revision.title }}
    {% if not parent.article.other_read %}<i class="fa fa-lock"></i>{% endif %}
  </a>
{% if parent.article.other_read %}
  {% with parent.children.active.default_order as children %}
  {% if parent.level < depth and children.count %}
    <ul>
        {% for child in children %}
            {% article_list child depth %}
        {% endfor %}
    </ul>
  {% endif %}
  {% endwith %}
{% endif %}
</li>
