link from admin user profile to kasownik

pull/1/head
radex 2023-09-20 23:10:31 +02:00
parent 4732fb7066
commit 3fcb7d2a4f
2 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,10 @@
{% extends 'basic.html' %}
{% block content %}
<h1>User: {{ username }}</h1>
<h1>User: {{ uid }}</h1>
<a class="btn btn-default" href="/admin" role="button">Back</a>
<a class="btn btn-default" href="https://kasownik.hackerspace.pl/admin/member/{{ uid }}" role="button" target="_blank">View user in Kasownik</a>
<p>Full LDAP record:</p>

View File

@ -293,4 +293,4 @@ def admin_user_view(uid):
profile = ldap_get_user(conn, uid)
return flask.render_template('admin/user.html', username=uid, profile=rendered_ldap_profile(profile))
return flask.render_template('admin/user.html', uid=uid, profile=rendered_ldap_profile(profile))