diff --git a/web/templates/update.html b/web/templates/update.html new file mode 100644 index 0000000..7dfcc2b --- /dev/null +++ b/web/templates/update.html @@ -0,0 +1,137 @@ + + + + + + Обновления — {{ app_name }} + + + +
+
+
+
Обновления
+
GitHub update center: проверка, changelog и установка
+
+
+ user: {{ user }} + ← Дашборд +
+
+
+ + {% if error %} +
{{ error }}
+ {% endif %} + +
+
+
Текущая версия
+
{{ info.current_version }}
+
+
+
Новая версия
+
{{ info.latest_version }}
+
+
+
Статус
+
{{ 'Есть обновление' if info.has_update else 'Актуально' }}
+ {{ 'update' if info.has_update else 'ok' }} +
+
+
Последняя проверка
+
{{ info.checked_at }}
+
+
+ +
+
+
+

Проверка GitHub

+ {{ info.remote }}/{{ info.branch }} +
+
+
Source{{ info.source_dir }}
+
Local commit{{ info.current_commit[:12] if info.current_commit else 'unknown' }}
+
Remote commit{{ info.latest_commit[:12] if info.latest_commit else 'unknown' }}
+
+ {% if not info.fetch_ok %} +
GitHub fetch вернул ошибку: {{ info.fetch_error }}
+ {% endif %} +
+
+ {% if info.has_update %} +
+ +
+ {% else %} + + {% endif %} +
+
+ +
+
+

Состояние установки

+ {{ info.state.status }} +
+
{{ info.state.message }}
+
+
Started{{ info.state.started_at or '—' }}
+
Updated{{ info.state.updated_at or '—' }}
+
Finished{{ info.state.finished_at or '—' }}
+
+
+
+ +
+
+

Пропущенные версии и функции

+ {{ info.missing_versions|length }} версий +
+ {% for release in info.missing_versions %} +
+
+

{{ release.version }} · {{ release.title }}

+ {{ release.date }} +
+

{{ release.summary }}

+
    + {% for feature in release.features %} +
  • {{ feature }}
  • + {% endfor %} +
+
+ {% else %} +
Нет пропущенных версий. Система на свежем коде, красота.
+ {% endfor %} +
+ +
+
+
+

Новые коммиты

+ {{ info.commits|length }} +
+
+ {% for commit in info.commits %} +
+ {{ commit.short }}{{ commit.subject }} · {{ commit.date }} +
+ {% else %} +
Новых коммитов нет.
+ {% endfor %} +
+
+ +
+
+

Лог обновления

+ /var/log/virtuality/update.log +
+
{{ info.log_tail or 'Лог пока пуст.' }}
+
+
+
+ +