diff options
author | Elliot Smith <elliot.smith@intel.com> | 2015-10-17 10:45:50 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-10-27 07:23:22 +0000 |
commit | b1858653c22eb6d51fc23f75ccad69b76523eb41 (patch) | |
tree | 65b24b657c7cc5418087cd6546abb8abb27b6193 | |
parent | 86b4a10cc817abb5e3e63360dc8b3c550337f17c (diff) | |
download | bitbake-b1858653c22eb6d51fc23f75ccad69b76523eb41.tar.gz |
toaster: Hide top bar buttons in analysis mode
The "new build" and "new project" buttons are irrelevant in
analysis mode, as you can't start a build or a project.
Hide these buttons if not in BUILD_MODE.
[YOCTO #8514]
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/toaster/toastergui/templates/base.html | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/lib/toaster/toastergui/templates/base.html b/lib/toaster/toastergui/templates/base.html index c1d069306..073c34243 100644 --- a/lib/toaster/toastergui/templates/base.html +++ b/lib/toaster/toastergui/templates/base.html @@ -120,11 +120,19 @@ </li> </ul> <span class="pull-right divider-vertical"></span> - <div class="btn-group pull-right"> - <a class="btn" id="new-project-button" href="{% url 'newproject' %}">New project</a> - </div> - <!-- New build popover; only shown if there is at least one user-created project --> - {% if non_cli_projects.count > 0 %} + + <!-- new project button; only show in build mode --> + {% if BUILD_MODE %} + <div class="btn-group pull-right"> + <a class="btn" id="new-project-button" href="{% url 'newproject' %}">New project</a> + </div> + {% endif %} + + <!-- + New build popover; only shown if there is at least one user-created project + and we're in build mode + --> + {% if BUILD_MODE and non_cli_projects.count > 0 %} <div class="btn-group pull-right" id="new-build-button" style="display:none"> <button class="btn dropdown-toggle" data-toggle="dropdown"> New build |