diff options
author | Belen Barros Pena <belen.barros.pena@linux.intel.com> | 2014-11-18 12:02:22 +0000 |
---|---|---|
committer | Alexandru DAMIAN <alexandru.damian@intel.com> | 2014-11-20 15:43:57 +0000 |
commit | 83af0db872ea28965cd6007ad72ff210f67a4f30 (patch) | |
tree | 7c58d7c2710012c885183c7cb5f13ebee623e7c8 | |
parent | c2021dda953db51f59fb115542ea4a329a854f76 (diff) | |
download | bitbake-83af0db872ea28965cd6007ad72ff210f67a4f30.tar.gz |
toaster: Tiny refinements to the new build button dialog
* Get rid of the display:block attribute for the "View
all projects" link, to stop it from firing when you
click outside (but next to) the link
* Give some margin to the incomplete configuration
alert
Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
-rw-r--r-- | lib/toaster/toastergui/static/css/default.css | 3 | ||||
-rw-r--r-- | lib/toaster/toastergui/templates/base.html | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/toaster/toastergui/static/css/default.css b/lib/toaster/toastergui/static/css/default.css index 6194c97a0..902a2bd03 100644 --- a/lib/toaster/toastergui/static/css/default.css +++ b/lib/toaster/toastergui/static/css/default.css @@ -133,7 +133,8 @@ select { width: auto; } /* styles for the new build button */ .new-build .btn-primary { padding: 4px 30px; } -#view-all-projects { display: block; } +.new-build .alert { margin-top: 10px; } +.new-build .alert p { margin-top: 10px; } /* Configuration styles */ .icon-trash { color: #B94A48; font-size: 16px; padding-left: 2px; } diff --git a/lib/toaster/toastergui/templates/base.html b/lib/toaster/toastergui/templates/base.html index 87746bfc8..734d2ad8a 100644 --- a/lib/toaster/toastergui/templates/base.html +++ b/lib/toaster/toastergui/templates/base.html @@ -81,12 +81,12 @@ <button id="save-project-button" class="btn" type="button">Save</button> <a href="#" id="cancel-change-project" class="btn btn-link">Cancel</a> </div> - <a id="view-all-projects" href="{% url 'all-projects' %}">View all projects</a> + <p><a id="view-all-projects" href="{% url 'all-projects' %}">View all projects</a></p> </form> </li> <div class="alert" style="display:none"> This project's configuration is incomplete,<br/>so you cannot run builds.<br/> - <a href="{% if project.id %}{% url 'project' project.id %}{% endif %}">View project configuration</a> + <p><a href="{% if project.id %}{% url 'project' project.id %}{% endif %}">View project configuration</a></p> </div> <li id="targets-form"> <h6>Target(s):</h6> |