Skip to content

Commit 6ef1c00

Browse files
committed
fix names table
1 parent 4254b18 commit 6ef1c00

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

page_analyzer/templates/result.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
{% block content %}
1616
<body>
1717
<div class="container mt-4">
18-
<h1>Детали URL</h1>
18+
<h1>Сайт: {{ url[1] }}</h1>
1919
<p><strong>ID:</strong> {{ url[0] }}</p>
20-
<p><strong>Название:</strong> {{ url[1] }}</p> <!-- name -->
20+
<p><strong>Имя:</strong> {{ url[1] }}</p> <!-- name -->
2121
<p><strong>Дата создания:</strong> {{ url[2] }}</p> <!-- created_at -->
2222

2323
<form method="POST" action="{{ url_for('add_check', url_id=url[0]) }}">

page_analyzer/templates/urls.html

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
{% block content %}
44
<div class="container mt-4">
5-
<h1>Список URL</h1>
6-
75
{% with messages = get_flashed_messages() %}
86
{% if messages %}
97
<div class="alert alert-info">
@@ -19,13 +17,9 @@ <h1 class="mb-4">Сайты</h1>
1917
<thead>
2018
<tr>
2119
<th>ID</th>
22-
<th>URL</th>
23-
<th>Дата создания</th>
24-
<th>Код последней проверки</th>
25-
<th>Дата последней проверки</th>
26-
<th>H1</th>
27-
<th>Title</th>
28-
<th>Description</th>
20+
<th>Имя</th>
21+
<th>Последняя проверка</th>
22+
<th>Код ответа</th>
2923
</tr>
3024
</thead>
3125
<tbody>
@@ -34,11 +28,7 @@ <h1 class="mb-4">Сайты</h1>
3428
<td>{{ url[0] }}</td>
3529
<td><a href="{{ url_for('url_detail', url_id=url[0]) }}">{{ url[1] }}</a></td>
3630
<td>{{ url[2] }}</td>
37-
<td>{{ url[3] if url[3] is not none else 'Нет проверок' }}</td>
38-
<td>{{ url[4] if url[4] is not none else 'Нет проверок' }}</td>
39-
<td>{{ url[5] if url[5] is not none else 'Нет данных' }}</td>
40-
<td>{{ url[6] if url[6] is not none else 'Нет данных' }}</td>
41-
<td>{{ url[7] if url[7] is not none else 'Нет данных' }}</td>
31+
<td>{{ url[3] }}</td>
4232
</tr>
4333
{% endfor %}
4434
</tbody>

0 commit comments

Comments
 (0)