{% extends "theme_editor/base.html" %} {% load i18n %} {% load humanize %} {% load styled_forms %} {% load base_filters %} {% load theme_editor_tags %} {% load theme_editor_filters %} {% block title %}{{ block.super }}Theme Editor{% endblock %} {% block extra_head %} {{ block.super }} {% endblock %} {% block body %}

{% trans "Theme Editor" %} : {{ SITE_GLOBAL_SITEURL }}

{% spaceless %}{% include "base/messages.html" %}{% endspaceless %} {% if current_file %}
{% trans "Currently Editing" %} {{ pwd }}/{{ current_file }} in your theme {{ current_theme }} {% endif %}
{% if is_file %}
{% csrf_token %} {% if file_form.content.errors and current_file %}
{{ file_form.content.errors }}
{% endif %}
{{ file_form.content }}
{{ file_form.rf_path }}
{% if current_file not in non_deletable_files %} Delete this File {% endif %}

{% trans "Previous Versions" %} ?

{% if archives %} {% else %}

{% trans "No versions available." %}

{% endif %}
{% else %}

{% trans "No file selected. Select a file or directory from the list on the right." %}

{% endif %}
{# if theme_count > 1 #}

{% trans 'Currently editing:' %}

{{ theme_form.theme_edit }}
{% ifnotequal ACTIVE_THEME current_theme %}

{% trans "Preview" %} {{ current_theme }} {% trans "on your site" %} »

{% endifnotequal %}

{% trans "Active theme:" %} {{ ACTIVE_THEME }}. {% trans "Change?" %}

{# endif #}

{% trans "Choose a folder or file to edit:" %}

    {% for key,value in all_files_folders.items %} {% if value.items %} {% for key,value in value.items|sortcontents %} {% if key == "contents" %} {% for item in value %} {% include "theme_editor/file_link.html" %} {% endfor %} {% else %} {% folder_structure value %} {% endif %} {% endfor %} {% endif %} {% endfor %}
{% comment %} {% if pwd %}
{% if pwd|length > 20 %}

{% blocktrans with pwd|slice:"-20:" as pslice %}in ...{{ pslice }}{% endblocktrans %}

{% else %}

{% blocktrans %}in {{ pwd }}{% endblocktrans %}

{% endif %}
{% endif %} {% if prev_dir %}

« {% blocktrans %}back to {{ prev_dir_name }}{% endblocktrans %}

{% endif %} {% if dirs %} {% endif %} {% if files or non_editable_files %}
    {% if files %} {% for file in files %}
  • {{ file|safe }}
  • {% endfor %} {% endif %} {% if non_editable_files %}
  • {% trans "Non-Editable Files" %}
  • {% for file in non_editable_files %}
  • {{ file|safe }}
  • {% endfor %} {% endif %}
{% endif %} {% if not files and not dirs and not non_editable_files %}

{% trans "This folder is empty" %}

{% endif %} {% endcomment %}

Customize more templates:

Copy down one of Tendenci's built-in app templates and customize it. {% trans "Customize more templates" %}
{% endblock %} {% block extra_body %} {{ block.super }} {% endblock %}