From: Alexandru DAMIAN Date: Tue, 20 Jan 2015 15:57:11 +0000 (+0000) Subject: toastergui: fix all-targets redirect X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f1cccafb4c7aa2c338e29ec5d2ea190dfeceb132;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git toastergui: fix all-targets redirect Fixes the all targets redirect to /api/1.0/targets. [YOCTO #7147] Signed-off-by: Alexandru DAMIAN --- diff --git a/lib/toaster/toastergui/templates/project.html b/lib/toaster/toastergui/templates/project.html index 67b267256b7..815c24c4b50 100644 --- a/lib/toaster/toastergui/templates/project.html +++ b/lib/toaster/toastergui/templates/project.html @@ -98,7 +98,7 @@ vim: expandtab tabstop=2

- + View all targets {% if completedbuilds.count %} diff --git a/lib/toaster/toastergui/urls.py b/lib/toaster/toastergui/urls.py index c74c7a651b8..8c3b5a85fdc 100644 --- a/lib/toaster/toastergui/urls.py +++ b/lib/toaster/toastergui/urls.py @@ -77,7 +77,7 @@ urlpatterns = patterns('toastergui.views', url(r'^layers/$', 'layers', name='layers'), url(r'^layer/(?P\d+)/$', 'layerdetails', name='layerdetails'), url(r'^layer/$', 'layerdetails', name='layerdetails'), - url(r'^targets/$', 'targets', name='targets'), + url(r'^targets/$', 'targets', name='all-targets'), url(r'^machines/$', 'machines', name='machines'), url(r'^projects/$', 'projects', name='all-projects'), diff --git a/lib/toaster/toastergui/views.py b/lib/toaster/toastergui/views.py index 7a11bbd807e..6b4b5d9936d 100755 --- a/lib/toaster/toastergui/views.py +++ b/lib/toaster/toastergui/views.py @@ -2625,7 +2625,7 @@ if toastermain.settings.MANAGED: mandatory_parameters = { 'count': pagesize, 'page' : 1, 'orderby' : orderby } retval = _verify_parameters( request.GET, mandatory_parameters ) if retval: - return _redirect_parameters( 'targets', request.GET, mandatory_parameters) + return _redirect_parameters( 'all-targets', request.GET, mandatory_parameters) (filter_string, search_term, ordering_string) = _search_tuple(request, Recipe) prj = Project.objects.get(pk = request.session['project_id'])