2022-09-11 14:29:26 +00:00
|
|
|
{% macro information(current_user, active_semester_str, role) %}
|
|
|
|
User:
|
|
|
|
<a
|
|
|
|
href="{{ url_for('main.index') }}{{ role }}/user/edit/?id={{ current_user.id }}"
|
2022-09-12 22:20:39 +00:00
|
|
|
>{{ current_user }}</a>
|
2022-09-11 14:29:26 +00:00
|
|
|
| Active semester: {{ active_semester_str() }}
|
|
|
|
{% if (role == "admin") and (current_user.has_role("assistant")) %}
|
|
|
|
|
|
|
|
|
<a
|
|
|
|
href="{{ url_for('main.index') }}assistant"
|
2022-09-12 22:20:39 +00:00
|
|
|
>Assistant space</a>.
|
2022-09-11 14:29:26 +00:00
|
|
|
{% elif (role == "assistant") and (current_user.has_role("admin")) %}
|
|
|
|
|
|
|
|
|
<a
|
|
|
|
href="{{ url_for('main.index') }}admin"
|
2022-09-12 22:20:39 +00:00
|
|
|
>Admin space</a>.
|
2022-09-11 14:29:26 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endmacro %}
|