Source

zine-main / zine / templates / admin / theme.html

Full commit
{% extends "admin/layout.html" %}
{% block title %}{{ _("Theme Manager") }}{% endblock %}
{% block contents %}
  <h1>{{ _("Theme Manager") }}</h1>
  <div class="themes">
  {%- for theme in themes %}
    <div class="themewrapper">
      <div class="theme{% if theme.is_current %} current{% endif %}">
        <h2>{{ theme.display_name|e }}</h2>
        {%- if not theme.is_current %}
          <p class="select"><a href="?select={{
          theme.name|e }}&amp;_csrf_token={{ form.csrf_token|e }}">{{ _('Select this theme') }}</a></p>
        {% endif %}
        {%- if theme.has_preview %}
          <img src="{{ theme.preview_url|e }}" alt="preview image" class="preview">
        {%- endif %}
        <div class="detail">
          <blockquote><p>{{ theme.description|e }}</p></blockquote>
          {%- if theme.has_author %}
            <p class="author">
              {% trans author=theme.html_author_info %}by {{ author }}{% endtrans %}
              {% if theme.contributors %}
              {% trans contributors=theme.html_contributors_info %}
                and {{ contributors }}
              {% endtrans %}
              {% endif %}
            </p>
          {%- endif %}
        </div>
      </div>
    </div>
  {%- endfor %}
  <br style="clear: both">
  </div>
  {%- if current_theme.configurable %}
  <form action="" method="get">
    <div class="actions">
      <input type="submit" name="configure" value="{{ _('Configure Theme') }}">
    </div>
  </form>
  {%- endif %}
{% endblock %}