{% extends 'settings/layout.html' %} {% load i18n %} {% block title %}{% trans "Themes" %}{% endblock %} {% block header %}{% trans "Themes" %}{% endblock %} {% block breadcrumbs %} {% trans "Set instance default theme" %} {% endblock %} {% block panel %} {% if success %}
{% trans "Successfully added theme" %}
{% endif %}

{% trans "How to add a theme" %}

  1. {% trans "Copy the theme file into the bookwyrm/static/css/themes directory on your server from the command line." %}
  2. {% trans "Run ./bw-dev compilescss." %}
  3. {% trans "Add the file name using the form below to make it available in the application interface." %}

{% trans "Add theme" %}

{% if theme_form.errors %}
{% trans "Unable to save theme" %}
{% endif %}
{% if not choices %}
{% trans "No available theme files detected" %}
{% endif %}
{% csrf_token %}
{{ theme_form.name }} {% include 'snippets/form_errors.html' with errors_list=theme_form.name.errors id="desc_name" %}
{% include 'snippets/form_errors.html' with errors_list=theme_form.path.errors id="desc_path" %}

{% trans "Available Themes" %}

{% for theme in themes %} {% endfor %}
{% trans "Theme name" %} {% trans "File" %} {% trans "Actions" %}
{{ theme.name }} {{ theme.path }}
{% csrf_token %}
{% endblock %}