- Evotor catalog: background Celery task syncing stores/groups/products from Evotor API; UI pages with per-store and per-group sync toggles - VK connection: manual token + group ID entry with inline test button - Evotor connection: inline test button (calls /stores) - VK catalog: background task syncing VK Market albums and products; separate catalog UI at /vk-catalog/albums - SyncFilter extended to support entity_type=group with parent_entity_id - Migration 0004: vk_cached_albums + vk_cached_products tables - Beat schedule updated to run both refresh_catalog and refresh_vk_catalog - README updated with new schema, routes, tasks, and config Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
53 lines
2.2 KiB
HTML
53 lines
2.2 KiB
HTML
{% extends "base.html" %}
|
||
{% block title %}Альбомы ВК — ЭВОСИНК{% endblock %}
|
||
|
||
{% block content %}
|
||
<div class="d-flex justify-between align-center mb-3">
|
||
<h1 style="font-size:1.3rem; margin:0;"><i class="bi bi-badge-vr me-2"></i>Каталог ВКонтакте — Альбомы</h1>
|
||
<span class="text-muted small">Всего: {{ albums | length }}</span>
|
||
</div>
|
||
|
||
<article class="card">
|
||
{% if not vk_conn %}
|
||
<div class="text-center py-5 text-muted">
|
||
<i class="bi bi-plug" style="font-size:2rem;"></i>
|
||
<p class="mt-2">ВКонтакте не подключён.<br><a href="/connections">Перейти к подключениям</a></p>
|
||
</div>
|
||
{% elif albums %}
|
||
<div class="table-scroll">
|
||
<table class="align-middle">
|
||
<thead>
|
||
<tr>
|
||
<th>Название</th>
|
||
<th>Товаров</th>
|
||
<th>ID</th>
|
||
<th>Обновлено</th>
|
||
<th></th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
{% for a in albums %}
|
||
<tr>
|
||
<td><i class="bi bi-collection me-1 text-muted"></i> <strong>{{ a.title }}</strong></td>
|
||
<td class="text-muted">{{ a.count if a.count is not none else '—' }}</td>
|
||
<td class="text-muted small">{{ a.album_id }}</td>
|
||
<td class="text-muted small">{{ a.fetched_at | datefmt }}</td>
|
||
<td>
|
||
<a href="/vk-catalog/albums/{{ a.album_id }}/products" role="button" class="outline sm">
|
||
<i class="bi bi-box-seam"></i> Товары
|
||
</a>
|
||
</td>
|
||
</tr>
|
||
{% endfor %}
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
{% else %}
|
||
<div class="text-center py-5 text-muted">
|
||
<i class="bi bi-collection" style="font-size:2rem;"></i>
|
||
<p class="mt-2">Альбомы ещё не загружены.<br>Синхронизация выполняется каждые {{ refresh_interval }} сек. автоматически.</p>
|
||
</div>
|
||
{% endif %}
|
||
</article>
|
||
{% endblock %}
|