]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: show incomplete configuration warning
authorBelen Barros Pena <belen.barros.pena@intel.com>
Thu, 3 Sep 2015 14:43:51 +0000 (15:43 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 3 Sep 2015 15:49:11 +0000 (16:49 +0100)
In the new build button form, make sure we show a
warning when you select a project with an incomplete
configuration that cannot be built.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/toaster/toastergui/static/css/default.css
lib/toaster/toastergui/templates/base.html

index e252dc100616d035127b71fe79e2920328414d71..9723db36d079e51ae972644a33a7582fb88aa92b 100644 (file)
@@ -216,6 +216,7 @@ dl textarea { resize: vertical; }
 .tooltip-inner { max-width: 250px; }
 .new-build { padding: 20px; }
 .new-build li { line-height: 30px; }
+.new-build li .alert { line-height: 20px; width: 200px; white-space: normal; }
 .new-build h6 { margin: 10px 0 0 0; color: #5a5a5a; }
 .new-build h3 { margin: 0; color: #5a5a5a; }
 .new-build form { margin: 5px 0 0; }
index 0b93bb3dde8874d9d841feabab910cd53fbd2655..640bc47bcc15e62ee465b591630353948b44961a 100644 (file)
                   <p><a id="view-all-projects" href="{% url 'all-projects' %}">View all projects</a></p>
                 </form>
               </li>
-              <li style="display: none">
-                This project's configuration is incomplete,<br/>so you cannot run builds.<br/>
-                <p><a href="{% if project.id %}{% url 'project' project.id %}{% endif %}">View project configuration</a></p>
+              <li>
+                <div class="alert" style="display:none;">
+                  <p>This project configuration is incomplete, so you cannot run builds.</p>
+                  <p><a href="{% if project.id %}{% url 'project' project.id %}{% endif %}">View project configuration</a></p>
+                </div>
               </li>
               <li id="targets-form">
                 <h6>Recipe(s):</h6>