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 <David.Reyna@windriver.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
David Reyna
2015-02-17 21:54:15 -08:00
committed by Richard Purdie
parent c856a4efc9
commit 64fc177299
2 changed files with 53 additions and 21 deletions

View File

@@ -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 %}

View File

@@ -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')