bitbake: toaster: layerdetails api Fix saving of git revision of a layer

Update, clean up and move the api for updating a layerversion from the
views to api. Also update the layerdetails page to include the
layerversion id in the url getter.

[YOCTO #8952]

(Bitbake rev: 20f4e23bc86290f0a42881a7cac44c41eafa86fc)

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Michael Wood
2016-07-06 18:22:36 +01:00
committed by Richard Purdie
parent 903c3c2ef8
commit 36dec688c7
4 changed files with 103 additions and 46 deletions

View File

@@ -44,7 +44,7 @@
$(document).ready(function(){
var ctx = {
xhrUpdateLayerUrl : "{% url 'xhr_updatelayer' %}",
xhrUpdateLayerUrl : "{% url 'xhr_layer' layerversion.pk %}",
layerVersion : {
name : "{{layerversion.layer.name}}",
id : {{layerversion.id}},