aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/toaster/toastergui/templates/mrb_section.html28
1 files changed, 14 insertions, 14 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/mrb_section.html b/bitbake/lib/toaster/toastergui/templates/mrb_section.html
index 79862bb8005..571c5ff3c7c 100644
--- a/bitbake/lib/toaster/toastergui/templates/mrb_section.html
+++ b/bitbake/lib/toaster/toastergui/templates/mrb_section.html
@@ -123,21 +123,21 @@
<div style="width: {{build.completeper}}%;" class="bar"></div>
</div>
</div>
- <div id="progressMessage" class="lead pull-right">{{build.completeper}}% of tasks complete</div>
- {%if not build.project.name == "Command line builds" %}
- {%if build.get_tasks.0 %}
- <button id="cancel-build-btn" class="btn btn-info"
- onclick='cancelBuild({% url 'projectbuilds' build.project.id as bpi %}{{bpi|json}},
- {{build.project.name|json}},
- {% url 'project' build.project.id as purl %}{{purl|json}},
- {{build.target_set.all|get_tasks|json}}, {{build.id|json}})'>
- Cancel
+ <div id="progressMessage" class="lead pull-right">{{build.completeper}}% of tasks complete
+ {%if build.get_tasks.0 %}
+ {% if build.project.is_default %}
+ <i class="icon-question-sign get-help heading-help pull-right" data-placement="left" title="" data-original-title="Builds in this projects cannot be cancelled from Toaster: they can only be cancelled from the command line"></i>
+ {% else %}
+ <button id="cancel-build-btn" class="btn btn-info pull-right"
+ onclick='cancelBuild({% url 'projectbuilds' build.project.id as bpi %}{{bpi|json}},
+ {{build.project.name|json}},
+ {% url 'project' build.project.id as purl %}{{purl|json}},
+ {{build.target_set.all|get_tasks|json}}, {{build.id|json}})'>
+ Cancel
</button>
- {%endif%}
- </div>
- {%else%}
- <i class="icon-question-sign get-help heading-help pull-right" data-placement="left" title="" data-original-title="Builds in this projects cannot be cancelled from Toaster: they can only be cancelled from the command line"></i>
- {%endif%}
+ {%endif%}
+ {%endif%}
+ </div>
{%endif%}
{% if build.outcome == build.CANCELLED %}
<div class="span6 lead">