diff options
| author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2015-05-07 18:09:09 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-05-12 12:14:13 +0100 |
| commit | 94d38a4e403f9e1930312b94694077a5300d625f (patch) | |
| tree | 9ffc996e3bf106a513d78e0026395305f9f83678 /bitbake/lib/toaster/toastergui/templates/project.html | |
| parent | a5193d3c7f1562ea6858c5b992159d79f58f644b (diff) | |
| download | poky-94d38a4e403f9e1930312b94694077a5300d625f.tar.gz | |
bitbake: toasterui: URL refactoring
This is a URL refactoring needed to remove the inadvertent
usage of server-side user session in a REST-style API.
We move the parameters that were stored in the user session
to the URL, making navigation more robust.
This refactoring allows a clean (no 500 HTTP return codes) crawl
of the website following inside links.
(Bitbake rev: cc251da0f211f3ee881ad07478733e2f4c1b7019)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/project.html')
| -rw-r--r-- | bitbake/lib/toaster/toastergui/templates/project.html | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/project.html b/bitbake/lib/toaster/toastergui/templates/project.html index 5f8f4d1bc7..85a1b164dd 100644 --- a/bitbake/lib/toaster/toastergui/templates/project.html +++ b/bitbake/lib/toaster/toastergui/templates/project.html | |||
| @@ -24,7 +24,7 @@ vim: expandtab tabstop=2 | |||
| 24 | <p>Toaster has no layer information. Without layer information, you cannot run builds. To generate layer information you can:</p> | 24 | <p>Toaster has no layer information. Without layer information, you cannot run builds. To generate layer information you can:</p> |
| 25 | <ul> | 25 | <ul> |
| 26 | <li> <a href="http://www.yoctoproject.org/docs/latest/toaster-manual/toaster-manual.html#layer-source">Configure a layer source</a></li> | 26 | <li> <a href="http://www.yoctoproject.org/docs/latest/toaster-manual/toaster-manual.html#layer-source">Configure a layer source</a></li> |
| 27 | <li> <a href="{% url 'importlayer' %}">Import a layer</a></li> | 27 | <li> <a href="{% url 'importlayer' project.id %}">Import a layer</a></li> |
| 28 | </ul> | 28 | </ul> |
| 29 | </div> | 29 | </div> |
| 30 | 30 | ||
| @@ -111,7 +111,7 @@ vim: expandtab tabstop=2 | |||
| 111 | </div> | 111 | </div> |
| 112 | <i class="icon-question-sign get-help get-help-blue" title="Type the name of one or more recipes you want to build, separated by a space. You can also specify a task by appending a semicolon and a task name to a recipe name, like so: <code>core-image-minimal:do_build</code>"></i> | 112 | <i class="icon-question-sign get-help get-help-blue" title="Type the name of one or more recipes you want to build, separated by a space. You can also specify a task by appending a semicolon and a task name to a recipe name, like so: <code>core-image-minimal:do_build</code>"></i> |
| 113 | <p> | 113 | <p> |
| 114 | <a href="{% url 'all-targets' %}">View all compatible recipes</a> | 114 | <a href="{% url 'all-targets' project.id %}">View all compatible recipes</a> |
| 115 | <i class="icon-question-sign get-help get-help-blue heading-help" title="View all the recipes you can build with the release selected for this project, which is {[project.release.desc]}"></i> | 115 | <i class="icon-question-sign get-help get-help-blue heading-help" title="View all the recipes you can build with the release selected for this project, which is {[project.release.desc]}"></i> |
| 116 | {% if completedbuilds.count %} | 116 | {% if completedbuilds.count %} |
| 117 | | <a href="{% url 'projectbuilds' project.id %}">View all project builds ({{completedbuilds.count}})</a> | 117 | | <a href="{% url 'projectbuilds' project.id %}">View all project builds ({{completedbuilds.count}})</a> |
| @@ -278,8 +278,8 @@ vim: expandtab tabstop=2 | |||
| 278 | <p> | 278 | <p> |
| 279 | You can: | 279 | You can: |
| 280 | <ul> | 280 | <ul> |
| 281 | <li> <a href="{% url 'layers'%}">View all compatible layers available in Toaster</a> | 281 | <li> <a href="{% url 'all-layers' project.id %}">View all compatible layers available in Toaster</a> |
| 282 | <li> <a href="{% url 'importlayer' %}">Import a layer</a> | 282 | <li> <a href="{% url 'importlayer' project.id %}">Import a layer</a> |
| 283 | <li> <a href="https://www.yoctoproject.org/docs/1.6.1/dev-manual/dev-manual.html#understanding-and-creating-layers" target="_blank">Read about layers in the manual</a> | 283 | <li> <a href="https://www.yoctoproject.org/docs/1.6.1/dev-manual/dev-manual.html#understanding-and-creating-layers" target="_blank">Read about layers in the manual</a> |
| 284 | </ul> | 284 | </ul> |
| 285 | Or type a layer name below. | 285 | Or type a layer name below. |
| @@ -293,10 +293,10 @@ vim: expandtab tabstop=2 | |||
| 293 | {% csrf_token %} | 293 | {% csrf_token %} |
| 294 | </form> | 294 | </form> |
| 295 | <p> | 295 | <p> |
| 296 | <a href="{% url 'layers' %}">View all compatible layers</a> | 296 | <a href="{% url 'all-layers' project.id %}">View all compatible layers</a> |
| 297 | <i class="icon-question-sign get-help" title="View all the layers you can build with the release selected for this project, which is {[project.release.desc]}"></i> | 297 | <i class="icon-question-sign get-help" title="View all the layers you can build with the release selected for this project, which is {[project.release.desc]}"></i> |
| 298 | | | 298 | | |
| 299 | <a href="{% url 'importlayer' %}">Import layer</a></p> | 299 | <a href="{% url 'importlayer' project.id %}">Import layer</a></p> |
| 300 | <ul class="unstyled configuration-list"> | 300 | <ul class="unstyled configuration-list"> |
| 301 | <li ng-repeat="l in layers track by l.id" class="animate-repeat"> | 301 | <li ng-repeat="l in layers track by l.id" class="animate-repeat"> |
| 302 | <a href="{[l.layerdetailurl]}" class="layer-info" data-toggle="tooltip" tooltip-placement="right" tooltip="{[l.giturl]} | {[l.branch.name]}">{[l.name]}</a> | 302 | <a href="{[l.layerdetailurl]}" class="layer-info" data-toggle="tooltip" tooltip-placement="right" tooltip="{[l.giturl]} | {[l.branch.name]}">{[l.name]}</a> |
| @@ -321,7 +321,7 @@ vim: expandtab tabstop=2 | |||
| 321 | {% csrf_token %} | 321 | {% csrf_token %} |
| 322 | </form> | 322 | </form> |
| 323 | <p> | 323 | <p> |
| 324 | <a href="{% url 'all-targets' %}">View all compatible recipes</a> | 324 | <a href="{% url 'all-targets' project.id %}">View all compatible recipes</a> |
| 325 | <i class="icon-question-sign get-help" title="View all the recipes you can build with the release selected for this project, which is {[project.release.desc]}"></i> | 325 | <i class="icon-question-sign get-help" title="View all the recipes you can build with the release selected for this project, which is {[project.release.desc]}"></i> |
| 326 | </p> | 326 | </p> |
| 327 | <div ng-if="frequenttargets.length"> | 327 | <div ng-if="frequenttargets.length"> |
| @@ -361,7 +361,7 @@ vim: expandtab tabstop=2 | |||
| 361 | {% csrf_token %} | 361 | {% csrf_token %} |
| 362 | </form> | 362 | </form> |
| 363 | <p> | 363 | <p> |
| 364 | <a href="{% url 'machines' %}" class="link">View all compatible machines</a> | 364 | <a href="{% url 'all-machines' project.id %}" class="link">View all compatible machines</a> |
| 365 | <i class="icon-question-sign get-help" title="View all the machines you can set with the release selected for this project, which is {[project.release.desc]}"></i> | 365 | <i class="icon-question-sign get-help" title="View all the machines you can set with the release selected for this project, which is {[project.release.desc]}"></i> |
| 366 | </p> | 366 | </p> |
| 367 | </div> | 367 | </div> |
| @@ -432,10 +432,10 @@ angular.element(document).ready(function() { | |||
| 432 | scope.urls.xhr_build = "{% url 'xhr_projectbuild' project.id %}"; | 432 | scope.urls.xhr_build = "{% url 'xhr_projectbuild' project.id %}"; |
| 433 | scope.urls.xhr_edit = "{% url 'xhr_projectedit' project.id %}"; | 433 | scope.urls.xhr_edit = "{% url 'xhr_projectedit' project.id %}"; |
| 434 | scope.urls.xhr_datatypeahead = "{% url 'xhr_datatypeahead' %}"; | 434 | scope.urls.xhr_datatypeahead = "{% url 'xhr_datatypeahead' %}"; |
| 435 | scope.urls.layers = "{% url 'layers' %}"; | 435 | scope.urls.layers = "{% url 'all-layers' project.id %}"; |
| 436 | scope.urls.targets = "{% url 'all-targets' %}"; | 436 | scope.urls.targets = "{% url 'all-targets' project.id %}"; |
| 437 | scope.urls.importlayer = "{% url 'importlayer'%}"; | 437 | scope.urls.importlayer = "{% url 'importlayer' project.id %}"; |
| 438 | scope.urls.layer = "{% url 'base_layerdetails' %}"; | 438 | scope.urls.layer = "{% url 'base_layerdetails' project.id %}"; |
| 439 | scope.project = {{prj|json}}; | 439 | scope.project = {{prj|json}}; |
| 440 | scope.builds = {{builds|json}}; | 440 | scope.builds = {{builds|json}}; |
| 441 | scope.layers = {{layers|json}}; | 441 | scope.layers = {{layers|json}}; |
