From 64fc177299149376978a9e89eddcf0a9dc846a7e Mon Sep 17 00:00:00 2001 From: David Reyna Date: Tue, 17 Feb 2015 21:54:15 -0800 Subject: bitbake: toaster: landing page when no build module Add landing page for managed build pages when build module not installed. Some wording and whitespace changed. [YOCTO #6483] (Bitbake rev: 6618a0a71cc9ea5426238549094ab9e05ae61649) Signed-off-by: David Reyna Signed-off-by: Alexandru DAMIAN Signed-off-by: Richard Purdie --- .../toastergui/templates/landing_not_managed.html | 32 +++++++++++++++++ bitbake/lib/toaster/toastergui/views.py | 42 +++++++++++----------- 2 files changed, 53 insertions(+), 21 deletions(-) create mode 100644 bitbake/lib/toaster/toastergui/templates/landing_not_managed.html (limited to 'bitbake') 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') -- cgit v1.2.3-54-g00ecf