From fee87cdd57369352047b33aafef2a2a7b403b06b Mon Sep 17 00:00:00 2001 From: Belen Barros Pena Date: Thu, 27 Nov 2014 12:18:25 +0000 Subject: bitbake: toaster: release name consistency Small changes to the project, new project and all layers pages to ensure consitency in release naming across the interface. The changes are: * In the new project page, change the label 'release version' to 'release' * In the new project page, sort the releases in the dropdown menu in ascending alphabetical order * In the new project page, remove the release name that was showing between brackets after the release description in the dropdown menu * In the project page, make sure the release information shows the release description field instead of the release name, to keep consistency with the new project page * In the all layers page, provide some help text for the branch 'HEAD' (Bitbake rev: 9a90bf201dab83060f0bdd6ac08c72b8d62f6060) Signed-off-by: Belen Barros Pena Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/templates/layers.html | 9 ++++++++- bitbake/lib/toaster/toastergui/templates/newproject.html | 4 ++-- bitbake/lib/toaster/toastergui/templates/project.html | 4 ++-- bitbake/lib/toaster/toastergui/views.py | 4 ++-- 4 files changed, 14 insertions(+), 7 deletions(-) (limited to 'bitbake') diff --git a/bitbake/lib/toaster/toastergui/templates/layers.html b/bitbake/lib/toaster/toastergui/templates/layers.html index 4e923326c8..ced54c2098 100644 --- a/bitbake/lib/toaster/toastergui/templates/layers.html +++ b/bitbake/lib/toaster/toastergui/templates/layers.html @@ -52,7 +52,14 @@ {% endif %} - {% if o.branch %}{{o.branch}}{% else %}{{o.up_branch.name}}{% endif %} + + {% if o.branch %} + {{o.branch}} + {% else %} + {{o.up_branch.name}} + + {% endif %} + {% with ods=o.dependencies.all%} {% if ods.count %} diff --git a/bitbake/lib/toaster/toastergui/templates/newproject.html b/bitbake/lib/toaster/toastergui/templates/newproject.html index 5a5e1e6dfe..512a8fa68f 100644 --- a/bitbake/lib/toaster/toastergui/templates/newproject.html +++ b/bitbake/lib/toaster/toastergui/templates/newproject.html @@ -18,12 +18,12 @@ {% if releases.count > 1 %} {% for release in releases %} diff --git a/bitbake/lib/toaster/toastergui/templates/project.html b/bitbake/lib/toaster/toastergui/templates/project.html index 0b2821cdf6..fdfc3af9fb 100644 --- a/bitbake/lib/toaster/toastergui/templates/project.html +++ b/bitbake/lib/toaster/toastergui/templates/project.html @@ -350,13 +350,13 @@ vim: expandtab tabstop=2

- {[project.release.name]} + {[project.release.desc]}