]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toasterui: hide release when only one exists
authorBelen Barros Pena <belen.barros.pena@linux.intel.com>
Sun, 22 Mar 2015 17:18:31 +0000 (17:18 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 24 Mar 2015 22:54:37 +0000 (22:54 +0000)
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>
lib/toaster/toastergui/templates/project.html

index d208bf8cfb9046b1ef9fce1efb68d829d1f1cb11..ae9ee9b44d57a9f2ad41d9307b3c4c75054a7e4c 100644 (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>