diff options
| author | Michael Wood <michael.g.wood@intel.com> | 2015-07-31 15:09:12 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-01 11:26:12 +0100 |
| commit | 80c1586bbb7f661f37754de5ba637c8d6e2185de (patch) | |
| tree | 56011e83e1f192a68f4e9014ca266dd6cd76c719 /bitbake/lib/toaster/toastergui/views.py | |
| parent | 258c929973e233f212938ea69eec8f83f3285854 (diff) | |
| download | poky-80c1586bbb7f661f37754de5ba637c8d6e2185de.tar.gz | |
bitbake: toastergui: Add new project page and navigation
This brings in the new project page design and improved navigation. As
this also removes the dependency on Angular it also required that the
entry points to the project page such as machine-change notifications
are also updated.
[YOCTO #7329]
(Bitbake rev: 6489e6eb5c3b0d59063b6d60521fc33fe563e707)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/views.py')
| -rwxr-xr-x | bitbake/lib/toaster/toastergui/views.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index 688a4c276f..b43a01e951 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py | |||
| @@ -2132,7 +2132,7 @@ if True: | |||
| 2132 | prj = Project.objects.create_project(name = request.POST['projectname'], release = release) | 2132 | prj = Project.objects.create_project(name = request.POST['projectname'], release = release) |
| 2133 | prj.user_id = request.user.pk | 2133 | prj.user_id = request.user.pk |
| 2134 | prj.save() | 2134 | prj.save() |
| 2135 | return redirect(reverse(project, args=(prj.pk,)) + "#/newproject") | 2135 | return redirect(reverse(project, args=(prj.pk,)) + "?notify=new-project") |
| 2136 | 2136 | ||
| 2137 | except (IntegrityError, BadParameterException) as e: | 2137 | except (IntegrityError, BadParameterException) as e: |
| 2138 | # fill in page with previously submitted values | 2138 | # fill in page with previously submitted values |
| @@ -2238,7 +2238,8 @@ if True: | |||
| 2238 | } | 2238 | } |
| 2239 | 2239 | ||
| 2240 | if prj.release is not None: | 2240 | if prj.release is not None: |
| 2241 | context["prj"]["release"] = { "id": prj.release.pk, "name": prj.release.name, "desc": prj.release.description} | 2241 | context['release'] = { "id": prj.release.pk, "name": prj.release.name, "description": prj.release.description} |
| 2242 | |||
| 2242 | 2243 | ||
| 2243 | try: | 2244 | try: |
| 2244 | context["machine"] = {"name": prj.projectvariable_set.get(name="MACHINE").value} | 2245 | context["machine"] = {"name": prj.projectvariable_set.get(name="MACHINE").value} |
