diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/urls.py')
-rw-r--r-- | bitbake/lib/toaster/toastergui/urls.py | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/bitbake/lib/toaster/toastergui/urls.py b/bitbake/lib/toaster/toastergui/urls.py index b84c95f08b..f531eb0137 100644 --- a/bitbake/lib/toaster/toastergui/urls.py +++ b/bitbake/lib/toaster/toastergui/urls.py | |||
@@ -19,14 +19,34 @@ | |||
19 | from django.conf.urls import patterns, include, url | 19 | from django.conf.urls import patterns, include, url |
20 | from django.views.generic import RedirectView | 20 | from django.views.generic import RedirectView |
21 | 21 | ||
22 | urlpatterns = patterns('bldviewer.views', | 22 | urlpatterns = patterns('toastergui.views', |
23 | url(r'^builds/$', 'build', name='all-builds'), | 23 | # landing page |
24 | url(r'^build/(?P<build_id>\d+)/task/$', 'task', name='task'), | 24 | url(r'^builds/$', 'builds', name='all-builds'), |
25 | url(r'^build/(?P<build_id>\d+)/packages/$', 'bpackage', name='bpackage'), | 25 | # build info navigation |
26 | url(r'^build/(?P<build_id>\d+)/package/(?P<package_id>\d+)/files/$', 'bfile', name='bfile'), | 26 | url(r'^build/(?P<build_id>\d+)$', 'builddashboard', name="builddashboard"), |
27 | url(r'^build/(?P<build_id>\d+)/target/(?P<target_id>\d+)/packages/$', 'tpackage', name='tpackage'), | 27 | |
28 | url(r'^build/(?P<build_id>\d+)/configuration/$', 'configuration', name='configuration'), | 28 | url(r'^build/(?P<build_id>\d+)/tasks/$', 'tasks', name='tasks'), |
29 | url(r'^build/(?P<build_id>\d+)/task/(?P<task_id>\d+)$', 'task', name='task'), | ||
30 | |||
31 | url(r'^build/(?P<build_id>\d+)/recipes/$', 'recipes', name='recipes'), | ||
32 | url(r'^build/(?P<build_id>\d+)/recipe/(?P<recipe_id>\d+)$', 'recipe', name='recipe'), | ||
33 | |||
34 | url(r'^build/(?P<build_id>\d+)/packages/$', 'bpackage', name='packages'), | ||
35 | url(r'^build/(?P<build_id>\d+)/package/(?P<package_id>\d+)$', 'bfile', name='package'), | ||
36 | |||
37 | # images are known as targets in the internal model | ||
38 | url(r'^build/(?P<build_id>\d+)/target/(?P<target_id>\d+)$', 'target', name='target'), | ||
39 | url(r'^build/(?P<build_id>\d+)/target/(?P<target_id>\d+)/packages$', 'tpackage', name='targetpackages'), | ||
40 | |||
41 | url(r'^build/(?P<build_id>\d+)/configuration$', 'configuration', name='configuration'), | ||
42 | url(r'^build/(?P<build_id>\d+)/buildtime$', 'buildtime', name='buildtime'), | ||
43 | url(r'^build/(?P<build_id>\d+)/cpuusage$', 'cpuusage', name='cpuusage'), | ||
44 | url(r'^build/(?P<build_id>\d+)/diskio$', 'diskio', name='diskio'), | ||
45 | |||
46 | |||
47 | # urls not linked from the dashboard | ||
29 | url(r'^layers/$', 'layer', name='all-layers'), | 48 | url(r'^layers/$', 'layer', name='all-layers'), |
30 | url(r'^layerversions/(?P<layerversion_id>\d+)/recipes/.*$', 'layer_versions_recipes', name='layer_versions_recipes'), | 49 | url(r'^layerversions/(?P<layerversion_id>\d+)/recipes/.*$', 'layer_versions_recipes', name='layer_versions_recipes'), |
50 | # default redirection | ||
31 | url(r'^$', RedirectView.as_view( url= 'builds/')), | 51 | url(r'^$', RedirectView.as_view( url= 'builds/')), |
32 | ) | 52 | ) |