diff --git a/advlabdb/__init__.py b/advlabdb/__init__.py index ee302dd..956d044 100644 --- a/advlabdb/__init__.py +++ b/advlabdb/__init__.py @@ -23,7 +23,10 @@ app.config["DEBUG_TB_INTERCEPT_REDIRECTS"] = False #DEBUG DebugToolbarExtension(app) #DEBUG from advlabdb import customClasses -admin = Admin(app, name="Admin@AdvLabDB", template_mode='bootstrap3', index_view=customClasses.SecureAdminIndexView()) +admin = Admin(app, + name="Admin@AdvLabDB", + template_mode="bootstrap3", + index_view=customClasses.SecureAdminIndexView(template="admin_index.html")) from advlabdb import models diff --git a/advlabdb/templates/admin_index.html b/advlabdb/templates/admin_index.html new file mode 100644 index 0000000..bbe11ea --- /dev/null +++ b/advlabdb/templates/admin_index.html @@ -0,0 +1,7 @@ +{% extends "admin/index.html" %} + +{% block body %} + User's active semester: {{userActiveSemester(flashWarning=True).label}} +