2024-07-28 10:29:14 +00:00
|
|
|
from dash import html, dcc
|
2024-07-27 17:19:36 +00:00
|
|
|
from ..datalake import stages
|
|
|
|
from ..libs.stage.stage import AbstractStage
|
|
|
|
|
|
|
|
|
|
|
|
def layout(stage_name=None, schema_name=None):
|
2024-07-28 10:29:14 +00:00
|
|
|
stage = stages[stage_name]
|
2024-07-27 17:19:36 +00:00
|
|
|
return html.Div([
|
2024-07-28 10:29:14 +00:00
|
|
|
html.H2([
|
|
|
|
dcc.Link(
|
|
|
|
f"{stage.name}",
|
|
|
|
href=f"/stage/{stage.name}",
|
|
|
|
className="hover:underline"
|
|
|
|
),
|
|
|
|
html.Span(" > "),
|
|
|
|
html.Span(
|
|
|
|
f"{schema_name}",
|
|
|
|
),
|
|
|
|
],
|
|
|
|
className="text-2xl p-4 py-2"
|
|
|
|
|
|
|
|
),
|
2024-07-27 17:19:36 +00:00
|
|
|
])
|
|
|
|
|