2021-07-29 18:03:41 +00:00
|
|
|
{% macro information(current_user, userActiveSemester, role) %}
|
2021-11-29 19:49:18 +00:00
|
|
|
User: <a href="{{url_for('index')}}{{role}}/user/details/?id={{current_user.id}}">{{current_user.repr()}}</a>
|
|
|
|
|
|
|
|
| Active semester: {{userActiveSemester(flashWarning=True).repr()}}
|
|
|
|
|
|
|
|
{% if (role == "admin") and (current_user.has_role("assistant")) %}
|
|
|
|
| <a href="{{url_for('index')}}assistant">Assistant space</a>.
|
|
|
|
{% elif (role == "assistant") and (current_user.has_role("admin")) %}
|
|
|
|
| <a href="{{url_for('index')}}admin">Admin space</a>.
|
|
|
|
{% endif %}
|
2021-07-29 18:03:41 +00:00
|
|
|
{% endmacro %}
|