Return-Path: Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by mail.openembedded.org (Postfix) with ESMTP id D638B76E04 for ; Wed, 28 Oct 2015 14:22:16 +0000 (UTC) Received: by wikq8 with SMTP id q8so254834879wik.1 for ; Wed, 28 Oct 2015 07:22:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel_com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=qN/K7FoCJcPUMVNkGzHENxCfTX0DIEoxrTgqVkoyoMA=; b=bv/sjXqHjZ4kDSapvKvyVMsgHF7Bft9Rc5iCMCYmrbYgZ60B1ZCR6AEfXdDnvxeht0 I3YCr4klQUW4/yciOMjKG8WjkLKhzYJ4wA7SDUmle02CMezhuGsC4KKwWvVpMUSdT7iC rpWtqE0xzXCoqsPr+Y2aQiMdKGiutydtwIR3rRLJvzx9Q1OfHS+XVKORqyvdZ1UUnu4r 5iGi3JWwxNKlTnYczOfgXyuKLtQaqmm1lu2pXOS73a8yVM4ygCXO1oyOfCDprtRS21eI ZtDwbbWhuvV9UK//e037WsQ3VpuEQqpKE6qSlFYrD3HWLouM50Pos6lwLIx+nSvGN3BY 85Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=qN/K7FoCJcPUMVNkGzHENxCfTX0DIEoxrTgqVkoyoMA=; b=fp+aikBfw9uanau7q7q/H0379+CJKz1ajP26/lX56Vvg61i4Du8i42ozQ8NpYydRqc zXVhDPk03240iCKvI4XuUd+vH5GhrkiK7F0yRLLgZmhGHDpplpCI4HsQ7Hcp+IiOYxUm b74K5kJMimmCvgfSYIY7gFeE4L5cJ0OAiucmA2PRJqYpLGHeZVlGmIAK+2XHDdUv641L qib8Z/K60TTSB3SlciCzNGA1ULO8eRvGaZXJ2K7R2tCc8M36ta4X11thzSVqj2uPYZcd JK9Ua7X1oFw+861y9Pctf7EzzPv6IS8iiltX0GgXJIkjplh1YhLg0ZVEVtiBf71PmRFb qlyg== X-Gm-Message-State: ALoCoQlox2bzNY3KPErO4nT2zXcvI/nfXjTmOA9luOAUcdmIgC/RMyw0EZPqqxfYyxscqahg5Pui X-Received: by 10.194.116.42 with SMTP id jt10mr33521528wjb.117.1446042136771; Wed, 28 Oct 2015 07:22:16 -0700 (PDT) Received: from draco.icx.intel.com ([83.217.123.106]) by smtp.gmail.com with ESMTPSA id d10sm17862545wje.14.2015.10.28.07.22.15 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Oct 2015 07:22:16 -0700 (PDT) From: Michael Wood To: bitbake-devel@lists.openembedded.org Date: Wed, 28 Oct 2015 14:22:05 +0000 Message-Id: <1446042126-13719-1-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.1.4 Subject: [PATCH] toaster: templates Add meaningful title tags X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussion that advance bitbake development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Oct 2015 14:22:18 -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 Signed-off-by: Michael Wood --- 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 dfa6bba..11ac2a0 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 88bf859..1f45be4 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 d775fec..81973cb 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 c39fe34..323bbbb 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 459fcb0..a27a121 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 3e48991..85d6a62 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 8a572ae..e40c225 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 7819894..ecb46bf 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 ce3d724..033f0ae 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 65d8c3c..cafaa1a 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 5bc435d..9b37f55 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 7dd3db2..7fe365d 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 997390b..e83b2be 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 %}