{include file="_partials/head.tpl"}

<div class="page-head">
  <div>
    <h1>Шаблоны</h1>
    <p class="muted">Темы оформления сайта (из каталога /templates).</p>
  </div>
</div>

<div class="news-grid">
  [foreach var="themes" as="t"]
    <div class="card">
      <h3>{t.name}</h3>
      <p class="muted"><code>{t.slug}</code> · v{t.version}</p>
      [if {t.author}]<p class="muted">{t.author}</p>[/if]
      [if {active_theme}={t.slug}]
        <p><span class="badge badge-published">активна</span></p>
      [else]
        <p class="muted">неактивна — активируйте в <a href="/admin/settings">Настройках</a>.</p>
      [/if]
      <p><a class="btn btn-secondary" href="/admin/templates/{t.slug}/edit">✎ Редактор</a></p>
    </div>
  [/foreach]
</div>


{include file="_partials/foot.tpl"}
