{% extends "base.html" %} {% block title %}{{ category.display_name }} - Vim Docs{% endblock %} {% block header_title %} {{ category.display_name }} {% endblock %} {% block header_actions %} New Document {% if category.is_root %}New Category{% else %}New Subcategory{% endif %} {% if not category.is_root %} Edit Category {% endif %} All Documents {% endblock %} {% block content %}

{{ category.display_name }}

{% if category.description %} {{ category.description }} {% else %} {% if category.is_root %} The default container for all your documents and categories {% else %} A category for organizing your documents {% endif %} {% endif %}
Home {% if category.parent %} / {{ category.parent.display_name }} {% endif %} {% if not category.is_root %} / {{ category.display_name }} {% endif %}
{% if category.children.count() > 0 %}

Subcategories

{% endif %}

Documents

{% if category.documents.count() > 0 %} {% for doc in category.documents %}
{{ (doc.content[:100] + '...') if doc.content|length > 100 else doc.content }}
{{ doc.updated_date.strftime('%b %d, %Y') }}
{% if doc.tags %}
{% for tag in doc.tags %} {{ tag.name }} {% endfor %}
{% endif %}
{% endfor %} {% else %}

No documents in this category

Create your first document in this category

Create Document
{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}