]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: toaster: landing page when no build module
authorDavid Reyna <David.Reyna@windriver.com>
Wed, 18 Feb 2015 05:54:15 +0000 (21:54 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 Feb 2015 12:58:19 +0000 (12:58 +0000)
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 <David.Reyna@windriver.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/toaster/toastergui/templates/landing_not_managed.html [new file with mode: 0644]
bitbake/lib/toaster/toastergui/views.py

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 (file)
index 0000000..fe56655
--- /dev/null
@@ -0,0 +1,32 @@
+{% extends "base.html" %}
+
+{% load static %}
+{% load projecttags %}
+{% load humanize %}
+
+{% block pagecontent %}
+
+  <div class="container-fluid">
+   <div class="row-fluid">
+    <!-- Empty - no build module -->
+    <div class="page-header top-air">
+     <h1>
+       This page only works with the Toaster 'Build' mode
+     </h1>
+    </div>
+    <div class="alert alert-info">
+     <p class="lead">
+     The 'Build' mode allows you to configure and run your Yocto Project builds from Toaster
+     <ul>
+       <li class="lead"><a href="https://wiki.yoctoproject.org/wiki/Toaster#Modes">
+       Read about the 'Build' mode
+       </a></li>
+       <li class="lead"><a href="/">
+       View your builds
+       </a></li>
+     </ul>
+     </p>
+    </div>
+   </div>
+
+{% endblock %}
index a2e92068c5d81e7c09654d98bab1e15575d8b753..70241dc28b502fb0c1779eea293a7078de6f9973 100755 (executable)
@@ -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')