about: demande login

This commit is contained in:
Emmanuel Viennet 2022-01-06 23:37:57 +01:00
parent 54b714fdbc
commit 6b1ccfe400
2 changed files with 4 additions and 2 deletions

View File

@ -58,8 +58,8 @@
</div> --> </div> -->
<div style="margin-top: 1cm;"> <div style="margin-top: 1cm;">
Service réservé aux personnels et enseignants, basé sur <a href="{{url_for('scodoc.about')}}">le logiciel libre Service <b>réservé aux personnels et enseignants</b>, basé sur
ScoDoc.</a> <a href="{{scu.SCO_WEBSITE}}">le logiciel libre ScoDoc.</a>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -90,6 +90,7 @@ def index():
current_app=flask.current_app, current_app=flask.current_app,
depts=depts, depts=depts,
Permission=Permission, Permission=Permission,
scu=scu,
) )
@ -204,6 +205,7 @@ def search_inscr_etud_by_nip(code_nip, format="json", __ac_name="", __ac_passwor
@bp.route("/ScoDoc/about") @bp.route("/ScoDoc/about")
@bp.route("/ScoDoc/Scolarite/<scodoc_dept>/about") @bp.route("/ScoDoc/Scolarite/<scodoc_dept>/about")
@login_required
def about(scodoc_dept=None): def about(scodoc_dept=None):
"version info" "version info"
return render_template( return render_template(