Skip to content

Commit

Permalink
Update japps custom page template to provide hub_title and favicon ba…
Browse files Browse the repository at this point in the history
…sed on app configs, to match those used in the base page template.
  • Loading branch information
jbouder committed Sep 13, 2024
1 parent 9f0b15c commit 0877d09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions jhub_apps/service/japps_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ async def handle_apps(request: Request):
{
"request": request,
"version_hash": now.strftime("%Y%m%d%H%M%S"),
"hub_title": config.get("hub_title", "JupyterHub"),
"favicon": theme.get("favicon", "/service/japps/static/favicon.ico"),
**theme,
},
)
3 changes: 2 additions & 1 deletion jhub_apps/templates/japps_custom.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>JupyterHub Apps</title>
<title>{{ hub_title}}</title>
<link rel="stylesheet" href="/hub/static/css/style.min.css" />
<link rel="icon" href="{{ favicon }}" type="image/x-icon" />
</head>
<body>
<div id="root"></div>
Expand Down

0 comments on commit 0877d09

Please sign in to comment.