MpakoImageAIbot/web/templates/detail.html

49 lines
1.6 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends "base.html" %}
{% block title %}Запрос #{{ item.id }} — MpakoImageAIbot{% endblock %}
{% block content %}
<a class="back" href="/">← К истории</a>
<h1>Запрос #{{ item.id }}</h1>
<dl class="meta">
<dt>Пользователь</dt>
<dd><a href="/?user_id={{ item.user_id }}">{{ item.user_id }}</a></dd>
<dt>Статус</dt>
<dd><span class="badge {{ item.status }}">{{ item.status }}</span></dd>
<dt>Режим</dt>
<dd class="mono">{{ item.mode }}</dd>
<dt>Создан</dt>
<dd>{{ item.timestamp|fmt_dt }}</dd>
<dt>Завершён</dt>
<dd>{{ item.finished_at|fmt_dt }}</dd>
<dt>Seed</dt>
<dd class="mono">{{ item.seed if item.seed is not none else '—' }}</dd>
<dt>Comfy prompt_id</dt>
<dd class="mono">{{ item.comfy_prompt_id or '—' }}</dd>
<dt>Промпт</dt>
<dd class="prompt-block">{{ item.prompt_text }}</dd>
{% if item.error_text %}
<dt>Ошибка</dt>
<dd class="error-text">{{ item.error_text }}</dd>
{% endif %}
</dl>
<div class="images">
{% if item.input_file_path %}
<figure>
<a href="/media/{{ item.id }}/input" target="_blank" rel="noreferrer">
<img src="/media/{{ item.id }}/input" alt="Входное изображение">
</a>
<figcaption>Вход</figcaption>
</figure>
{% endif %}
{% if item.output_file_path %}
<figure>
<a href="/media/{{ item.id }}/output" target="_blank" rel="noreferrer">
<img src="/media/{{ item.id }}/output" alt="Результат">
</a>
<figcaption>Результат</figcaption>
</figure>
{% endif %}
</div>
{% endblock %}