summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@linux.intel.com>2015-03-22 17:18:31 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-24 22:54:37 +0000
commit0bd81be04c88104d7d460f913d0500e5fa9755fe (patch)
tree051fe12364afa4d8e15ffb2fc8197abf29733dd8
parent88b1201a2f6dec53970b120cc8e13c0eb5ae21e1 (diff)
downloadbitbake-0bd81be04c88104d7d460f913d0500e5fa9755fe.tar.gz
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. Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
-rw-r--r--lib/toaster/toastergui/templates/project.html5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/toaster/toastergui/templates/project.html b/lib/toaster/toastergui/templates/project.html
index d208bf8cf..ae9ee9b44 100644
--- a/lib/toaster/toastergui/templates/project.html
+++ b/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>