From 7741fc423e1eb46951c9a0fc342b54863f463c24 Mon Sep 17 00:00:00 2001 From: LucAA <55665468+a2luca@users.noreply.github.com> Date: Fri, 8 May 2026 01:03:09 +0200 Subject: [PATCH 1/2] feat(dect-wip): add infobox file reader for instance path Add infobox content to the myextensions template rendering. --- services/dect-wip/app.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/services/dect-wip/app.py b/services/dect-wip/app.py index 4f7722f..18bc59f 100644 --- a/services/dect-wip/app.py +++ b/services/dect-wip/app.py @@ -222,8 +222,14 @@ def myextensions(): if request.method == 'GET': exts = getUserExtensions(filterByUserId=current_user.id,searchFor=None,showPublicOnly=False) - return render_template('myextensions.html.j2', default_data=fetch_default_data_for_templates(), exts=exts) + infobox_file = os.path.join(app.instance_path, "infobox.html") + infobox_content = None + if os.path.exists(infobox_file): + with open(infobox_file, "r", encoding="utf-8") as f: + infobox_content = f.read() + + return render_template('myextensions.html.j2', default_data=fetch_default_data_for_templates(), exts=exts, infobox_content=infobox_content) ## API V1 From 8ed36b2a4f2f7977dd6a9ad03dec97b995ad8371 Mon Sep 17 00:00:00 2001 From: LucAA <55665468+a2luca@users.noreply.github.com> Date: Fri, 8 May 2026 01:05:55 +0200 Subject: [PATCH 2/2] fix(dect-wip template): Replace static SIP access info with dynamic content --- services/dect-wip/templates/myextensions.html.j2 | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/services/dect-wip/templates/myextensions.html.j2 b/services/dect-wip/templates/myextensions.html.j2 index 1127e35..5fe192a 100644 --- a/services/dect-wip/templates/myextensions.html.j2 +++ b/services/dect-wip/templates/myextensions.html.j2 @@ -9,17 +9,13 @@ - +{% if infobox_content %}