{% extends "theme_editor/base.html" %} {% load i18n %} {% 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 %}
{% 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 %} {% trans '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 %}
  • {% 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 %}

{% 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.' %}

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

default- .html
{% endblock %} {% block extra_body %} {{ block.super }} {% uploader %} debug: false, validation: { acceptFiles : "*.html,*.js,*.css,*.less,*.jpg,*.jpeg,*.gif,*.png,*.ico,*.txt,*.xml,*.kml,*.eot,*.ttf,*.woff,*.svg", allowedExtensions: ['html', 'js', 'css', 'less', 'jpg', 'jpeg', 'gif', 'png', 'ico', 'txt', 'xml', 'kml', 'eot', 'ttf', 'woff', 'swg'], sizeLimit: 20971520 // 20 MB }, request: { endpoint: '{% url 'theme_editor.upload' %}', params: { "file_dir": "{{ file_dir }}", "overwrite": "true", "csrfmiddlewaretoken": "{{ csrf_token }}" } }, retry: { enableAuto: true } {% end_uploader %} {% endblock %}