summaryrefslogtreecommitdiffstats
path: root/lib/toaster/toastergui/templates/importlayer.html
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2015-06-24 14:53:21 +0100
committerAlexandru DAMIAN <alexandru.damian@intel.com>2015-06-25 11:10:07 +0100
commit7aecb974d44d9bc711ffba5cc65e770811397fba (patch)
tree3243cd88a2dabbbe64da0e3917203caa49182ea7 /lib/toaster/toastergui/templates/importlayer.html
parente04807cd3135c9de96cc7f79245f329c24618b85 (diff)
downloadbitbake-7aecb974d44d9bc711ffba5cc65e770811397fba.tar.gz
toasterui: fixes after html5 compliance testing
This patch brings fixes for issues highlighted by HTML5 compliance testing. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Diffstat (limited to 'lib/toaster/toastergui/templates/importlayer.html')
-rw-r--r--lib/toaster/toastergui/templates/importlayer.html15
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/toaster/toastergui/templates/importlayer.html b/lib/toaster/toastergui/templates/importlayer.html
index 498a204af..6a5d412d1 100644
--- a/lib/toaster/toastergui/templates/importlayer.html
+++ b/lib/toaster/toastergui/templates/importlayer.html
@@ -9,6 +9,7 @@
{% block projectinfomain %}
+ {% if project and project.release %}
<script src="{% static 'js/layerDepsModal.js' %}"></script>
<script src="{% static 'js/importlayer.js' %}"></script>
<script>
@@ -31,9 +32,7 @@
</div>
<form>
- {% if project %}
<span class="help-block" style="padding-left:19px;">The layer you are importing must be compatible with <strong>{{project.release.description}}</strong>, which is the release you are using in this project.</span>
- {% endif %}
<fieldset class="air">
<legend>Layer repository information</legend>
<div class="alert alert-error" id="import-error" style="display:none">
@@ -131,4 +130,16 @@
</div>
</form>
+ {% else %} {#project and project release#}
+ <div class="page-header">
+ <h1>Import layer</h1>
+ </div>
+ <div class="alert alert-info" id="import-error" >
+ <h3>Unsupported project type</h3>
+ <p>This project does not support importing layers.</p>
+ <ul></ul>
+ </div>
+
+ {% endif %}
+
{% endblock %}