gerd.member-website: added debug information

This commit is contained in:
eyjhb 2024-08-24 14:44:53 +02:00
parent dc516381d3
commit b9163999bb
No known key found for this signature in database
GPG key ID: 609F508E3239F920

View file

@ -38,6 +38,19 @@ tmpl_index = """
</pre>
<hr>
{% endfor %}
{% if show_debug %}
<br>
<br>
<br>
Debug information:
<ul>
<li>Username: {{ user.username }}</li>
<li>Name: {{ user.name }}</li>
<li>Email: {{ user.email }}</li>
<li>Groups: {{ user.groups }}</li>
</ul>
{% endif %}
"""
@ -90,6 +103,7 @@ def index():
tmpl_index,
services=services_data,
user=user_info,
show_debug=bool(request.args.get("debug")),
)
return render_template_string(
tmpl_firstpass,