Skip to content

Commit

Permalink
toaster: Hide top bar buttons in analysis mode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
townxelliot authored and rpurdie committed Oct 27, 2015
1 parent 86b4a10 commit b185865
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions lib/toaster/toastergui/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b185865

Please sign in to comment.