diff --git a/bitbake/lib/toaster/toastergui/static/js/projectapp.js b/bitbake/lib/toaster/toastergui/static/js/projectapp.js
index b2e65c5bb5..40e2e1fffa 100644
--- a/bitbake/lib/toaster/toastergui/static/js/projectapp.js
+++ b/bitbake/lib/toaster/toastergui/static/js/projectapp.js
@@ -429,13 +429,17 @@ projectApp.controller('prjCtrl', function($scope, $modal, $http, $interval, $loc
*/
$scope.validateData = function () {
- if ($scope.layers.length === 0) {
+ if ($scope.project.release) {
+ if ($scope.layers.length === 0) {
$scope.layeralert = $scope.displayAlert($scope.zone1alerts, "You need to add some layers to this project. View all layers available in Toaster or import a layer ");
- } else {
- if ($scope.layeralert !== undefined) {
- $scope.layeralert.close();
- $scope.layeralert = undefined;
+ } else {
+ if ($scope.layeralert !== undefined) {
+ $scope.layeralert.close();
+ $scope.layeralert = undefined;
+ }
}
+ } else {
+ $scope.layeralert = $scope.displayAlert($scope.zone1alerts, "This project is not set to run builds.");
}
};
diff --git a/bitbake/lib/toaster/toastergui/templates/build.html b/bitbake/lib/toaster/toastergui/templates/builds.html
similarity index 97%
rename from bitbake/lib/toaster/toastergui/templates/build.html
rename to bitbake/lib/toaster/toastergui/templates/builds.html
index f0b5ea529f..e9211affcd 100644
--- a/bitbake/lib/toaster/toastergui/templates/build.html
+++ b/bitbake/lib/toaster/toastergui/templates/builds.html
@@ -14,13 +14,15 @@
{% block pagecontent %}
+{% if last_date_from and last_date_to %}
+{%endif%} {# last_date_from and last_date_to #}
@@ -87,9 +89,8 @@
{{fstypes|get_dict_value:build.id}}
{% endif %}
- {% if build.project %}
+
{{build.project.name}}
- {% endif %}
diff --git a/bitbake/lib/toaster/toastergui/templates/managed_builds.html b/bitbake/lib/toaster/toastergui/templates/managed_builds.html
deleted file mode 100644
index 63ae5408f5..0000000000
--- a/bitbake/lib/toaster/toastergui/templates/managed_builds.html
+++ /dev/null
@@ -1,167 +0,0 @@
-{% extends "base.html" %}
-
-{% load static %}
-{% load projecttags %}
-{% load humanize %}
-
-{% block extraheadcontent %}
-
-
-
-
-
-{% endblock %}
-
-{% block pagecontent %}
-
-
-
-
-
-{% endblock %}
diff --git a/bitbake/lib/toaster/toastergui/templates/managed_mrb_section.html b/bitbake/lib/toaster/toastergui/templates/managed_mrb_section.html
deleted file mode 100644
index 47e64eaaab..0000000000
--- a/bitbake/lib/toaster/toastergui/templates/managed_mrb_section.html
+++ /dev/null
@@ -1,193 +0,0 @@
-{% load static %}
-{% load projecttags %}
-{% load humanize %}
-
-{%if mru|length > 0%}
-{# Template provides the latest builds section requires mru in the context which can be added from _managed_get_latest_builds #}
-
-
- {% for buildrequest in mru %}{% with build=buildrequest.build %}
-
- {% if build %} {# if we have a build, just display it #}
-
-
- {% if MANAGED and build.project %}
-
- {{build.project.name}}
-
- {% endif %}
-
-
-
- {%if build.outcome == build.SUCCEEDED or build.outcome == build.FAILED %}
-
- {% if build.completed_on|format_build_date %}
- {{ build.completed_on|date:'d/m/y H:i' }}
- {% else %}
- {{ build.completed_on|date:'H:i' }}
- {% endif %}
-
-
-
-
- {%endif%}
- {%if build.outcome == build.IN_PROGRESS %}
-
-
{{build.completeper}}% tasks completed
- {%endif%}
-
-
-
- {% else %} {# we use the project's page recent build design #}
-
-
-
-
-
-
- {{buildrequest.project.name}}
-
-
-
- {% if buildrequest.state == buildrequest.REQ_FAILED %}
-
-
- {% if buildrequest.updated|format_build_date %}
- {{ buildrequest.updated|date:'d/m/y H:i' }}
- {% else %}
- {{ buildrequest.updated|date:'H:i' }}
- {% endif %}
-
-
-
{# there are no warnings for buildrequests #}
-
-
-
- Build time: {{ buildrequest.get_duration|sectohms }}
-
-
-
-
-
-
- {% elif buildrequest.state == buildrequest.REQ_QUEUED %}
-
-
- {% include "brtargets.html" %}
-
-
Build queued
-
-
-
Cancel
-
- {% elif buildrequest.state == buildrequest.REQ_CREATED %}
-
-
- {% include "brtargets.html" %}
-
-
- Creating build
-
-
- {% elif buildrequest.state == buildrequest.REQ_INPROGRESS %}
-
-
- {% include "brtargets.html" %}
-
-
- Checking out layers
-
- {% else %}
-
-
FIXME!
-
- {% endif %}
-
-
-
-
-
-
-
- {% endif %} {# this ends the build request most recent build section #}
-
-{%endwith%}{% endfor %}
-
-
-
-
-{%endif%}
-
diff --git a/bitbake/lib/toaster/toastergui/templates/mrb_section.html b/bitbake/lib/toaster/toastergui/templates/mrb_section.html
index c7bddf0372..7e84e4134d 100644
--- a/bitbake/lib/toaster/toastergui/templates/mrb_section.html
+++ b/bitbake/lib/toaster/toastergui/templates/mrb_section.html
@@ -12,18 +12,24 @@