mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-12-20 23:41:20 +00:00
Add footer
This commit is contained in:
parent
00ef2890c6
commit
d63f96947b
13 changed files with 48 additions and 14 deletions
|
@ -8,7 +8,9 @@ from .models import Semester
|
||||||
|
|
||||||
@app.context_processor
|
@app.context_processor
|
||||||
def util_processor():
|
def util_processor():
|
||||||
return dict(active_semester_repr=active_semester_repr, current_user=current_user)
|
author_email = "mo8it@proton.me"
|
||||||
|
footer = f"<hr><p style='font-size:14px'>This website is still under development (beta release)! If you have any questions, find any bugs or want some feature, please write a formless email to Mo Bitar: <a href='mailto:{author_email}'>{author_email}</a></p><br>"
|
||||||
|
return dict(active_semester_repr=active_semester_repr, current_user=current_user, footer=footer)
|
||||||
|
|
||||||
|
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
{% extends "admin/master.html" %}
|
{% extends "admin/master.html" %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
{{information(current_user, active_semester_repr, role="admin")}}
|
{{ information(current_user, active_semester_repr, role="admin") }}
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
|
@ -10,4 +10,6 @@
|
||||||
{{ form.csrf_token }}
|
{{ form.csrf_token }}
|
||||||
{{ form.manualUpdateFinalExperimentAndPartMarksSubmit }}
|
{{ form.manualUpdateFinalExperimentAndPartMarksSubmit }}
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
{{ footer|safe }}
|
||||||
{% endblock body %}
|
{% endblock body %}
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
{% extends "admin/model/create.html" %}
|
{% extends "admin/model/create.html" %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
{{information(current_user, active_semester_repr, role="admin")}}
|
{{ information(current_user, active_semester_repr, role="admin") }}
|
||||||
|
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
|
|
||||||
|
{{ footer|safe }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
{% extends "admin/model/details.html" %}
|
{% extends "admin/model/details.html" %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
{{information(current_user, active_semester_repr, role="admin")}}
|
{{ information(current_user, active_semester_repr, role="admin") }}
|
||||||
|
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
|
|
||||||
|
{{ footer|safe }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
{% extends "admin/model/edit.html" %}
|
{% extends "admin/model/edit.html" %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
{{information(current_user, active_semester_repr, role="admin")}}
|
{{ information(current_user, active_semester_repr, role="admin") }}
|
||||||
|
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
|
|
||||||
|
{{ footer|safe }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -2,11 +2,13 @@
|
||||||
{% extends "admin/index.html" %}
|
{% extends "admin/index.html" %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
{{information(current_user, active_semester_repr, role="admin")}}
|
{{ information(current_user, active_semester_repr, role="admin") }}
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
{{missing_final_experiment_marks(number_of_missing_final_experiment_marks, number_of_all_experiment_marks)}}
|
{{ missing_final_experiment_marks(number_of_missing_final_experiment_marks, number_of_all_experiment_marks) }}
|
||||||
|
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
|
|
||||||
|
{{ footer|safe }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
{% extends "admin/model/list.html" %}
|
{% extends "admin/model/list.html" %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
{{information(current_user, active_semester_repr, role="admin")}}
|
{{ information(current_user, active_semester_repr, role="admin") }}
|
||||||
|
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
|
|
||||||
|
{{ footer|safe }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
{% extends "admin/model/create.html" %}
|
{% extends "admin/model/create.html" %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
{{information(current_user, active_semester_repr, role="assistant")}}
|
{{ information(current_user, active_semester_repr, role="assistant") }}
|
||||||
|
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
|
|
||||||
|
{{ footer|safe }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
{% extends "admin/model/details.html" %}
|
{% extends "admin/model/details.html" %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
{{information(current_user, active_semester_repr, role="assistant")}}
|
{{ information(current_user, active_semester_repr, role="assistant") }}
|
||||||
|
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
|
|
||||||
|
{{ footer|safe }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
{% extends "admin/model/edit.html" %}
|
{% extends "admin/model/edit.html" %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
{{information(current_user, active_semester_repr, role="assistant")}}
|
{{ information(current_user, active_semester_repr, role="assistant") }}
|
||||||
|
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
|
|
||||||
|
{{ footer|safe }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -2,11 +2,13 @@
|
||||||
{% extends "admin/index.html" %}
|
{% extends "admin/index.html" %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
{{information(current_user, active_semester_repr, role="assistant")}}
|
{{ information(current_user, active_semester_repr, role="assistant") }}
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
{{missing_final_experiment_marks(number_of_missing_final_experiment_marks, number_of_all_experiment_marks)}}
|
{{missing_final_experiment_marks(number_of_missing_final_experiment_marks, number_of_all_experiment_marks)}}
|
||||||
|
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
|
|
||||||
|
{{ footer|safe }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
{% extends "admin/model/list.html" %}
|
{% extends "admin/model/list.html" %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
{{information(current_user, active_semester_repr, role="assistant")}}
|
{{ information(current_user, active_semester_repr, role="assistant") }}
|
||||||
|
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
|
|
||||||
|
{{ footer|safe }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
{% extends "admin/master.html" %}
|
{% extends "admin/master.html" %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
{{information(current_user, active_semester_repr, role="admin")}}
|
{{ information(current_user, active_semester_repr, role="admin") }}
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
|
@ -21,4 +21,6 @@
|
||||||
<br>
|
<br>
|
||||||
{{ form.file.description }}
|
{{ form.file.description }}
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
{{ footer|safe }}
|
||||||
{% endblock body %}
|
{% endblock body %}
|
||||||
|
|
Loading…
Reference in a new issue