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 --- bitbake/lib/toaster/toastergui/templates/base.html | 8 +- .../toastergui/templates/baseprojectpage.html | 3 +- .../toastergui/templates/builddashboard.html | 2 +- .../toastergui/templates/buildrequestdetails.html | 2 +- .../toaster/toastergui/templates/importlayer.html | 16 +- .../toaster/toastergui/templates/layerdetails.html | 50 +++--- .../lib/toaster/toastergui/templates/layers.html | 2 +- .../lib/toaster/toastergui/templates/machines.html | 2 +- .../toaster/toastergui/templates/newproject.html | 7 +- .../lib/toaster/toastergui/templates/project.html | 184 ++++++++++----------- .../lib/toaster/toastergui/templates/recipe.html | 6 +- .../lib/toaster/toastergui/templates/targets.html | 4 +- bitbake/lib/toaster/toastergui/templates/task.html | 37 +++-- bitbake/lib/toaster/toastergui/urls.py | 12 +- bitbake/lib/toaster/toastergui/views.py | 22 +-- 15 files changed, 175 insertions(+), 182 deletions(-) (limited to 'bitbake/lib/toaster/toastergui') diff --git a/bitbake/lib/toaster/toastergui/templates/base.html b/bitbake/lib/toaster/toastergui/templates/base.html index 47bbbbda14..230dee49d6 100644 --- a/bitbake/lib/toaster/toastergui/templates/base.html +++ b/bitbake/lib/toaster/toastergui/templates/base.html @@ -29,10 +29,10 @@ @@ -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 %} -