mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
bitbake: toastergui: fix all-targets redirect
Fixes the all targets redirect to /api/1.0/targets. [YOCTO #7147] (Bitbake rev: f1cccafb4c7aa2c338e29ec5d2ea190dfeceb132) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
8e3be3f268
commit
4571c827a4
@@ -98,7 +98,7 @@ vim: expandtab tabstop=2
|
|||||||
</div>
|
</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>
|
<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>
|
<p>
|
||||||
<a href="{% url 'targets' %}">
|
<a href="{% url 'all-targets' %}">
|
||||||
View all targets
|
View all targets
|
||||||
</a>
|
</a>
|
||||||
{% if completedbuilds.count %}
|
{% if completedbuilds.count %}
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ urlpatterns = patterns('toastergui.views',
|
|||||||
url(r'^layers/$', 'layers', name='layers'),
|
url(r'^layers/$', 'layers', name='layers'),
|
||||||
url(r'^layer/(?P<layerid>\d+)/$', 'layerdetails', name='layerdetails'),
|
url(r'^layer/(?P<layerid>\d+)/$', 'layerdetails', name='layerdetails'),
|
||||||
url(r'^layer/$', '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'^machines/$', 'machines', name='machines'),
|
||||||
|
|
||||||
url(r'^projects/$', 'projects', name='all-projects'),
|
url(r'^projects/$', 'projects', name='all-projects'),
|
||||||
|
|||||||
@@ -2625,7 +2625,7 @@ if toastermain.settings.MANAGED:
|
|||||||
mandatory_parameters = { 'count': pagesize, 'page' : 1, 'orderby' : orderby }
|
mandatory_parameters = { 'count': pagesize, 'page' : 1, 'orderby' : orderby }
|
||||||
retval = _verify_parameters( request.GET, mandatory_parameters )
|
retval = _verify_parameters( request.GET, mandatory_parameters )
|
||||||
if retval:
|
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)
|
(filter_string, search_term, ordering_string) = _search_tuple(request, Recipe)
|
||||||
|
|
||||||
prj = Project.objects.get(pk = request.session['project_id'])
|
prj = Project.objects.get(pk = request.session['project_id'])
|
||||||
|
|||||||
Reference in New Issue
Block a user