From 66d3c353f8e7103b0d60abdeb575cd3ac303e877 Mon Sep 17 00:00:00 2001 From: Belen Barros Pena Date: Wed, 28 Oct 2015 14:22:05 +0000 Subject: bitbake: 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. (Bitbake rev: 1ab8827d684a19a70f3b788aed2327bf30edffe2) Signed-off-by: Belen Barros Pena Signed-off-by: Michael Wood Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/templates/base.html | 4 +++- .../lib/toaster/toastergui/templates/baseprojectpage.html | 3 +++ bitbake/lib/toaster/toastergui/templates/bpackage.html | 1 + .../lib/toaster/toastergui/templates/builddashboard.html | 1 + bitbake/lib/toaster/toastergui/templates/builds.html | 1 + .../lib/toaster/toastergui/templates/configuration.html | 1 + bitbake/lib/toaster/toastergui/templates/configvars.html | 1 + bitbake/lib/toaster/toastergui/templates/dirinfo.html | 1 + bitbake/lib/toaster/toastergui/templates/importlayer.html | 1 + bitbake/lib/toaster/toastergui/templates/landing.html | 1 + .../toaster/toastergui/templates/landing_not_managed.html | 2 ++ .../lib/toaster/toastergui/templates/layerdetails.html | 1 + bitbake/lib/toaster/toastergui/templates/newproject.html | 3 +++ .../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 ++-- bitbake/lib/toaster/toastergui/templates/project.html | 1 + .../lib/toaster/toastergui/templates/projectbuilds.html | 2 +- bitbake/lib/toaster/toastergui/templates/projectconf.html | 2 +- bitbake/lib/toaster/toastergui/templates/projects.html | 2 ++ bitbake/lib/toaster/toastergui/templates/recipe.html | 1 + bitbake/lib/toaster/toastergui/templates/recipes.html | 1 + bitbake/lib/toaster/toastergui/templates/target.html | 1 + bitbake/lib/toaster/toastergui/templates/task.html | 1 + bitbake/lib/toaster/toastergui/templates/tasks.html | 15 ++++++++------- .../toastergui/templates/unavailable_artifact.html | 2 ++ bitbake/lib/toaster/toastergui/views.py | 2 +- 28 files changed, 55 insertions(+), 19 deletions(-) (limited to 'bitbake') diff --git a/bitbake/lib/toaster/toastergui/templates/base.html b/bitbake/lib/toaster/toastergui/templates/base.html index dfa6bba70f..11ac2a0355 100644 --- a/bitbake/lib/toaster/toastergui/templates/base.html +++ b/bitbake/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/bitbake/lib/toaster/toastergui/templates/baseprojectpage.html b/bitbake/lib/toaster/toastergui/templates/baseprojectpage.html index 88bf8599e4..1f45be462d 100644 --- a/bitbake/lib/toaster/toastergui/templates/baseprojectpage.html +++ b/bitbake/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/bitbake/lib/toaster/toastergui/templates/bpackage.html b/bitbake/lib/toaster/toastergui/templates/bpackage.html index d775fec737..81973cbc6d 100644 --- a/bitbake/lib/toaster/toastergui/templates/bpackage.html +++ b/bitbake/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/bitbake/lib/toaster/toastergui/templates/builddashboard.html b/bitbake/lib/toaster/toastergui/templates/builddashboard.html index c39fe3457a..323bbbb6e2 100644 --- a/bitbake/lib/toaster/toastergui/templates/builddashboard.html +++ b/bitbake/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/bitbake/lib/toaster/toastergui/templates/builds.html b/bitbake/lib/toaster/toastergui/templates/builds.html index 459fcb0744..a27a121913 100644 --- a/bitbake/lib/toaster/toastergui/templates/builds.html +++ b/bitbake/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/bitbake/lib/toaster/toastergui/templates/configuration.html b/bitbake/lib/toaster/toastergui/templates/configuration.html index 3e489918d2..85d6a622a8 100644 --- a/bitbake/lib/toaster/toastergui/templates/configuration.html +++ b/bitbake/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/bitbake/lib/toaster/toastergui/templates/configvars.html b/bitbake/lib/toaster/toastergui/templates/configvars.html index 8a572ae397..e40c225a3a 100644 --- a/bitbake/lib/toaster/toastergui/templates/configvars.html +++ b/bitbake/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/bitbake/lib/toaster/toastergui/templates/dirinfo.html b/bitbake/lib/toaster/toastergui/templates/dirinfo.html index 7819894b65..ecb46bf7ab 100644 --- a/bitbake/lib/toaster/toastergui/templates/dirinfo.html +++ b/bitbake/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/bitbake/lib/toaster/toastergui/templates/importlayer.html b/bitbake/lib/toaster/toastergui/templates/importlayer.html index ce3d724c89..033f0aedeb 100644 --- a/bitbake/lib/toaster/toastergui/templates/importlayer.html +++ b/bitbake/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/bitbake/lib/toaster/toastergui/templates/landing.html b/bitbake/lib/toaster/toastergui/templates/landing.html index 65d8c3c626..cafaa1afad 100644 --- a/bitbake/lib/toaster/toastergui/templates/landing.html +++ b/bitbake/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/bitbake/lib/toaster/toastergui/templates/landing_not_managed.html b/bitbake/lib/toaster/toastergui/templates/landing_not_managed.html index 5bc435d149..9b37f55305 100644 --- a/bitbake/lib/toaster/toastergui/templates/landing_not_managed.html +++ b/bitbake/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/bitbake/lib/toaster/toastergui/templates/layerdetails.html b/bitbake/lib/toaster/toastergui/templates/layerdetails.html index 7dd3db27a5..7fe365da38 100644 --- a/bitbake/lib/toaster/toastergui/templates/layerdetails.html +++ b/bitbake/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/bitbake/lib/toaster/toastergui/templates/newproject.html b/bitbake/lib/toaster/toastergui/templates/newproject.html index 997390bcf0..e83b2bea61 100644 --- a/bitbake/lib/toaster/toastergui/templates/newproject.html +++ b/bitbake/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 %}