add empty table placeholders
This commit is contained in:
parent
8716579508
commit
0803617e62
5 changed files with 60 additions and 6 deletions
|
|
@ -143,6 +143,17 @@ def running_executions_table(
|
|||
),
|
||||
]
|
||||
|
||||
body_rows: Node
|
||||
if rows:
|
||||
body_rows = (render_row(row) for row in rows)
|
||||
else:
|
||||
body_rows = h.tr[
|
||||
h.td(
|
||||
colspan=str(len(headers)),
|
||||
class_="px-4 py-8 text-center text-sm text-slate-500",
|
||||
)["No job executions are running."]
|
||||
]
|
||||
|
||||
return h.section[
|
||||
h.div(class_="mb-3 flex items-end justify-between gap-4")[
|
||||
h.div[
|
||||
|
|
@ -173,9 +184,7 @@ def running_executions_table(
|
|||
)
|
||||
]
|
||||
],
|
||||
h.tbody(class_="divide-y divide-slate-200 bg-white")[
|
||||
(render_row(row) for row in rows)
|
||||
],
|
||||
h.tbody(class_="divide-y divide-slate-200 bg-white")[body_rows],
|
||||
]
|
||||
]
|
||||
],
|
||||
|
|
@ -225,6 +234,7 @@ def published_feeds_table(
|
|||
return table_section(
|
||||
eyebrow="Published feeds",
|
||||
title="Published feeds",
|
||||
empty_message="No feeds have been published yet.",
|
||||
headers=("Source", "Feed URL", "Status", "Last updated", "Disk usage"),
|
||||
rows=rows,
|
||||
actions=muted_action_link(href="/sources", label="Manage sources"),
|
||||
|
|
|
|||
|
|
@ -211,6 +211,7 @@ def runs_page(
|
|||
table_section(
|
||||
eyebrow="Live work",
|
||||
title="Running job executions",
|
||||
empty_message="No job executions are running.",
|
||||
headers=(
|
||||
"Source",
|
||||
"Execution",
|
||||
|
|
@ -224,6 +225,7 @@ def runs_page(
|
|||
table_section(
|
||||
eyebrow="Queue",
|
||||
title="Upcoming jobs",
|
||||
empty_message="No jobs are scheduled.",
|
||||
headers=(
|
||||
"Source",
|
||||
"Next run",
|
||||
|
|
@ -237,6 +239,7 @@ def runs_page(
|
|||
table_section(
|
||||
eyebrow="History",
|
||||
title="Completed job executions",
|
||||
empty_message="No job executions have completed yet.",
|
||||
headers=(
|
||||
"Source",
|
||||
"Execution",
|
||||
|
|
|
|||
|
|
@ -92,6 +92,7 @@ def sources_table(
|
|||
return table_section(
|
||||
eyebrow="Inventory",
|
||||
title="Sources",
|
||||
empty_message="No sources yet.",
|
||||
headers=("Source", "Type", "Upstream", "Schedule", "Job state", "Actions"),
|
||||
rows=rows,
|
||||
actions=header_action_link(href="/sources/create", label="Create source"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue