2021-07-29 18:03:41 +00:00
|
|
|
{% macro information(current_user, userActiveSemester, role) %}
|
2022-02-24 00:10:04 +00:00
|
|
|
User: <a href="{{ url_for('index') }}{{ role }}/user/details/?id={{ current_user.id }}">{{ current_user.repr() }}</a>
|
2021-11-29 19:49:18 +00:00
|
|
|
|
2022-02-24 00:10:04 +00:00
|
|
|
| Active semester: {{ userActiveSemester(flashWarning=True).repr() }}
|
2021-11-29 19:49:18 +00:00
|
|
|
|
|
|
|
{% if (role == "admin") and (current_user.has_role("assistant")) %}
|
2022-02-24 00:10:04 +00:00
|
|
|
| <a href="{{ url_for('index') }}assistant">Assistant space</a>.
|
2021-11-29 19:49:18 +00:00
|
|
|
{% elif (role == "assistant") and (current_user.has_role("admin")) %}
|
2022-02-24 00:10:04 +00:00
|
|
|
| <a href="{{ url_for('index') }}admin">Admin space</a>.
|
2021-11-29 19:49:18 +00:00
|
|
|
{% endif %}
|
2022-02-24 00:10:04 +00:00
|
|
|
{% endmacro %}
|
|
|
|
|
|
|
|
{% macro missing_final_experiment_marks(number_of_missing_final_experiment_marks, number_of_all_experiment_marks) %}
|
|
|
|
<p>
|
2022-02-24 00:28:09 +00:00
|
|
|
Number of <strong>missing</strong> final experiment marks:
|
2022-02-24 00:10:04 +00:00
|
|
|
{{ number_of_missing_final_experiment_marks }} / {{ number_of_all_experiment_marks }}
|
|
|
|
</p>
|
2021-07-29 18:03:41 +00:00
|
|
|
{% endmacro %}
|