From 1ab8827d684a19a70f3b788aed2327bf30edffe2 Mon Sep 17 00:00:00 2001 From: Belen Barros Pena Date: Wed, 28 Oct 2015 14:22:05 +0000 Subject: toaster: templates Add meaningful title tags Our title tags are all over the place, and have no relation to the page content. This commit adds a meaningful title tag to each Toaster page. Signed-off-by: Belen Barros Pena Signed-off-by: Michael Wood Signed-off-by: Richard Purdie --- lib/toaster/toastergui/templates/base.html | 4 +++- lib/toaster/toastergui/templates/baseprojectpage.html | 3 +++ lib/toaster/toastergui/templates/bpackage.html | 1 + lib/toaster/toastergui/templates/builddashboard.html | 1 + lib/toaster/toastergui/templates/builds.html | 1 + lib/toaster/toastergui/templates/configuration.html | 1 + lib/toaster/toastergui/templates/configvars.html | 1 + lib/toaster/toastergui/templates/dirinfo.html | 1 + lib/toaster/toastergui/templates/importlayer.html | 1 + lib/toaster/toastergui/templates/landing.html | 1 + lib/toaster/toastergui/templates/landing_not_managed.html | 2 ++ lib/toaster/toastergui/templates/layerdetails.html | 1 + lib/toaster/toastergui/templates/newproject.html | 3 +++ lib/toaster/toastergui/templates/package_detail_base.html | 11 +++++++++-- .../templates/package_included_dependencies.html | 4 ++-- .../toastergui/templates/package_included_detail.html | 4 ++-- .../templates/package_included_reverse_dependencies.html | 4 ++-- lib/toaster/toastergui/templates/project.html | 1 + lib/toaster/toastergui/templates/projectbuilds.html | 2 +- lib/toaster/toastergui/templates/projectconf.html | 2 +- lib/toaster/toastergui/templates/projects.html | 2 ++ lib/toaster/toastergui/templates/recipe.html | 1 + lib/toaster/toastergui/templates/recipes.html | 1 + lib/toaster/toastergui/templates/target.html | 1 + lib/toaster/toastergui/templates/task.html | 1 + lib/toaster/toastergui/templates/tasks.html | 15 ++++++++------- .../toastergui/templates/unavailable_artifact.html | 2 ++ lib/toaster/toastergui/views.py | 2 +- 28 files changed, 55 insertions(+), 19 deletions(-) diff --git a/lib/toaster/toastergui/templates/base.html b/lib/toaster/toastergui/templates/base.html index dfa6bba70..11ac2a035 100644 --- a/lib/toaster/toastergui/templates/base.html +++ b/lib/toaster/toastergui/templates/base.html @@ -4,7 +4,9 @@ {% load project_url_tag %} - {% if objectname %} {{objectname|title}} - {% endif %}Toaster + + {% block title %} Toaster {% endblock %} + diff --git a/lib/toaster/toastergui/templates/baseprojectpage.html b/lib/toaster/toastergui/templates/baseprojectpage.html index 88bf8599e..1f45be462 100644 --- a/lib/toaster/toastergui/templates/baseprojectpage.html +++ b/lib/toaster/toastergui/templates/baseprojectpage.html @@ -1,6 +1,9 @@ {% extends "base.html" %} {% load projecttags %} {% load humanize %} + +{% block title %} {{title}} - {{project.name}} - Toaster {% endblock %} + {% block pagecontent %} {% include "projecttopbar.html" %} diff --git a/lib/toaster/toastergui/templates/bpackage.html b/lib/toaster/toastergui/templates/bpackage.html index d775fec73..81973cbc6 100644 --- a/lib/toaster/toastergui/templates/bpackage.html +++ b/lib/toaster/toastergui/templates/bpackage.html @@ -2,6 +2,7 @@ {% load projecttags %} +{% block title %} Packages built - {{build.target_set.all|dictsort:"target"|join:", "}} {{build.machine}} - {{build.project.name}} - Toaster {% endblock %} {% block localbreadcrumb %}
  • Packages
  • {% endblock %} diff --git a/lib/toaster/toastergui/templates/builddashboard.html b/lib/toaster/toastergui/templates/builddashboard.html index c39fe3457..323bbbb6e 100644 --- a/lib/toaster/toastergui/templates/builddashboard.html +++ b/lib/toaster/toastergui/templates/builddashboard.html @@ -2,6 +2,7 @@ {% load humanize %} {% load projecttags %} +{% block title %} {{build.target_set.all|dictsort:"target"|join:", "}} {{build.machine}} - {{build.project.name}} - Toaster {% endblock %} {% block parentbreadcrumb %} {% if build.get_sorted_target_list.count > 0 %} {{build.get_sorted_target_list.0.target}} diff --git a/lib/toaster/toastergui/templates/builds.html b/lib/toaster/toastergui/templates/builds.html index 459fcb074..a27a12191 100644 --- a/lib/toaster/toastergui/templates/builds.html +++ b/lib/toaster/toastergui/templates/builds.html @@ -5,6 +5,7 @@ {% load project_url_tag %} {% load humanize %} +{% block title %} All builds - Toaster {% endblock %} {% block extraheadcontent %} diff --git a/lib/toaster/toastergui/templates/configuration.html b/lib/toaster/toastergui/templates/configuration.html index 3e489918d..85d6a622a 100644 --- a/lib/toaster/toastergui/templates/configuration.html +++ b/lib/toaster/toastergui/templates/configuration.html @@ -1,6 +1,7 @@ {% extends "basebuildpage.html" %} {% load projecttags %} +{% block title %} Configuration summary - {{build.target_set.all|dictsort:"target"|join:", "}} {{build.machine}} - {{build.project.name}} - Toaster {% endblock %} {% block localbreadcrumb %}
  • Configuration
  • {% endblock %} diff --git a/lib/toaster/toastergui/templates/configvars.html b/lib/toaster/toastergui/templates/configvars.html index 8a572ae39..e40c225a3 100644 --- a/lib/toaster/toastergui/templates/configvars.html +++ b/lib/toaster/toastergui/templates/configvars.html @@ -1,6 +1,7 @@ {% extends "basebuildpage.html" %} {% load projecttags %} +{% block title %} BitBake variables - {{build.target_set.all|dictsort:"target"|join:", "}} {{build.machine}} - {{build.project.name}} - Toaster {% endblock %} {% block localbreadcrumb %}
  • Configuration
  • {% endblock %} diff --git a/lib/toaster/toastergui/templates/dirinfo.html b/lib/toaster/toastergui/templates/dirinfo.html index 7819894b6..ecb46bf7a 100644 --- a/lib/toaster/toastergui/templates/dirinfo.html +++ b/lib/toaster/toastergui/templates/dirinfo.html @@ -1,4 +1,5 @@ {% extends "basebuildpage.html" %} +{% block title %} Directory structure - {{ target.target }} {{ build.machine }} - {{ build.project.name }} - Toaster {% endblock %} {% block extraheadcontent %} {% load static %} diff --git a/lib/toaster/toastergui/templates/importlayer.html b/lib/toaster/toastergui/templates/importlayer.html index ce3d724c8..033f0aede 100644 --- a/lib/toaster/toastergui/templates/importlayer.html +++ b/lib/toaster/toastergui/templates/importlayer.html @@ -2,6 +2,7 @@ {% load projecttags %} {% load humanize %} {% load static %} +{% block title %} Import layer - {{project.name}} - Toaster {% endblock %} {% block pagecontent %} {% include "projecttopbar.html" %} diff --git a/lib/toaster/toastergui/templates/landing.html b/lib/toaster/toastergui/templates/landing.html index 65d8c3c62..cafaa1afa 100644 --- a/lib/toaster/toastergui/templates/landing.html +++ b/lib/toaster/toastergui/templates/landing.html @@ -4,6 +4,7 @@ {% load projecttags %} {% load humanize %} +{% block title %} Welcome to Toaster {% endblock %} {% block pagecontent %} {% if BUILD_MODE %} diff --git a/lib/toaster/toastergui/templates/landing_not_managed.html b/lib/toaster/toastergui/templates/landing_not_managed.html index 5bc435d14..9b37f5530 100644 --- a/lib/toaster/toastergui/templates/landing_not_managed.html +++ b/lib/toaster/toastergui/templates/landing_not_managed.html @@ -4,6 +4,8 @@ {% load projecttags %} {% load humanize %} +{% block title %} Welcome to Toaster {% endblock %} + {% block pagecontent %}
    diff --git a/lib/toaster/toastergui/templates/layerdetails.html b/lib/toaster/toastergui/templates/layerdetails.html index 7dd3db27a..7fe365da3 100644 --- a/lib/toaster/toastergui/templates/layerdetails.html +++ b/lib/toaster/toastergui/templates/layerdetails.html @@ -3,6 +3,7 @@ {% load humanize %} {% load static %} +{% block title %} {{layerversion.layer.name}} - {{project.name}} - Toaster {% endblock %} {% block pagecontent %}
    diff --git a/lib/toaster/toastergui/templates/newproject.html b/lib/toaster/toastergui/templates/newproject.html index 997390bcf..e83b2bea6 100644 --- a/lib/toaster/toastergui/templates/newproject.html +++ b/lib/toaster/toastergui/templates/newproject.html @@ -1,6 +1,9 @@ {% extends "base.html" %} {% load projecttags %} {% load humanize %} + +{% block title %} Create a new project - Toaster {% endblock %} + {% block pagecontent %}