From 80c1586bbb7f661f37754de5ba637c8d6e2185de Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Fri, 31 Jul 2015 15:09:12 +0300 Subject: 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 Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/toaster/toastergui/views.py') 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: prj = Project.objects.create_project(name = request.POST['projectname'], release = release) prj.user_id = request.user.pk prj.save() - return redirect(reverse(project, args=(prj.pk,)) + "#/newproject") + return redirect(reverse(project, args=(prj.pk,)) + "?notify=new-project") except (IntegrityError, BadParameterException) as e: # fill in page with previously submitted values @@ -2238,7 +2238,8 @@ if True: } if prj.release is not None: - context["prj"]["release"] = { "id": prj.release.pk, "name": prj.release.name, "desc": prj.release.description} + context['release'] = { "id": prj.release.pk, "name": prj.release.name, "description": prj.release.description} + try: context["machine"] = {"name": prj.projectvariable_set.get(name="MACHINE").value} -- cgit v1.2.3-54-g00ecf