Update public source
This commit is contained in:
@@ -5,13 +5,11 @@
|
||||
{% block content %}
|
||||
<div class="jobs-page">
|
||||
|
||||
<div class="jobs-page-header">
|
||||
<div>
|
||||
<h1 class="page-title">Jobs</h1>
|
||||
<p class="page-description">
|
||||
Формирование заданий для CrackLab-клиентов.
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<h1 class="page-title">Jobs</h1>
|
||||
<p class="page-description">
|
||||
Формирование заданий для CrackLab-клиентов.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{% if error %}
|
||||
|
||||
@@ -5,13 +5,11 @@
|
||||
{% block content %}
|
||||
<div class="results-page">
|
||||
|
||||
<div class="jobs-page-header">
|
||||
<div>
|
||||
<h1 class="page-title">Results</h1>
|
||||
<p class="page-description">
|
||||
Import completed results from CrackLab clients and review import history.
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<h1 class="page-title">Results</h1>
|
||||
<p class="page-description">
|
||||
Import completed results from CrackLab clients and review import history.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{% if error %}
|
||||
|
||||
@@ -7,7 +7,6 @@ from reports.template import (
|
||||
card,
|
||||
page_begin,
|
||||
page_end,
|
||||
page_header,
|
||||
)
|
||||
from reports.utils import (
|
||||
format_datetime as format_report_datetime,
|
||||
|
||||
@@ -13,7 +13,6 @@ from reports.template import (
|
||||
card,
|
||||
page_begin,
|
||||
page_end,
|
||||
page_header,
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -32,8 +32,6 @@ from .template import (
|
||||
|
||||
page_end,
|
||||
|
||||
page_header,
|
||||
|
||||
card,
|
||||
|
||||
stat,
|
||||
|
||||
@@ -34,7 +34,6 @@ from reports.utils import (
|
||||
from reports.template import (
|
||||
page_begin,
|
||||
page_end,
|
||||
page_header,
|
||||
card,
|
||||
ReportContext,
|
||||
)
|
||||
|
||||
@@ -413,41 +413,6 @@ def page_begin(
|
||||
|
||||
return html
|
||||
|
||||
# ============================================================
|
||||
# Page header
|
||||
# ============================================================
|
||||
|
||||
def page_header(
|
||||
|
||||
title,
|
||||
|
||||
description="",
|
||||
|
||||
):
|
||||
|
||||
html = f"""
|
||||
|
||||
<h1 class="page-title">
|
||||
|
||||
{title}
|
||||
|
||||
</h1>
|
||||
|
||||
"""
|
||||
|
||||
if description:
|
||||
|
||||
html += f"""
|
||||
|
||||
<div class="page-description">
|
||||
|
||||
{description}
|
||||
|
||||
</div>
|
||||
|
||||
"""
|
||||
|
||||
return html
|
||||
|
||||
# ============================================================
|
||||
# Page end
|
||||
|
||||
Reference in New Issue
Block a user