Add publisher dashboard routes
This commit is contained in:
parent
96551c2788
commit
e4a5246ab3
31 changed files with 1603 additions and 516 deletions
|
|
@ -23,12 +23,13 @@ def _value(settings: Mapping[str, object] | None, key: str, default: str = "") -
|
|||
def settings_page(
|
||||
*,
|
||||
settings: Mapping[str, object] | None = None,
|
||||
action_path: str = "/actions/settings",
|
||||
action_path: str = "/admin/actions/settings",
|
||||
source_count: int = 0,
|
||||
running_count: int = 0,
|
||||
path_prefix: str = "/admin",
|
||||
) -> Renderable:
|
||||
return page_shell(
|
||||
current_path="/settings",
|
||||
current_path=f"{path_prefix}/settings",
|
||||
eyebrow="Configuration",
|
||||
title="Settings",
|
||||
description="Global runtime controls for the republisher.",
|
||||
|
|
@ -85,7 +86,10 @@ def settings_page(
|
|||
),
|
||||
],
|
||||
h.div(class_="flex flex-wrap justify-end gap-3 pt-2")[
|
||||
muted_action_link(href="/", label="Back to dashboard"),
|
||||
muted_action_link(
|
||||
href=path_prefix,
|
||||
label="Back to dashboard",
|
||||
),
|
||||
action_button(
|
||||
label="Save settings",
|
||||
tone="dark",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue