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:24:31 +0000 |
commit | a5804794526fa2d3033f8df71c5fb8ac835d43e2 (patch) | |
tree | a2e8c0f26d57b8993fb671fe5e665cc20818f6b5 /bitbake/lib | |
parent | 1ec2ec34299cd8c0093f6e1a8f2fbf1a1d63741f (diff) | |
download | poky-a5804794526fa2d3033f8df71c5fb8ac835d43e2.tar.gz |
bitbake: 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]
(Bitbake rev: b1858653c22eb6d51fc23f75ccad69b76523eb41)
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>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/base.html | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/base.html b/bitbake/lib/toaster/toastergui/templates/base.html index c1d0693066..073c34243c 100644 --- a/bitbake/lib/toaster/toastergui/templates/base.html +++ b/bitbake/lib/toaster/toastergui/templates/base.html | |||
@@ -120,11 +120,19 @@ | |||
120 | </li> | 120 | </li> |
121 | </ul> | 121 | </ul> |
122 | <span class="pull-right divider-vertical"></span> | 122 | <span class="pull-right divider-vertical"></span> |
123 | <div class="btn-group pull-right"> | 123 | |
124 | <a class="btn" id="new-project-button" href="{% url 'newproject' %}">New project</a> | 124 | <!-- new project button; only show in build mode --> |
125 | </div> | 125 | {% if BUILD_MODE %} |
126 | <!-- New build popover; only shown if there is at least one user-created project --> | 126 | <div class="btn-group pull-right"> |
127 | {% if non_cli_projects.count > 0 %} | 127 | <a class="btn" id="new-project-button" href="{% url 'newproject' %}">New project</a> |
128 | </div> | ||
129 | {% endif %} | ||
130 | |||
131 | <!-- | ||
132 | New build popover; only shown if there is at least one user-created project | ||
133 | and we're in build mode | ||
134 | --> | ||
135 | {% if BUILD_MODE and non_cli_projects.count > 0 %} | ||
128 | <div class="btn-group pull-right" id="new-build-button" style="display:none"> | 136 | <div class="btn-group pull-right" id="new-build-button" style="display:none"> |
129 | <button class="btn dropdown-toggle" data-toggle="dropdown"> | 137 | <button class="btn dropdown-toggle" data-toggle="dropdown"> |
130 | New build | 138 | New build |