1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-12-22 23:51:03 +00:00
AdvLabDB/advlabdb/templates/macros.html

19 lines
868 B
HTML
Raw Normal View History

{% macro information(current_user, active_semester_repr, role) %}
2022-03-19 21:21:45 +00:00
User: <a href="{{ url_for('index') }}{{ role }}/user/details/?id={{ current_user.id }}">{{ current_user.repr() }}</a>
| Active semester: {{ active_semester_repr() }}
2022-03-19 21:21:45 +00:00
{% 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 %}
{% endmacro %}
{% macro missing_final_experiment_marks(number_of_missing_final_experiment_marks, number_of_all_experiment_marks) %}
2022-03-19 21:21:45 +00:00
<p>
Number of <strong>missing</strong> final experiment marks:
{{ number_of_missing_final_experiment_marks }} / {{ number_of_all_experiment_marks }}
</p>
{% endmacro %}