summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2016-07-21 14:43:27 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-26 08:10:36 +0100
commitef627d0ab8f5cf2fc72005393e76047cb623ff3d (patch)
treeae0067545010621d688baea77197ec50c7db7acc /bitbake/lib/toaster/toastergui/templates
parentffc78d329d6fed9ae9a0db470d30033069b42f8f (diff)
downloadpoky-ef627d0ab8f5cf2fc72005393e76047cb623ff3d.tar.gz
bitbake: toaster: Replace references to LayerSource models
Replace references to the now deprecated layersource models across Toaster with the new enums for layer source types. (Bitbake rev: 48c09c62eb979d840132e58144f0d81ffee675b1) 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>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/layerdetails.html16
1 files changed, 8 insertions, 8 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/layerdetails.html b/bitbake/lib/toaster/toastergui/templates/layerdetails.html
index 4b51d1a39c..029c93b978 100644
--- a/bitbake/lib/toaster/toastergui/templates/layerdetails.html
+++ b/bitbake/lib/toaster/toastergui/templates/layerdetails.html
@@ -36,7 +36,7 @@
36 </ul> 36 </ul>
37 37
38 {# If this is not an imported layer then hide the edit ui #} 38 {# If this is not an imported layer then hide the edit ui #}
39 {% if not layerversion.layer_source_id or layerversion.layer_source.sourcetype != layerversion.layer_source.TYPE_IMPORTED %} 39 {% if layerversion.layer_source != layer_source.TYPE_IMPORTED %}
40 <style scoped> 40 <style scoped>
41 .glyphicon-edit { 41 .glyphicon-edit {
42 display:none; 42 display:none;
@@ -69,8 +69,9 @@
69 inCurrentPrj : false, 69 inCurrentPrj : false,
70 {% endif %} 70 {% endif %}
71 layerdetailurl : "{% url 'layerdetails' project.id layerversion.id %}", 71 layerdetailurl : "{% url 'layerdetails' project.id layerversion.id %}",
72 sourceId: {{layerversion.layer_source_id|json}}, 72 layer_source: {{layerversion.layer_source|json}},
73 } 73 },
74 layerSourceTypes: {{layer_source|json}},
74 }; 75 };
75 76
76 try { 77 try {
@@ -89,7 +90,6 @@
89 {% endif %}>({{layerversion.get_vcs_reference|truncatechars:13}})</small> 90 {% endif %}>({{layerversion.get_vcs_reference|truncatechars:13}})</small>
90 </h1> 91 </h1>
91 </div> 92 </div>
92
93 <div class="row"> 93 <div class="row">
94 <!-- container for tabs --> 94 <!-- container for tabs -->
95 <div class="col-md-8 tabbable"> 95 <div class="col-md-8 tabbable">
@@ -277,15 +277,15 @@
277 <span class="glyphicon glyphicon-edit"></span> 277 <span class="glyphicon glyphicon-edit"></span>
278 <span class="glyphicon glyphicon-trash delete-current-value" data-toggle="tooltip" title="Delete"></span> 278 <span class="glyphicon glyphicon-trash delete-current-value" data-toggle="tooltip" title="Delete"></span>
279 </dd> 279 </dd>
280 {% if layerversion.layer.up_id %} 280 {% if layerversion.layer_source == layer_source.TYPE_LAYERINDEX %}
281 <dt>Layer index</dt> 281 <dt>Layer index</dt>
282 <dd> 282 <dd>
283 <a href="http://layers.openembedded.org/layerindex/branch/{{layerversion.up_branch.name}}/layer/{{layerversion.layer.name}}">layer index link</a> 283 <a href="http://layers.openembedded.org/layerindex/branch/{{layerversion.release.name}}/layer/{{layerversion.layer.name}}">Layer index {{layerversion.layer.name}}</a>
284
285 </dd> 284 </dd>
286 {% endif %} 285 {% endif %}
287 </dl> 286 </dl>
288 {% if layerversion.layer_source_id and layerversion.layer_source.sourcetype == layerversion.layer_source.TYPE_IMPORTED %} 287 {# Only show delete link for imported layers #}
288 {% if layerversion.layer_source == layer_source.TYPE_IMPORTED %}
289 <i class="icon-trash text-danger"></i> 289 <i class="icon-trash text-danger"></i>
290 <a href="#delete-layer-modal" role="button" class="text-danger" data-toggle="modal" data-target="#delete-layer-modal">Delete {{layerversion.layer.name}}</a> 290 <a href="#delete-layer-modal" role="button" class="text-danger" data-toggle="modal" data-target="#delete-layer-modal">Delete {{layerversion.layer.name}}</a>
291 {% endif %} 291 {% endif %}