Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id E4EA8E00ACE; Fri, 23 Oct 2015 05:33:15 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [192.55.52.115 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 7A944E00AA8 for ; Fri, 23 Oct 2015 05:33:09 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP; 23 Oct 2015 05:33:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,186,1444719600"; d="scan'208";a="586631522" Received: from unknown (HELO bbarrosp-mac03.local.com) ([10.252.26.186]) by FMSMGA003.fm.intel.com with ESMTP; 23 Oct 2015 05:33:08 -0700 From: Belen Barros Pena To: toaster@yoctoproject.org Date: Fri, 23 Oct 2015 13:32:56 +0100 Message-Id: <1445603576-19582-1-git-send-email-belen.barros.pena@linux.intel.com> X-Mailer: git-send-email 2.3.8 (Apple Git-58) Subject: [PATCH] toaster: Add meaningful title tags X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Oct 2015 12:33:16 -0000 From: Belen Barros Pena 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 --- 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(-) diff --git a/bitbake/lib/toaster/toastergui/templates/base.html b/bitbake/lib/toaster/toastergui/templates/base.html index dfa6bba..11ac2a0 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 88bf859..1f45be4 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 d775fec..81973cb 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 c39fe34..323bbbb 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 459fcb0..a27a121 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 3e48991..85d6a62 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 8a572ae..e40c225 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 7819894..ecb46bf 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 ce3d724..033f0ae 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 65d8c3c..cafaa1a 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 5bc435d..9b37f55 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 7dd3db2..7fe365d 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 997390b..e83b2be 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 %}