Update public source
This commit is contained in:
@@ -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