diff options
author | David Reyna <David.Reyna@windriver.com> | 2015-02-17 21:54:15 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-20 12:58:19 +0000 |
commit | 64fc177299149376978a9e89eddcf0a9dc846a7e (patch) | |
tree | aa5b2a639e19718d9cd416b9a8accb5f1b2b9c71 /bitbake/lib/toaster | |
parent | c856a4efc95ab3031d9f3ee197ed54515df0fee6 (diff) | |
download | poky-64fc177299149376978a9e89eddcf0a9dc846a7e.tar.gz |
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>
Diffstat (limited to 'bitbake/lib/toaster')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/landing_not_managed.html | 32 | ||||
-rwxr-xr-x | bitbake/lib/toaster/toastergui/views.py | 42 |
2 files changed, 53 insertions, 21 deletions
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 @@ | |||
1 | {% extends "base.html" %} | ||
2 | |||
3 | {% load static %} | ||
4 | {% load projecttags %} | ||
5 | {% load humanize %} | ||
6 | |||
7 | {% block pagecontent %} | ||
8 | |||
9 | <div class="container-fluid"> | ||
10 | <div class="row-fluid"> | ||
11 | <!-- Empty - no build module --> | ||
12 | <div class="page-header top-air"> | ||
13 | <h1> | ||
14 | This page only works with the Toaster 'Build' mode | ||
15 | </h1> | ||
16 | </div> | ||
17 | <div class="alert alert-info"> | ||
18 | <p class="lead"> | ||
19 | The 'Build' mode allows you to configure and run your Yocto Project builds from Toaster | ||
20 | <ul> | ||
21 | <li class="lead"><a href="https://wiki.yoctoproject.org/wiki/Toaster#Modes"> | ||
22 | Read about the 'Build' mode | ||
23 | </a></li> | ||
24 | <li class="lead"><a href="/"> | ||
25 | View your builds | ||
26 | </a></li> | ||
27 | </ul> | ||
28 | </p> | ||
29 | </div> | ||
30 | </div> | ||
31 | |||
32 | {% 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: | |||
3290 | 3290 | ||
3291 | 3291 | ||
3292 | def newproject(request): | 3292 | def newproject(request): |
3293 | raise Exception("page not available in interactive mode") | 3293 | return render(request, 'landing_not_managed.html') |
3294 | 3294 | ||
3295 | def project(request, pid): | 3295 | def project(request, pid): |
3296 | raise Exception("page not available in interactive mode") | 3296 | return render(request, 'landing_not_managed.html') |
3297 | 3297 | ||
3298 | def xhr_projectbuild(request, pid): | 3298 | def xhr_projectbuild(request, pid): |
3299 | raise Exception("page not available in interactive mode") | 3299 | return render(request, 'landing_not_managed.html') |
3300 | 3300 | ||
3301 | def xhr_build(request, pid): | 3301 | def xhr_build(request, pid): |
3302 | raise Exception("page not available in interactive mode") | 3302 | return render(request, 'landing_not_managed.html') |
3303 | 3303 | ||
3304 | def xhr_projectinfo(request): | 3304 | def xhr_projectinfo(request): |
3305 | raise Exception("page not available in interactive mode") | 3305 | return render(request, 'landing_not_managed.html') |
3306 | 3306 | ||
3307 | def xhr_projectedit(request, pid): | 3307 | def xhr_projectedit(request, pid): |
3308 | raise Exception("page not available in interactive mode") | 3308 | return render(request, 'landing_not_managed.html') |
3309 | 3309 | ||
3310 | def xhr_datatypeahead(request): | 3310 | def xhr_datatypeahead(request): |
3311 | raise Exception("page not available in interactive mode") | 3311 | return render(request, 'landing_not_managed.html') |
3312 | 3312 | ||
3313 | def xhr_configvaredit(request): | 3313 | def xhr_configvaredit(request): |
3314 | raise Exception("page not available in interactive mode") | 3314 | return render(request, 'landing_not_managed.html') |
3315 | 3315 | ||
3316 | def importlayer(request): | 3316 | def importlayer(request): |
3317 | raise Exception("page not available in interactive mode") | 3317 | return render(request, 'landing_not_managed.html') |
3318 | 3318 | ||
3319 | def layers(request): | 3319 | def layers(request): |
3320 | raise Exception("page not available in interactive mode") | 3320 | return render(request, 'landing_not_managed.html') |
3321 | 3321 | ||
3322 | def layerdetails(request): | 3322 | def layerdetails(request): |
3323 | raise Exception("page not available in interactive mode") | 3323 | return render(request, 'landing_not_managed.html') |
3324 | 3324 | ||
3325 | def targets(request): | 3325 | def targets(request): |
3326 | raise Exception("page not available in interactive mode") | 3326 | return render(request, 'landing_not_managed.html') |
3327 | 3327 | ||
3328 | def targetdetails(request): | 3328 | def targetdetails(request): |
3329 | raise Exception("page not available in interactive mode") | 3329 | return render(request, 'landing_not_managed.html') |
3330 | 3330 | ||
3331 | def machines(request): | 3331 | def machines(request): |
3332 | raise Exception("page not available in interactive mode") | 3332 | return render(request, 'landing_not_managed.html') |
3333 | 3333 | ||
3334 | def projectconf(request): | 3334 | def projectconf(request): |
3335 | raise Exception("page not available in interactive mode") | 3335 | return render(request, 'landing_not_managed.html') |
3336 | 3336 | ||
3337 | def projectbuilds(request): | 3337 | def projectbuilds(request): |
3338 | raise Exception("page not available in interactive mode") | 3338 | return render(request, 'landing_not_managed.html') |
3339 | 3339 | ||
3340 | def build_artifact(request, build_id, artifact_type, artifact_id): | 3340 | def build_artifact(request, build_id, artifact_type, artifact_id): |
3341 | raise Exception("page not available in interactive mode") | 3341 | return render(request, 'landing_not_managed.html') |
3342 | 3342 | ||
3343 | def projects(request): | 3343 | def projects(request): |
3344 | raise Exception("page not available in interactive mode") | 3344 | return render(request, 'landing_not_managed.html') |
3345 | 3345 | ||
3346 | def xhr_importlayer(request): | 3346 | def xhr_importlayer(request): |
3347 | raise Exception("page not available in interactive mode") | 3347 | return render(request, 'landing_not_managed.html') |
3348 | 3348 | ||
3349 | def xhr_updatelayer(request): | 3349 | def xhr_updatelayer(request): |
3350 | raise Exception("page not available in interactive mode") | 3350 | return render(request, 'landing_not_managed.html') |
3351 | 3351 | ||
3352 | def buildrequestdetails(request, pid, brid): | 3352 | def buildrequestdetails(request, pid, brid): |
3353 | raise Exception("page not available in interactive mode") | 3353 | return render(request, 'landing_not_managed.html') |