2022-09-11 14:29:26 +00:00
|
|
|
{% macro information(current_user, active_semester_str, role) %}
|
2022-09-21 14:52:04 +00:00
|
|
|
<div class="row" style="text-align: center;">
|
|
|
|
<div class="col">
|
|
|
|
User: {{ current_user }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col">
|
|
|
|
Active semester: {{ active_semester_str() }}
|
2022-09-21 15:14:25 +00:00
|
|
|
<span class="fa fa-question-circle" title="The active semester can be changed in user settings"></span>
|
2022-09-21 14:52:04 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{% if (role == "admin") and (current_user.has_role("assistant")) %}
|
|
|
|
<div class="col">
|
|
|
|
<a
|
|
|
|
href="{{ url_for('main.index') }}assistant"
|
|
|
|
>Assistant space</a>
|
|
|
|
</div>
|
|
|
|
{% elif (role == "assistant") and (current_user.has_role("admin")) %}
|
|
|
|
<div class="col">
|
|
|
|
<a
|
|
|
|
href="{{ url_for('main.index') }}admin"
|
|
|
|
>Admin space</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2022-09-11 14:29:26 +00:00
|
|
|
{% endmacro %}
|