mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-11-08 21:21:06 +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
|
||||
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("/")
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
{% extends "admin/master.html" %}
|
||||
|
||||
{% block body %}
|
||||
{{information(current_user, active_semester_repr, role="admin")}}
|
||||
{{ information(current_user, active_semester_repr, role="admin") }}
|
||||
|
||||
<hr>
|
||||
|
||||
|
@ -10,4 +10,6 @@
|
|||
{{ form.csrf_token }}
|
||||
{{ form.manualUpdateFinalExperimentAndPartMarksSubmit }}
|
||||
</form>
|
||||
|
||||
{{ footer|safe }}
|
||||
{% endblock body %}
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
{% extends "admin/model/create.html" %}
|
||||
|
||||
{% block body %}
|
||||
{{information(current_user, active_semester_repr, role="admin")}}
|
||||
{{ information(current_user, active_semester_repr, role="admin") }}
|
||||
|
||||
{{ super() }}
|
||||
|
||||
{{ footer|safe }}
|
||||
{% endblock %}
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
{% extends "admin/model/details.html" %}
|
||||
|
||||
{% block body %}
|
||||
{{information(current_user, active_semester_repr, role="admin")}}
|
||||
{{ information(current_user, active_semester_repr, role="admin") }}
|
||||
|
||||
{{ super() }}
|
||||
|
||||
{{ footer|safe }}
|
||||
{% endblock %}
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
{% extends "admin/model/edit.html" %}
|
||||
|
||||
{% block body %}
|
||||
{{information(current_user, active_semester_repr, role="admin")}}
|
||||
{{ information(current_user, active_semester_repr, role="admin") }}
|
||||
|
||||
{{ super() }}
|
||||
|
||||
{{ footer|safe }}
|
||||
{% endblock %}
|
||||
|
|
|
@ -2,11 +2,13 @@
|
|||
{% extends "admin/index.html" %}
|
||||
|
||||
{% block body %}
|
||||
{{information(current_user, active_semester_repr, role="admin")}}
|
||||
{{ information(current_user, active_semester_repr, role="admin") }}
|
||||
|
||||
<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() }}
|
||||
|
||||
{{ footer|safe }}
|
||||
{% endblock %}
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
{% extends "admin/model/list.html" %}
|
||||
|
||||
{% block body %}
|
||||
{{information(current_user, active_semester_repr, role="admin")}}
|
||||
{{ information(current_user, active_semester_repr, role="admin") }}
|
||||
|
||||
{{ super() }}
|
||||
|
||||
{{ footer|safe }}
|
||||
{% endblock %}
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
{% extends "admin/model/create.html" %}
|
||||
|
||||
{% block body %}
|
||||
{{information(current_user, active_semester_repr, role="assistant")}}
|
||||
{{ information(current_user, active_semester_repr, role="assistant") }}
|
||||
|
||||
{{ super() }}
|
||||
|
||||
{{ footer|safe }}
|
||||
{% endblock %}
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
{% extends "admin/model/details.html" %}
|
||||
|
||||
{% block body %}
|
||||
{{information(current_user, active_semester_repr, role="assistant")}}
|
||||
{{ information(current_user, active_semester_repr, role="assistant") }}
|
||||
|
||||
{{ super() }}
|
||||
|
||||
{{ footer|safe }}
|
||||
{% endblock %}
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
{% extends "admin/model/edit.html" %}
|
||||
|
||||
{% block body %}
|
||||
{{information(current_user, active_semester_repr, role="assistant")}}
|
||||
{{ information(current_user, active_semester_repr, role="assistant") }}
|
||||
|
||||
{{ super() }}
|
||||
|
||||
{{ footer|safe }}
|
||||
{% endblock %}
|
||||
|
|
|
@ -2,11 +2,13 @@
|
|||
{% extends "admin/index.html" %}
|
||||
|
||||
{% block body %}
|
||||
{{information(current_user, active_semester_repr, role="assistant")}}
|
||||
{{ information(current_user, active_semester_repr, role="assistant") }}
|
||||
|
||||
<hr>
|
||||
|
||||
{{missing_final_experiment_marks(number_of_missing_final_experiment_marks, number_of_all_experiment_marks)}}
|
||||
|
||||
{{ super() }}
|
||||
|
||||
{{ footer|safe }}
|
||||
{% endblock %}
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
{% extends "admin/model/list.html" %}
|
||||
|
||||
{% block body %}
|
||||
{{information(current_user, active_semester_repr, role="assistant")}}
|
||||
{{ information(current_user, active_semester_repr, role="assistant") }}
|
||||
|
||||
{{ super() }}
|
||||
|
||||
{{ footer|safe }}
|
||||
{% endblock %}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
{% extends "admin/master.html" %}
|
||||
|
||||
{% block body %}
|
||||
{{information(current_user, active_semester_repr, role="admin")}}
|
||||
{{ information(current_user, active_semester_repr, role="admin") }}
|
||||
|
||||
<hr>
|
||||
|
||||
|
@ -21,4 +21,6 @@
|
|||
<br>
|
||||
{{ form.file.description }}
|
||||
</form>
|
||||
|
||||
{{ footer|safe }}
|
||||
{% endblock body %}
|
||||
|
|
Loading…
Reference in a new issue