{% with "Module_file_readonly" as readonly %}
{% with revision.get_main_module as module %}
{% include "_sidebar_revision_module.html" %}
{% endwith %}
{% for module in modules %}{% if revision.module_main != module.filename %}
{% include "_sidebar_revision_module.html" %}
{% endif %}{% endfor %}
{% endwith %}
{% include "_edit_app_menu_items.html" %}
{% include "_base_app_menu_items.html" %}
{% with revision.get_main_module as module %}
{% include "_module_code_textarea.html" %}
{% endwith %}
{% for module in revision.modules.all %}{% if module.filename != revision.module_main %}
{% include "_module_code_textarea.html" %}
{% endif %}{% endfor %}