From c5a16235b8b56102703bc264768ba386ebe90611 Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Mon, 11 May 2015 18:58:25 +0100 Subject: bitbake: toaster: fix html5 compliance This patch brings needed changes in all views so that each view passes the HTML5 compliance test by the W3C Markup Service. (Bitbake rev: 6e60ed8ab71e4300ab571f42b7af5011086df697) Signed-off-by: Alexandru DAMIAN Signed-off-by: Richard Purdie --- .../toaster/toastergui/templates/layerdetails.html | 50 ++++++++++------------ 1 file changed, 23 insertions(+), 27 deletions(-) (limited to 'bitbake/lib/toaster/toastergui/templates/layerdetails.html') diff --git a/bitbake/lib/toaster/toastergui/templates/layerdetails.html b/bitbake/lib/toaster/toastergui/templates/layerdetails.html index 4d892d56f9..7b62b64893 100644 --- a/bitbake/lib/toaster/toastergui/templates/layerdetails.html +++ b/bitbake/lib/toaster/toastergui/templates/layerdetails.html @@ -9,6 +9,23 @@ {% endblock %} {% block projectinfomain %} +{# If this is not an imported layer then hide the edit ui #} +{% if not layerversion.layer_source_id or layerversion.layer_source.sourcetype != layerversion.layer_source.TYPE_IMPORTED %} + +{% endif %} @@ -27,7 +44,7 @@ commit: "{{layerversion.get_vcs_reference}}", inCurrentPrj : {{layer_in_project}}, url : "{% url 'layerdetails' project.id layerversion.id %}", - sourceId: {{layerversion.layer_source_id}}, + sourceId: {{layerversion.layer_source_id|json}}, } }; @@ -40,24 +57,6 @@ }); -{# If this is not an imported layer then hide the edit ui #} -{% if layerversion.layer_source_id != 3 %} - -{% endif %} -