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