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 <[email protected]> --- bitbake/lib/toaster/toastergui/templates/base.html | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/templates/base.html b/bitbake/lib/toaster/toastergui/templates/base.html index c1d0693..073c342 100644 --- a/bitbake/lib/toaster/toastergui/templates/base.html +++ b/bitbake/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 -- Elliot Smith Software Engineer Intel OTC --------------------------------------------------------------------- Intel Corporation (UK) Limited Registered No. 1134945 (England) Registered Office: Pipers Way, Swindon SN3 1RJ VAT No: 860 2173 47 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. -- _______________________________________________ toaster mailing list [email protected] https://lists.yoctoproject.org/listinfo/toaster
