diff --git a/advlabdb/assistantModelViews.py b/advlabdb/assistantModelViews.py index 48d2a79..5ee32e6 100644 --- a/advlabdb/assistantModelViews.py +++ b/advlabdb/assistantModelViews.py @@ -194,14 +194,14 @@ class AssistantUserView(SecureAssistantModelView): class AssistantDocsView(SecureAssistantBaseView): @expose("/") def index(self): - return self.render("docs/assistant_container.html") + return self.render("docs/docs.html", role="assistant") assistantSpace.add_view( AssistantAppointmentView(Appointment, db.session, endpoint="assistant_appointment", url="appointment") ) assistantSpace.add_view( - AssistantExperimentMarkView(ExperimentMark, db.session, endpoint="assistant_experimentmark", url="experimentmark") + AssistantExperimentMarkView(ExperimentMark, db.session, endpoint="assistant_experimentmark", url="experiment_mark") ) assistantSpace.add_view(AssistantUserView(User, db.session, endpoint="assistant_user", url="user")) assistantSpace.add_view(AssistantDocsView(name="Docs", endpoint="assistant_docs", url="docs")) diff --git a/advlabdb/templates/docs/assistant_container.html b/advlabdb/templates/docs/docs.html similarity index 56% rename from advlabdb/templates/docs/assistant_container.html rename to advlabdb/templates/docs/docs.html index 5214b35..810e016 100644 --- a/advlabdb/templates/docs/assistant_container.html +++ b/advlabdb/templates/docs/docs.html @@ -2,11 +2,11 @@ {% extends "admin/master.html" %} {% block body %} - {{ information(current_user, active_semester_repr, role="assistant") }} + {{ information(current_user, active_semester_repr, role=role) }}
- {% include "docs/assistant.html" %} + {% include "docs/" + role + ".html" %} {{ footer|safe }} {% endblock body %}