diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..03be891 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,81 @@ +{% extends "base.html" %} +{% block title %}Проверки SMART{% endblock %} +{% block content %} +

Проверки SMART

+ +
+

Запустить новую проверку

+
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+ +
+

История

+ + + + + + + + + {% for r in runs %} + + + + + + + + + + + + + {% else %} + + {% endfor %} + +
#СХДSSHСтартФинишСтатусДисковПлохихZIP
{{ r['id'] }}{{ r['hostname'] }}{{ r['ssh_host'] or '' }}{{ r['started_at'] }}{{ r['finished_at'] or '—' }} + {% if r['id'] in in_progress %}⏳ running + {% elif r['status'] == 'ok' %}✅ ok + {% elif r['status'] == 'error' %}❌ error + {% else %}{{ r['status'] }}{% endif %} + {{ r['drives_count'] }}{{ r['bad_count'] }} + {% if r['archive'] %} + ⬇ zip + {% else %}—{% endif %} + +
+ +
+
Пока пусто
+
+{% endblock %} \ No newline at end of file