138 lines
4.3 KiB
HTML
138 lines
4.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ru">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Результаты импорта — Bitmine</title>
|
|
<style>
|
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
background: #f5f5f5;
|
|
padding: 20px;
|
|
}
|
|
.container { max-width: 800px; margin: 0 auto; }
|
|
h1 { color: #333; margin-bottom: 20px; }
|
|
.card {
|
|
background: white;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
padding: 24px;
|
|
margin-bottom: 20px;
|
|
}
|
|
.summary {
|
|
display: flex;
|
|
gap: 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
.summary-item {
|
|
flex: 1;
|
|
padding: 16px;
|
|
border-radius: 8px;
|
|
text-align: center;
|
|
}
|
|
.summary-success {
|
|
background: #e8f5e9;
|
|
color: #388e3c;
|
|
}
|
|
.summary-error {
|
|
background: #ffebee;
|
|
color: #c62828;
|
|
}
|
|
.summary-count {
|
|
font-size: 32px;
|
|
font-weight: 700;
|
|
}
|
|
.summary-label {
|
|
font-size: 14px;
|
|
margin-top: 4px;
|
|
}
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
th, td {
|
|
padding: 12px;
|
|
text-align: left;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
th { background: #f8f9fa; }
|
|
.status-success { color: #388e3c; }
|
|
.status-error { color: #c62828; }
|
|
.btn {
|
|
background: #007bff;
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 24px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
}
|
|
.btn:hover { background: #0056b3; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>📊 Результаты импорта</h1>
|
|
|
|
<div class="card">
|
|
<div class="summary">
|
|
<div class="summary-item summary-success">
|
|
<div class="summary-count">{{ success_count }}</div>
|
|
<div class="summary-label">Успешно</div>
|
|
</div>
|
|
<div class="summary-item summary-error">
|
|
<div class="summary-count">{{ error_count }}</div>
|
|
<div class="summary-label">Ошибок</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<h2>Детали</h2>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Redmine #</th>
|
|
<th>Задача</th>
|
|
<th>Bitrix24 #</th>
|
|
<th>Статус</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for result in results %}
|
|
<tr>
|
|
<td>{{ result.task_id }}</td>
|
|
<td>{{ result.task_title }}</td>
|
|
<td>
|
|
{% match result.bitrix_id %}
|
|
{% when Some(id) %}
|
|
<a href="#" class="status-success">#{{ id }}</a>
|
|
{% when None %}
|
|
—
|
|
{% endmatch %}
|
|
</td>
|
|
<td>
|
|
{% match result.error %}
|
|
{% when Some(err) %}
|
|
<span class="status-error">❌ {{ err }}</span>
|
|
{% when None %}
|
|
<span class="status-success">✅ Успешно</span>
|
|
{% endmatch %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<a href="/api/redmine/tasks" class="btn">← Вернуться к задачам</a>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|