summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@linux.intel.com>2015-03-22 17:18:31 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-25 12:39:55 (GMT)
commit7c3bdebffe94fb04f5a9119bb70cf90a20971cb7 (patch)
treee0ee8ba87d16ec03233d188a6b827b777d7e6b60
parentfd4085f380d6213e9dff47cf4d97d3009e148928 (diff)
downloadpoky-7c3bdebffe94fb04f5a9119bb70cf90a20971cb7.tar.gz
poky-7c3bdebffe94fb04f5a9119bb70cf90a20971cb7.tar.xz
bitbake: toasterui: hide release when only one exists
If only one release has been set up in Toaster, any project you create defaults to that release, and we simply don't show the release selection menu when creating projects. However, we were still showing the release information in the project page, which would leave users wondering what that release thing is since they never were exposed to it. This patch hides the release information in the project page when only one release has been set up in Toaster. (Bitbake rev: 0bd81be04c88104d7d460f913d0500e5fa9755fe) Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/toaster/toastergui/templates/project.html5
1 files changed, 2 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/project.html b/bitbake/lib/toaster/toastergui/templates/project.html
index d208bf8..ae9ee9b 100644
--- a/bitbake/lib/toaster/toastergui/templates/project.html
+++ b/bitbake/lib/toaster/toastergui/templates/project.html
@@ -397,12 +397,11 @@ vim: expandtab tabstop=2
</form>
</div>
-
- <h3>
+ <h3 ng-if="releases.length > 1">
Release
<i class="icon-question-sign get-help heading-help" title="The version of the build system you want to use"></i>
</h3>
- <p class="lead" id="change-project-version-opposite">
+ <p ng-if="releases.length > 1" class="lead" id="change-project-version-opposite">
<span id="project-version">{[project.release.desc]}</span>
<i id="change-version" class="icon-pencil" ng-click="toggle('#change-project-version')" ></i>
</p>