diff --git a/bitbake/lib/toaster/toastergui/templates/landing_not_managed.html b/bitbake/lib/toaster/toastergui/templates/landing_not_managed.html new file mode 100644 index 0000000000..fe56655a13 --- /dev/null +++ b/bitbake/lib/toaster/toastergui/templates/landing_not_managed.html @@ -0,0 +1,32 @@ +{% extends "base.html" %} + +{% load static %} +{% load projecttags %} +{% load humanize %} + +{% block pagecontent %} + +
+
+ + +
+

+ The 'Build' mode allows you to configure and run your Yocto Project builds from Toaster +

+

+
+
+ +{% endblock %} diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index a2e92068c5..70241dc28b 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py @@ -3290,64 +3290,64 @@ else: def newproject(request): - raise Exception("page not available in interactive mode") + return render(request, 'landing_not_managed.html') def project(request, pid): - raise Exception("page not available in interactive mode") + return render(request, 'landing_not_managed.html') def xhr_projectbuild(request, pid): - raise Exception("page not available in interactive mode") + return render(request, 'landing_not_managed.html') def xhr_build(request, pid): - raise Exception("page not available in interactive mode") + return render(request, 'landing_not_managed.html') def xhr_projectinfo(request): - raise Exception("page not available in interactive mode") + return render(request, 'landing_not_managed.html') def xhr_projectedit(request, pid): - raise Exception("page not available in interactive mode") + return render(request, 'landing_not_managed.html') def xhr_datatypeahead(request): - raise Exception("page not available in interactive mode") + return render(request, 'landing_not_managed.html') def xhr_configvaredit(request): - raise Exception("page not available in interactive mode") + return render(request, 'landing_not_managed.html') def importlayer(request): - raise Exception("page not available in interactive mode") + return render(request, 'landing_not_managed.html') def layers(request): - raise Exception("page not available in interactive mode") + return render(request, 'landing_not_managed.html') def layerdetails(request): - raise Exception("page not available in interactive mode") + return render(request, 'landing_not_managed.html') def targets(request): - raise Exception("page not available in interactive mode") + return render(request, 'landing_not_managed.html') def targetdetails(request): - raise Exception("page not available in interactive mode") + return render(request, 'landing_not_managed.html') def machines(request): - raise Exception("page not available in interactive mode") + return render(request, 'landing_not_managed.html') def projectconf(request): - raise Exception("page not available in interactive mode") + return render(request, 'landing_not_managed.html') def projectbuilds(request): - raise Exception("page not available in interactive mode") + return render(request, 'landing_not_managed.html') def build_artifact(request, build_id, artifact_type, artifact_id): - raise Exception("page not available in interactive mode") + return render(request, 'landing_not_managed.html') def projects(request): - raise Exception("page not available in interactive mode") + return render(request, 'landing_not_managed.html') def xhr_importlayer(request): - raise Exception("page not available in interactive mode") + return render(request, 'landing_not_managed.html') def xhr_updatelayer(request): - raise Exception("page not available in interactive mode") + return render(request, 'landing_not_managed.html') def buildrequestdetails(request, pid, brid): - raise Exception("page not available in interactive mode") + return render(request, 'landing_not_managed.html')