diff options
author | Michael Wood <michael.g.wood@intel.com> | 2015-04-21 11:59:37 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-05-08 17:42:06 +0100 |
commit | bec5d164717c6987f81d47d75942e94538649dad (patch) | |
tree | 189574b0de84b2f7ebc83fd3c0230be35d28f997 /bitbake/lib/toaster/toastergui/templates/layerdetails.html | |
parent | a4cfca604b2c5ab35baf69c2070afa0087842b68 (diff) | |
download | poky-bec5d164717c6987f81d47d75942e94538649dad.tar.gz |
bitbake: toaster: Refactor and expand layer add remove mechanism
We have multiple pages which have buttons to add and remove layers this
patch adds functionality to libtoaster to abstract this and implements
it in the pages affected. We handle loading and showing the dependencies
dialog here too and generating the notification messages.
Also implemented is using the selectmachine api from the projectapp to
avoid having to handle this in each page that allows selecting machines.
A small number of jshint issues, help text and the machine page name
have also been fixed.
(Bitbake rev: ae7a656ba7fc6f4356b57aa309a9b6d035e51d2e)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/layerdetails.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/layerdetails.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/layerdetails.html b/bitbake/lib/toaster/toastergui/templates/layerdetails.html index 435bf04e42..4b27d052d0 100644 --- a/bitbake/lib/toaster/toastergui/templates/layerdetails.html +++ b/bitbake/lib/toaster/toastergui/templates/layerdetails.html | |||
@@ -58,7 +58,6 @@ | |||
58 | </style> | 58 | </style> |
59 | {% endif %} | 59 | {% endif %} |
60 | 60 | ||
61 | {% include "layers_dep_modal.html" %} | ||
62 | <div class="row-fluid span11"> | 61 | <div class="row-fluid span11"> |
63 | <div class="page-header"> | 62 | <div class="page-header"> |
64 | <h1>{{layerversion.layer.name}} <small class="commit" | 63 | <h1>{{layerversion.layer.name}} <small class="commit" |
@@ -404,7 +403,8 @@ | |||
404 | {% endif %} | 403 | {% endif %} |
405 | </td> | 404 | </td> |
406 | <td>{{machine.description}}</td> | 405 | <td>{{machine.description}}</td> |
407 | <td><button class="btn btn-block select-machine-btn" data-machine-name="{{machine.name}}" {% if layer_in_project == 0 %}disabled="disabled"{% endif %}}>Select machine</button></td> | 406 | <td> |
407 | <a href="{% url 'project' project.id %}#/machineselect={{machine.name}}" class="btn btn-block select-machine-btn" {% if layer_in_project == 0 %}disabled="disabled"{% endif %}>Select machine</a> | ||
408 | </tr> | 408 | </tr> |
409 | {% endfor %} | 409 | {% endfor %} |
410 | </tbody> | 410 | </tbody> |