1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-12-20 23:41:20 +00:00

Add footer

This commit is contained in:
Mo 2022-05-30 16:43:29 +02:00
parent 00ef2890c6
commit d63f96947b
13 changed files with 48 additions and 14 deletions

View file

@ -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("/")

View file

@ -10,4 +10,6 @@
{{ form.csrf_token }} {{ form.csrf_token }}
{{ form.manualUpdateFinalExperimentAndPartMarksSubmit }} {{ form.manualUpdateFinalExperimentAndPartMarksSubmit }}
</form> </form>
{{ footer|safe }}
{% endblock body %} {% endblock body %}

View file

@ -3,5 +3,8 @@
{% 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 %}

View file

@ -3,5 +3,8 @@
{% 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 %}

View file

@ -3,5 +3,8 @@
{% 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 %}

View file

@ -9,4 +9,6 @@
{{ 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 %}

View file

@ -3,5 +3,8 @@
{% 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 %}

View file

@ -3,5 +3,8 @@
{% 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 %}

View file

@ -3,5 +3,8 @@
{% 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 %}

View file

@ -3,5 +3,8 @@
{% 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 %}

View file

@ -9,4 +9,6 @@
{{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 %}

View file

@ -3,5 +3,8 @@
{% 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 %}

View file

@ -21,4 +21,6 @@
<br> <br>
{{ form.file.description }} {{ form.file.description }}
</form> </form>
{{ footer|safe }}
{% endblock body %} {% endblock body %}