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>
This commit is contained in:
Belen Barros Pena 2015-03-22 17:18:31 +00:00 committed by Richard Purdie
parent fd4085f380
commit 7c3bdebffe
1 changed files with 2 additions and 3 deletions

View File

@ -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>