gerd.member-website: added debug information
This commit is contained in:
parent
dc516381d3
commit
b9163999bb
1 changed files with 14 additions and 0 deletions
|
@ -38,6 +38,19 @@ tmpl_index = """
|
||||||
</pre>
|
</pre>
|
||||||
<hr>
|
<hr>
|
||||||
{% endfor %}
|
{% 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,
|
tmpl_index,
|
||||||
services=services_data,
|
services=services_data,
|
||||||
user=user_info,
|
user=user_info,
|
||||||
|
show_debug=bool(request.args.get("debug")),
|
||||||
)
|
)
|
||||||
return render_template_string(
|
return render_template_string(
|
||||||
tmpl_firstpass,
|
tmpl_firstpass,
|
||||||
|
|
Loading…
Reference in a new issue