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

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

{% spaceless %}{% include "base/messages.html" %}{% endspaceless %} {% if current_file %}
{% if theme_read_only %}{% trans 'Currently Viewing' %}{% else %}{% trans "Currently Editing" %}{% endif %} {{ current_file_path }} in 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 }}
{{ current_file_path }}
{% if not theme_read_only %} {% endif %}
{% if not theme_read_only %} {% if current_file not in non_deletable_files %} {% trans 'Delete this File' %} {% endif %}

{% trans "Previous Versions" %} ?

{% if archives %} {% else %}

{% trans "No versions available." %}

{% endif %}
{% endif %} {% else %}

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

{% endif %}

{% if theme_read_only %}{% trans 'Currently viewing' %}{% else %}{% trans 'Currently editing' %}{% endif %}:

{{ theme_form.theme_edit }}
{% if ACTIVE_THEME != current_theme %}

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

{% else %}

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

{% endif %} {% if can_copy_theme %} {% endif %} {% if not theme_read_only %} {% trans 'Delete' %} {% endif %}

{% trans "Active theme:" %} {{ ACTIVE_THEME }}. {% if theme_count > 1 %} {% trans "Change" %} » {% endif %}

{% if theme_read_only %}{% trans "Choose a folder or file to view:" %}{% else %}{% trans "Choose a folder or file to edit:" %}{% endif %}

    {% 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 %}
  • {% if item.editable %} {{ item.name }} {% else %} {{ item.name|safe }} K × {% endif %}
  • {% 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 %}
{% if not theme_read_only %}

{% trans 'Customize more templates' %}:

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

{% trans 'Create a new template' %}:

{% trans 'Click the button below to add a new template.' %}
{% endif %}

{% trans 'Please enter a new theme name.' %}

{% trans 'Please enter template name.' %}

default- .html
{% endblock %} {% block extra_body %} {{ block.super }}
{% endblock %}