[bitbake-devel] [PATCH 06/10] toaster: landing page when no build module
Alex DAMIAN
alexandru.damian at intel.com
Wed Feb 18 19:11:00 UTC 2015
From: David Reyna <David.Reyna at windriver.com>
Add landing page for managed build pages when build module not installed.
Some wording and whitespace changed.
[YOCTO #6483]
Signed-off-by: David Reyna <David.Reyna at windriver.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian at intel.com>
---
.../toastergui/templates/landing_not_managed.html | 32 +++++++++++++++++
lib/toaster/toastergui/views.py | 42 +++++++++++-----------
2 files changed, 53 insertions(+), 21 deletions(-)
create mode 100644 lib/toaster/toastergui/templates/landing_not_managed.html
diff --git a/lib/toaster/toastergui/templates/landing_not_managed.html b/lib/toaster/toastergui/templates/landing_not_managed.html
new file mode 100644
index 0000000..fe56655
--- /dev/null
+++ b/lib/toaster/toastergui/templates/landing_not_managed.html
@@ -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 %}
diff --git a/lib/toaster/toastergui/views.py b/lib/toaster/toastergui/views.py
index a2e9206..70241dc 100755
--- a/lib/toaster/toastergui/views.py
+++ b/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')
--
1.9.1
More information about the bitbake-devel
mailing list