diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/importlayer.html')
| -rw-r--r-- | bitbake/lib/toaster/toastergui/templates/importlayer.html | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/importlayer.html b/bitbake/lib/toaster/toastergui/templates/importlayer.html index 498a204aff..6a5d412d13 100644 --- a/bitbake/lib/toaster/toastergui/templates/importlayer.html +++ b/bitbake/lib/toaster/toastergui/templates/importlayer.html | |||
| @@ -9,6 +9,7 @@ | |||
| 9 | 9 | ||
| 10 | {% block projectinfomain %} | 10 | {% block projectinfomain %} |
| 11 | 11 | ||
| 12 | {% if project and project.release %} | ||
| 12 | <script src="{% static 'js/layerDepsModal.js' %}"></script> | 13 | <script src="{% static 'js/layerDepsModal.js' %}"></script> |
| 13 | <script src="{% static 'js/importlayer.js' %}"></script> | 14 | <script src="{% static 'js/importlayer.js' %}"></script> |
| 14 | <script> | 15 | <script> |
| @@ -31,9 +32,7 @@ | |||
| 31 | </div> | 32 | </div> |
| 32 | 33 | ||
| 33 | <form> | 34 | <form> |
| 34 | {% if project %} | ||
| 35 | <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> | 35 | <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> |
| 36 | {% endif %} | ||
| 37 | <fieldset class="air"> | 36 | <fieldset class="air"> |
| 38 | <legend>Layer repository information</legend> | 37 | <legend>Layer repository information</legend> |
| 39 | <div class="alert alert-error" id="import-error" style="display:none"> | 38 | <div class="alert alert-error" id="import-error" style="display:none"> |
| @@ -131,4 +130,16 @@ | |||
| 131 | </div> | 130 | </div> |
| 132 | </form> | 131 | </form> |
| 133 | 132 | ||
| 133 | {% else %} {#project and project release#} | ||
| 134 | <div class="page-header"> | ||
| 135 | <h1>Import layer</h1> | ||
| 136 | </div> | ||
| 137 | <div class="alert alert-info" id="import-error" > | ||
| 138 | <h3>Unsupported project type</h3> | ||
| 139 | <p>This project does not support importing layers.</p> | ||
| 140 | <ul></ul> | ||
| 141 | </div> | ||
| 142 | |||
| 143 | {% endif %} | ||
| 144 | |||
| 134 | {% endblock %} | 145 | {% endblock %} |
