From bdfe084637ff07849f1a849402b0f74863fca405 Mon Sep 17 00:00:00 2001 From: Andreas <andreasv@fsmpi.rwth-aachen.de> Date: Wed, 12 Oct 2016 17:08:02 +0200 Subject: [PATCH] added usefull page title, closes #64 --- templates/base.html | 2 +- templates/course.html | 1 + templates/embed.html | 1 + templates/lecture.html | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/base.html b/templates/base.html index 135bdb1..0cb8eed 100644 --- a/templates/base.html +++ b/templates/base.html @@ -8,7 +8,7 @@ <html> <head> {% block header %} - <title>Video AG {% block title %}{% endblock %}</title> + <title>Video AG {% block title %}{% for endpoint, caption, iconlib, gly, visible in navbar if ((visible or ismod()) and (endpoint == request.endpoint)) %}- {{ caption }}{% else%}{% endfor %}{% endblock %}</title> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <link rel="icon" type="image/png" href="{{url_for('static', filename='favicon.png')}}"> <meta http-equiv="content-language" content="de-DE"> diff --git a/templates/course.html b/templates/course.html index 093ef08..ad7e025 100644 --- a/templates/course.html +++ b/templates/course.html @@ -6,6 +6,7 @@ {% from 'macros.html' import moderator_permissioneditor %} {% extends "base.html" %} +{% block title %} - {{course.title}}{% endblock %} {% block content %} <div class="panel panel-default"> <div class="panel-heading"> diff --git a/templates/embed.html b/templates/embed.html index 1c5fd04..2c5a2ee 100644 --- a/templates/embed.html +++ b/templates/embed.html @@ -4,6 +4,7 @@ {% set page_border = 0 -%} {% extends "base.html" %} +{% block title %}- {{ course.title }}: {{ lecture.title}}{% endblock %} {% block navbar %} {% endblock %} {% block content %} diff --git a/templates/lecture.html b/templates/lecture.html index 8f5d05c..3261bcc 100644 --- a/templates/lecture.html +++ b/templates/lecture.html @@ -8,6 +8,7 @@ {% set page_border = 0 -%} {% extends "base.html" %} +{% block title %}- {{ course.title }}: {{ lecture.title}}{% endblock %} {% block header %} {{ super() }} -- GitLab