Show invitation hint when user is alone on their instance

This commit is contained in:
Matthew Wild
2024-04-16 15:08:27 +01:00
parent 33d28e5890
commit 220bf9994b
2 changed files with 13 additions and 3 deletions

View File

@@ -97,7 +97,12 @@ class ImportAccountDataForm(BaseForm):
@client.require_session()
async def index() -> str:
user_info = await client.get_user_info()
return await render_template("user_home.html", user_info=user_info)
metrics = await client.get_system_metrics()
return await render_template(
"user_home.html",
user_info=user_info,
metrics=metrics,
)
@bp.route('/passwd', methods=["GET", "POST"])