]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toastergui: fix all-targets redirect
authorAlexandru DAMIAN <alexandru.damian@intel.com>
Tue, 20 Jan 2015 15:57:11 +0000 (15:57 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 23 Jan 2015 11:33:46 +0000 (11:33 +0000)
Fixes the all targets redirect to /api/1.0/targets.

[YOCTO #7147]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
lib/toaster/toastergui/templates/project.html
lib/toaster/toastergui/urls.py
lib/toaster/toastergui/views.py

index 67b267256b749a166672b0399b87295e7e68c74d..815c24c4b50c5f6a8b0fb1da20180278b42ec775 100644 (file)
@@ -98,7 +98,7 @@ vim: expandtab tabstop=2
       </div>
       <i class="icon-question-sign get-help get-help-blue" title="Type the name of one or more targets you want to build, separated by a space. You can also specify a task by appending a semicolon and a task name to a target name, like so: <code>core-image-minimal:do_build</code>"></i>
       <p>
-        <a href="{% url 'targets' %}">
+        <a href="{% url 'all-targets' %}">
           View all targets
         </a>
         {% if completedbuilds.count %}
index c74c7a651b87ca61b98c12728376fcda30d47544..8c3b5a85fdcca29cf9f8abd6f3c53be7cf4337fe 100644 (file)
@@ -77,7 +77,7 @@ urlpatterns = patterns('toastergui.views',
         url(r'^layers/$', 'layers', name='layers'),
         url(r'^layer/(?P<layerid>\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'),
index 7a11bbd807e8db826e71a352d1c023c750524620..6b4b5d9936d8db13d232c7b836b7b22c677821c3 100755 (executable)
@@ -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'])