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>
|
||||
<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,
|
||||
|
|
Loading…
Reference in a new issue