{% extends "usta/base.html" %} {% load staticfiles htmleditor_tags %} {% block title %}{{ block.super }} | {{ document.name }}{% endblock %} {% block main %} {% if document %} {% if node.show_title %}

{{ document.name }} {% if perms.htmleditor.change_document %}Pencil{% endif %}

{% else %} {% if perms.htmleditor.change_document %}

Pencil

{% endif %} {% endif %} {% docreplace document.content %} {% else %}

{{ node.name }}

{% endif %} {% if node.tabs.exists %}
{% for tab in node.tabs.all %}
{% if tab.show_title %}

{{ tab.document.name }} {% if perms.htmleditor.change_document %}Pencil{% endif %}

{% else %} {% if perms.htmleditor.change_document %}

Pencil

{% endif %} {% endif %} {% docreplace tab.document.content %}
{% endfor %}
{% endif %} {% endblock %} {% block extrascripts %} {% endblock %}