Migrate configuration functionality to Boostrap 3
cover Migrate configuration functionality to Boostrap 3
This series makes the required changes to move the Toaster configuration functionality to Boostrap 3.
It is for review purposes only. Patches will be squashed as required after review in preparation for merging.
The series keeps old css files that might still be useful for the remaining work. Clean up of the static/css/ directory will happen in the next series.
Belen (3):
toaster: Top bar layout fixes
toaster: Fix layout of 'All builds' page
toaster: Fix layout of 'All projects' page
Belen Barros Pena (89):
toaster: Layout fixes for project configuration
toaster: Fix toaster table footer controls
toaster: Fix layout of 'project builds' page
toaster: small changes to 'import layer' page
toaster: Remove hovering from disabled buttons
toaster: Fix layout in "new custom image" page
toaster: Fix breadcrumbs
toaster: Fix "custom image details" layout
toaster: remove row from base template
toaster: Fix image recipe details layout
toaster: Fix layer details layout
toaster: Set correct margins for table search
toaster: Correctly align bottom table controls
toaster: Fix breadcrumb in build data pages
toaster: indentation fixes
toaster: Fix layout in build dashboard page
toaster: Fix breadcrumb in Chrome
toaster: Adjust width of non-toastertables search
toaster: Alignment of table controls
toaster: Fix pagination in non-toastertables
toaster: Fix layout of packages installed page
toaster: Fix layout of configuration page
toaster: Fix layout of variable history page
toaster: Fix layout in package details pages
toaster: Fix layout in recipe details page
toaster: Fix layout in task details page
toaster: Remove the pagination-centered class
toaster: Style typeaheads
toaster: Fix filters
toaster: Fix no results pages
toaster: Edit inaccurate comment
toaster: fix buttons in tables
toaster: Fix popover content
toaster: Tweaking modal dialogs
toaster: Fix buttons in custom image details page
toaster: More width to the "Edit columns" menu
toaster: Adjust labels in modal dialogs
toaster: Fix 'New project' page
toaster: Fix the project created notification
toaster: Fix errors and warnings info
toaster: Fix landing page
toaster: Fix reverse dependencies modal dialogs
toaster: Table cell notifications style
toaster: Update OE json file
toaster: Fix the custom image modal dialogs
toaster: Comment out unnecessary css
toaster: Create new custom css file
toaster: Base template to Bootstrap 3
toaster: body styles for Bootstrap 3
toaster: Move latest builds to Bootstrap 3
toaster: Fix the recipe file download
toaster: Table controls to Bootstrap 3
toaster: Fix the toastertable table headings
toaster: Remove spurious div
toaster: Fix 'all builds' table content
toaster: Fix bottom table controls
toaster: Fix 'all projects' table content
toaster: Configuration page to Bootstrap 3
toaster: 'Project builds' page to Bootstrap 3
toaster: Project builds empty state
toaster: Style typeaheads
toaster: Fix display of failed tasks
toaster: Fix the import layer form
toaster: Fix the toaster tables no results
toaster: Show heading in no results page
toaster: Fix new custom image page
toaster: toaster tables Enable complex empty states
toaster: Custom images to Bootstrap 3
toaster: project builds Improve empty state
toaster: recipes tables Tweaks for Bootstrap 3
toaster: machines table Changes for Bootstrap 3
toaster: layers table Changes for Bootstrap 3
toaster: breadcrumbs Fix for Bootstrap 3
toaster: layerdetails Fix the layer details page
toaster: custom recipe Fix the custom recipe details page
toaster: recipe details Fix the image recipe details page
toaster: bb variables BitBake variables page to Bootstrap 3
toaster: recent builds Consistent rebuild links
toaster: filters Filter modals to Bootstrap 3
toaster: latest builds Style cancel option
toaster: custom image modals Move to Bootstrap 3
toaster: modals Package dependencies modals to Bootstrap 3
toaster: modals Layer dependencies to Bootstrap 3
toaster: notifications Move to Boostrap 3
toaster: new project Move to Boostrap 3
toaster: notifications Add dismissible class
toaster: landing Move to Bootstrap 3
toaster: Add new image type to Bootstrap 3
toaster: Unique project names to Boostrap 3
Elliot Smith (1):
toaster: work-around our lack of a synchronous fetch for typeaheads
Michael Wood (13):
toaster: Auto convert bootstrap 2 to bootstrap 3
toaster: Add new boostrap3 files
toaster: templates Base add bootstrap-toaster-theme overlay
toaster: templates Add additional divs for modals in bootstrap3
toaster: templates Use old style input appends instead of input-group
toaster: bootstrap3-transition Remove top margin on New project button
toaster: default.css Remove 80% width for search as this is no longer
needed
toaster: migrate typeahead library
toaster: table.js Fix the edit columns drop down
toaster: templates Use old style icon classes
toaster: revert auto change to icon class for spinner
toaster: importlayer Make sure we eat the default event on submit
toaster: Remove old bootstrap files left behind
bitbake/LICENSE | 5 +- .../toastergui/static/css/bootstrap-theme.css | 587 ++ .../toastergui/static/css/bootstrap-theme.css.map | 1 + .../toastergui/static/css/bootstrap-theme.min.css | 6 + .../static/css/bootstrap-theme.min.css.map | 1 + .../static/css/bootstrap-toaster-theme.css | 2968 +++++++++ .../static/css/bootstrap-toaster-theme.css.map | 1 + .../static/css/bootstrap-toaster-theme.min.css | 2 + .../static/css/bootstrap-toaster-theme.min.css.map | 1 + .../toaster/toastergui/static/css/bootstrap.css | 6760 ++++++++++++++++++++ .../toastergui/static/css/bootstrap.css.map | 1 + .../toastergui/static/css/bootstrap.min.css | 13 +- .../toastergui/static/css/bootstrap.min.css.map | 1 + .../static/css/bootstrap3-transition.css | 238 + .../lib/toaster/toastergui/static/css/default.css | 573 +- .../static/fonts/glyphicons-halflings-regular.eot | Bin 20290 -> 20127 bytes .../static/fonts/glyphicons-halflings-regular.svg | 487 +- .../static/fonts/glyphicons-halflings-regular.ttf | Bin 41236 -> 45404 bytes .../static/fonts/glyphicons-halflings-regular.woff | Bin 23292 -> 23424 bytes .../fonts/glyphicons-halflings-regular.woff2 | Bin 0 -> 18028 bytes .../toastergui/static/html/layer_deps_modal.html | 38 +- .../static/img/glyphicons-halflings-white.png | Bin 8777 -> 0 bytes .../toastergui/static/img/glyphicons-halflings.png | Bin 12799 -> 0 bytes .../lib/toaster/toastergui/static/js/bootstrap.js | 2363 +++++++ .../toaster/toastergui/static/js/bootstrap.min.js | 11 +- .../toaster/toastergui/static/js/customrecipe.js | 4 +- .../toaster/toastergui/static/js/importlayer.js | 11 +- .../toaster/toastergui/static/js/layerDepsModal.js | 4 +- .../toaster/toastergui/static/js/layerdetails.js | 67 +- .../lib/toaster/toastergui/static/js/libtoaster.js | 142 +- .../toastergui/static/js/newcustomimage_modal.js | 46 +- .../toaster/toastergui/static/js/projectpage.js | 8 +- bitbake/lib/toaster/toastergui/static/js/table.js | 71 +- .../toastergui/static/js/typeahead.jquery.js | 1551 +++++ bitbake/lib/toaster/toastergui/tables.py | 171 +- bitbake/lib/toaster/toastergui/templates/base.html | 88 +- .../toastergui/templates/basebuilddetailpage.html | 45 +- .../toastergui/templates/basebuildpage.html | 7 +- .../toastergui/templates/baseprojectpage.html | 38 +- .../toastergui/templates/basetable_bottom.html | 12 +- .../toastergui/templates/basetable_top.html | 8 +- .../lib/toaster/toastergui/templates/bpackage.html | 18 +- .../toastergui/templates/builddashboard.html | 85 +- .../toastergui/templates/buildrequestdetails.html | 8 +- .../toastergui/templates/builds-toastertable.html | 8 +- .../toastergui/templates/configuration.html | 47 +- .../toaster/toastergui/templates/configvars.html | 123 +- .../toastergui/templates/customise_btn.html | 6 +- .../toaster/toastergui/templates/customrecipe.html | 269 +- .../templates/detail_pagination_bottom.html | 6 +- .../toastergui/templates/detail_search_header.html | 8 +- .../toastergui/templates/detail_sorted_header.html | 2 +- .../lib/toaster/toastergui/templates/dirinfo.html | 6 +- .../templates/editcustomimage_modal.html | 71 +- .../toastergui/templates/filtersnippet.html | 113 +- .../templates/generic-toastertable-page.html | 2 +- .../toaster/toastergui/templates/importlayer.html | 142 +- .../lib/toaster/toastergui/templates/landing.html | 23 +- .../toastergui/templates/landing_not_managed.html | 4 +- .../toaster/toastergui/templates/layer_btn.html | 12 +- .../toaster/toastergui/templates/layerdetails.html | 248 +- .../toaster/toastergui/templates/machine_btn.html | 10 +- .../toaster/toastergui/templates/mrb_section.html | 121 +- .../toastergui/templates/newcustomimage.html | 15 +- .../toastergui/templates/newcustomimage_modal.html | 55 +- .../toaster/toastergui/templates/newproject.html | 50 +- .../templates/package_built_dependencies.html | 4 +- .../toastergui/templates/package_detail_base.html | 20 +- .../templates/package_included_dependencies.html | 4 +- .../toastergui/templates/pkg_add_rm_btn.html | 12 +- .../lib/toaster/toastergui/templates/project.html | 102 +- .../templates/projectbuilds-toastertable.html | 24 +- .../toastergui/templates/projectbuilds.html | 4 +- .../toaster/toastergui/templates/projectconf.html | 413 +- .../templates/projects-toastertable.html | 58 +- .../toastergui/templates/projecttopbar.html | 86 +- .../lib/toaster/toastergui/templates/recipe.html | 13 +- .../toaster/toastergui/templates/recipe_btn.html | 13 +- .../toastergui/templates/recipe_packages.html | 15 +- .../toastergui/templates/recipedetails.html | 154 +- .../lib/toaster/toastergui/templates/recipes.html | 24 +- .../snippets/pkg_dependencies_popover.html | 4 +- .../snippets/pkg_revdependencies_popover.html | 4 +- .../lib/toaster/toastergui/templates/target.html | 17 +- bitbake/lib/toaster/toastergui/templates/task.html | 14 +- .../lib/toaster/toastergui/templates/tasks.html | 16 +- .../toastergui/templates/toastertable-filter.html | 32 +- .../toastergui/templates/toastertable-simple.html | 110 +- .../toaster/toastergui/templates/toastertable.html | 122 +- .../toastergui/templates/unavailable_artifact.html | 4 +- bitbake/lib/toaster/toastergui/widgets.py | 3 +- meta/conf/toasterconf.json | 23 +- 92 files changed, 16876 insertions(+), 2201 deletions(-) create mode 100644 bitbake/lib/toaster/toastergui/static/css/bootstrap-theme.css create mode 100644 bitbake/lib/toaster/toastergui/static/css/bootstrap-theme.css.map create mode 100644 bitbake/lib/toaster/toastergui/static/css/bootstrap-theme.min.css create mode 100644 bitbake/lib/toaster/toastergui/static/css/bootstrap-theme.min.css.map create mode 100644 bitbake/lib/toaster/toastergui/static/css/bootstrap-toaster-theme.css create mode 100644 bitbake/lib/toaster/toastergui/static/css/bootstrap-toaster-theme.css.map create mode 100644 bitbake/lib/toaster/toastergui/static/css/bootstrap-toaster-theme.min.css create mode 100644 bitbake/lib/toaster/toastergui/static/css/bootstrap-toaster-theme.min.css.map create mode 100644 bitbake/lib/toaster/toastergui/static/css/bootstrap.css create mode 100644 bitbake/lib/toaster/toastergui/static/css/bootstrap.css.map create mode 100644 bitbake/lib/toaster/toastergui/static/css/bootstrap.min.css.map create mode 100644 bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css create mode 100644 bitbake/lib/toaster/toastergui/static/fonts/glyphicons-halflings-regular.woff2 delete mode 100644 bitbake/lib/toaster/toastergui/static/img/glyphicons-halflings-white.png delete mode 100644 bitbake/lib/toaster/toastergui/static/img/glyphicons-halflings.png create mode 100644 bitbake/lib/toaster/toastergui/static/js/bootstrap.js create mode 100644 bitbake/lib/toaster/toastergui/static/js/typeahead.jquery.js
Signature · 1 line
1.9.1
PATCH 1/106 toaster: Auto convert bootstrap 2 to bootstrap 3
From: Michael Wood <[email protected]>
Convert existing templates and js to use bootstrap 3 classes
--- .../toastergui/static/html/layer_deps_modal.html | 2 +- .../toaster/toastergui/static/js/bootstrap.min.js | 11 +++-- .../toaster/toastergui/static/js/customrecipe.js | 4 +- .../toaster/toastergui/static/js/layerdetails.js | 8 ++-- .../lib/toaster/toastergui/static/js/libtoaster.js | 4 +- bitbake/lib/toaster/toastergui/static/js/table.js | 8 ++-- bitbake/lib/toaster/toastergui/templates/base.html | 12 ++--- .../toastergui/templates/basebuilddetailpage.html | 2 +- .../toastergui/templates/basebuildpage.html | 7 ++- .../toastergui/templates/baseprojectpage.html | 6 +-- .../toastergui/templates/basetable_top.html | 6 +-- .../lib/toaster/toastergui/templates/bpackage.html | 10 ++-- .../toastergui/templates/builddashboard.html | 30 ++++++------ .../toastergui/templates/buildrequestdetails.html | 8 ++-- .../toastergui/templates/builds-toastertable.html | 2 +- .../toastergui/templates/configuration.html | 8 ++-- .../toaster/toastergui/templates/configvars.html | 16 +++---- .../toastergui/templates/customise_btn.html | 2 +- .../toaster/toastergui/templates/customrecipe.html | 20 ++++---- .../toastergui/templates/detail_search_header.html | 12 ++--- .../toastergui/templates/detail_sorted_header.html | 2 +- .../lib/toaster/toastergui/templates/dirinfo.html | 6 +-- .../toastergui/templates/filtersnippet.html | 4 +- .../toaster/toastergui/templates/importlayer.html | 10 ++-- .../lib/toaster/toastergui/templates/landing.html | 18 ++++---- .../toastergui/templates/landing_not_managed.html | 4 +- .../toaster/toastergui/templates/layer_btn.html | 4 +- .../toaster/toastergui/templates/layerdetails.html | 54 +++++++++++----------- .../toaster/toastergui/templates/machine_btn.html | 2 +- .../toaster/toastergui/templates/mrb_section.html | 26 ++++++----- .../toastergui/templates/newcustomimage_modal.html | 6 +-- .../toaster/toastergui/templates/newproject.html | 18 ++++---- .../templates/package_built_dependencies.html | 4 +- .../toastergui/templates/package_detail_base.html | 12 ++--- .../templates/package_included_dependencies.html | 4 +- .../toastergui/templates/pkg_add_rm_btn.html | 4 +- .../lib/toaster/toastergui/templates/project.html | 18 ++++---- .../templates/projectbuilds-toastertable.html | 2 +- .../toastergui/templates/projectbuilds.html | 6 +-- .../toaster/toastergui/templates/projectconf.html | 48 +++++++++---------- .../toastergui/templates/projecttopbar.html | 12 ++--- .../lib/toaster/toastergui/templates/recipe.html | 6 +-- .../toaster/toastergui/templates/recipe_btn.html | 2 +- .../toastergui/templates/recipe_packages.html | 8 ++-- .../toastergui/templates/recipedetails.html | 20 ++++---- .../lib/toaster/toastergui/templates/recipes.html | 14 +++--- .../snippets/pkg_dependencies_popover.html | 2 +- .../snippets/pkg_revdependencies_popover.html | 2 +- .../lib/toaster/toastergui/templates/target.html | 16 +++---- bitbake/lib/toaster/toastergui/templates/task.html | 10 ++-- .../lib/toaster/toastergui/templates/tasks.html | 8 ++-- .../toastergui/templates/toastertable-simple.html | 16 +++---- .../toaster/toastergui/templates/toastertable.html | 14 +++--- .../toastergui/templates/unavailable_artifact.html | 4 +- 54 files changed, 286 insertions(+), 278 deletions(-)
bitbake/lib/toaster/toastergui/static/html/layer_deps_modal.html +1 -1
@@ -6,7 +6,7 @@ </div> <div class="modal-body"> <p id="body-text"> <strong id="layer-name"></strong> depends on some layers that are not added to your project. Select the ones you want to add:</p> - <ul class="unstyled" id="dependencies-list"> + <ul class="list-unstyled" id="dependencies-list"> </ul> </div> <div class="modal-footer">
bitbake/lib/toaster/toastergui/static/js/bootstrap.min.js +6 -5
@@ -1,6 +1,7 @@ /*! -* Bootstrap.js by @fat & @mdo -* Copyright 2013 Twitter, Inc. -* http://www.apache.org/licenses/LICENSE-2.0.txt -*/ -!function(e){"use strict";e(function(){e.support.transition=function(){var e=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(e.style[n]!==undefined)return t[n]}();return e&&{end:e}}()})}(window.jQuery),!function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};n.prototype.close=function(t){function s(){i.trigger("closed").remove()}var n=e(this),r=n.attr("data-target"),i;r||(r=n.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,"")),i=e(r),t&&t.preventDefault(),i.length||(i=n.hasClass("alert")?n:n.parent()),i.trigger(t=e.Event("close"));if(t.isDefaultPrevented())return;i.removeClass("in"),e.support.transition&&i.hasClass("fade")?i.on(e.support.transition.end,s):s()};var r=e.fn.alert;e.fn.alert=function(t){return this.each(function(){var r=e(this),i=r.data("alert");i||r.data("alert",i=new n(this)),typeof t=="string"&&i[t].call(r)})},e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=r,this},e(document).on("click.alert.data-api",t,n.prototype.close)}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.button.defaults,n)};t.prototype.setState=function(e){var t="disabled",n=this.$element,r=n.data(),i=n.is("input")?"val":"html";e+="Text",r.resetText||n.data("resetText",n[i]()),n[i](r[e]||this.options[e]),setTimeout(function(){e=="loadingText"?n.addClass(t).attr(t,t):n.removeClass(t).removeAttr(t)},0)},t.prototype.toggle=function(){var e=this.$element.closest('[data-toggle="buttons-radio"]');e&&e.find(".active").removeClass("active"),this.$element.toggleClass("active")};var n=e.fn.button;e.fn.button=function(n){return this.each(function(){var r=e(this),i=r.data("button"),s=typeof n=="object"&&n;i||r.data("button",i=new t(this,s)),n=="toggle"?i.toggle():n&&i.setState(n)})},e.fn.button.defaults={loadingText:"loading..."},e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=n,this},e(document).on("click.button.data-api","[data-toggle^=button]",function(t){var n=e(t.target);n.hasClass("btn")||(n=n.closest(".btn")),n.button("toggle")})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.options.pause=="hover"&&this.$element.on("mouseenter",e.proxy(this.pause,this)).on("mouseleave",e.proxy(this.cycle,this))};t.prototype={cycle:function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},getActiveIndex:function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},to:function(t){var n=this.getActiveIndex(),r=this;if(t>this.$items.length-1||t<0)return;return this.sliding?this.$element.one("slid",function(){r.to(t)}):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",e(this.$items[t]))},pause:function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition.end&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),clearInterval(this.interval),this.interval=null,this},next:function(){if(this.sliding)return;return this.slide("next")},prev:function(){if(this.sliding)return;return this.slide("prev")},slide:function(t,n){var r=this.$element.find(".item.active"),i=n||r[t](),s=this.interval,o=t=="next"?"left":"right",u=t=="next"?"first":"last",a=this,f;this.sliding=!0,s&&this.pause(),i=i.length?i:this.$element.find(".item")[u](),f=e.Event("slide",{relatedTarget:i[0],direction:o});if(i.hasClass("active"))return;this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid",function(){var t=e(a.$indicators.children()[a.getActiveIndex()]);t&&t.addClass("active")}));if(e.support.transition&&this.$element.hasClass("slide")){this.$element.trigger(f);if(f.isDefaultPrevented())return;i.addClass(t),i[0].offsetWidth,r.addClass(o),i.addClass(o),this.$element.one(e.support.transition.end,function(){i.removeClass([t,o].join(" ")).addClass("active"),r.removeClass(["active",o].join(" ")),a.sliding=!1,setTimeout(function(){a.$element.trigger("slid")},0)})}else{this.$element.trigger(f);if(f.isDefaultPrevented())return;r.removeClass("active"),i.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return s&&this.cycle(),this}};var n=e.fn.carousel;e.fn.carousel=function(n){return this.each(function(){var r=e(this),i=r.data("carousel"),s=e.extend({},e.fn.carousel.defaults,typeof n=="object"&&n),o=typeof n=="string"?n:s.slide;i||r.data("carousel",i=new t(this,s)),typeof n=="number"?i.to(n):o?i[o]():s.interval&&i.pause().cycle()})},e.fn.carousel.defaults={interval:5e3,pause:"hover"},e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=n,this},e(document).on("click.carousel.data-api","[data-slide], [data-slide-to]",function(t){var n=e(this),r,i=e(n.attr("data-target")||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,"")),s=e.extend({},i.data(),n.data()),o;i.carousel(s),(o=n.attr("data-slide-to"))&&i.data("carousel").pause().to(o).cycle(),t.preventDefault()})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.collapse.defaults,n),this.options.parent&&(this.$parent=e(this.options.parent)),this.options.toggle&&this.toggle()};t.prototype={constructor:t,dimension:function(){var e=this.$element.hasClass("width");return e?"width":"height"},show:function(){var t,n,r,i;if(this.transitioning||this.$element.hasClass("in"))return;t=this.dimension(),n=e.camelCase(["scroll",t].join("-")),r=this.$parent&&this.$parent.find("> .accordion-group > .in");if(r&&r.length){i=r.data("collapse");if(i&&i.transitioning)return;r.collapse("hide"),i||r.data("collapse",null)}this.$element[t](0),this.transition("addClass",e.Event("show"),"shown"),e.support.transition&&this.$element[t](this.$element[0][n])},hide:function(){var t;if(this.transitioning||!this.$element.hasClass("in"))return;t=this.dimension(),this.reset(this.$element[t]()),this.transition("removeClass",e.Event("hide"),"hidden"),this.$element[t](0)},reset:function(e){var t=this.dimension();return this.$element.removeClass("collapse")[t](e||"auto")[0].offsetWidth,this.$element[e!==null?"addClass":"removeClass"]("collapse"),this},transition:function(t,n,r){var i=this,s=function(){n.type=="show"&&i.reset(),i.transitioning=0,i.$element.trigger(r)};this.$element.trigger(n);if(n.isDefaultPrevented())return;this.transitioning=1,this.$element[t]("in"),e.support.transition&&this.$element.hasClass("collapse")?this.$element.one(e.support.transition.end,s):s()},toggle:function(){this[this.$element.hasClass("in")?"hide":"show"]()}};var n=e.fn.collapse;e.fn.collapse=function(n){return this.each(function(){var r=e(this),i=r.data("collapse"),s=e.extend({},e.fn.collapse.defaults,r.data(),typeof n=="object"&&n);i||r.data("collapse",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.collapse.defaults={toggle:!0},e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=n,this},e(document).on("click.collapse.data-api","[data-toggle=collapse]",function(t){var n=e(this),r,i=n.attr("data-target")||t.preventDefault()||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,""),s=e(i).data("collapse")?"toggle":n.data();n[e(i).hasClass("in")?"addClass":"removeClass"]("collapsed"),e(i).collapse(s)})}(window.jQuery),!function(e){"use strict";function r(){e(".dropdown-backdrop").remove(),e(t).each(function(){i(e(this)).removeClass("open")})}function i(t){var n=t.attr("data-target"),r;n||(n=t.attr("href"),n=n&&/#/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,"")),r=n&&e(n);if(!r||!r.length)r=t.parent();return r}var t="[data-toggle=dropdown]",n=function(t){var n=e(t).on("click.dropdown.data-api",this.toggle);e("html").on("click.dropdown.data-api",function(){n.parent().removeClass("open")})};n.prototype={constructor:n,toggle:function(t){var n=e(this),s,o;if(n.is(".disabled, :disabled"))return;return s=i(n),o=s.hasClass("open"),r(),o||("ontouchstart"in document.documentElement&&e('<div class="dropdown-backdrop"/>').insertBefore(e(this)).on("click",r),s.toggleClass("open")),n.focus(),!1},keydown:function(n){var r,s,o,u,a,f;if(!/(38|40|27)/.test(n.keyCode))return;r=e(this),n.preventDefault(),n.stopPropagation();if(r.is(".disabled, :disabled"))return;u=i(r),a=u.hasClass("open");if(!a||a&&n.keyCode==27)return n.which==27&&u.find(t).focus(),r.click();s=e("[role=menu] li:not(.divider):visible a",u);if(!s.length)return;f=s.index(s.filter(":focus")),n.keyCode==38&&f>0&&f--,n.keyCode==40&&f<s.length-1&&f++,~f||(f=0),s.eq(f).focus()}};var s=e.fn.dropdown;e.fn.dropdown=function(t){return this.each(function(){var r=e(this),i=r.data("dropdown");i||r.data("dropdown",i=new n(this)),typeof t=="string"&&i[t].call(r)})},e.fn.dropdown.Constructor=n,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=s,this},e(document).on("click.dropdown.data-api",r).on("click.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.dropdown.data-api",t,n.prototype.toggle).on("keydown.dropdown.data-api",t+", [role=menu]",n.prototype.keydown)}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.options=n,this.$element=e(t).delegate('[data-dismiss="modal"]',"click.dismiss.modal",e.proxy(this.hide,this)),this.options.remote&&this.$element.find(".modal-body").load(this.options.remote)};t.prototype={constructor:t,toggle:function(){return this[this.isShown?"hide":"show"]()},show:function(){var t=this,n=e.Event("show");this.$element.trigger(n);if(this.isShown||n.isDefaultPrevented())return;this.isShown=!0,this.escape(),this.backdrop(function(){var n=e.support.transition&&t.$element.hasClass("fade");t.$element.parent().length||t.$element.appendTo(document.body),t.$element.show(),n&&t.$element[0].offsetWidth,t.$element.addClass("in").attr("aria-hidden",!1),t.enforceFocus(),n?t.$element.one(e.support.transition.end,function(){t.$element.focus().trigger("shown")}):t.$element.focus().trigger("shown")})},hide:function(t){t&&t.preventDefault();var n=this;t=e.Event("hide"),this.$element.trigger(t);if(!this.isShown||t.isDefaultPrevented())return;this.isShown=!1,this.escape(),e(document).off("focusin.modal"),this.$element.removeClass("in").attr("aria-hidden",!0),e.support.transition&&this.$element.hasClass("fade")?this.hideWithTransition():this.hideModal()},enforceFocus:function(){var t=this;e(document).on("focusin.modal",function(e){t.$element[0]!==e.target&&!t.$element.has(e.target).length&&t.$element.focus()})},escape:function(){var e=this;this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.modal",function(t){t.which==27&&e.hide()}):this.isShown||this.$element.off("keyup.dismiss.modal")},hideWithTransition:function(){var t=this,n=setTimeout(function(){t.$element.off(e.support.transition.end),t.hideModal()},500);this.$element.one(e.support.transition.end,function(){clearTimeout(n),t.hideModal()})},hideModal:function(){var e=this;this.$element.hide(),this.backdrop(function(){e.removeBackdrop(),e.$element.trigger("hidden")})},removeBackdrop:function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},backdrop:function(t){var n=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=e.support.transition&&r;this.$backdrop=e('<div class="modal-backdrop '+r+'" />').appendTo(document.body),this.$backdrop.click(this.options.backdrop=="static"?e.proxy(this.$element[0].focus,this.$element[0]):e.proxy(this.hide,this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in");if(!t)return;i?this.$backdrop.one(e.support.transition.end,t):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(e.support.transition.end,t):t()):t&&t()}};var n=e.fn.modal;e.fn.modal=function(n){return this.each(function(){var r=e(this),i=r.data("modal"),s=e.extend({},e.fn.modal.defaults,r.data(),typeof n=="object"&&n);i||r.data("modal",i=new t(this,s)),typeof n=="string"?i[n]():s.show&&i.show()})},e.fn.modal.defaults={backdrop:!0,keyboard:!0,show:!0},e.fn.modal.Constructor=t,e.fn.modal.noConflict=function(){return e.fn.modal=n,this},e(document).on("click.modal.data-api",'[data-toggle="modal"]',function(t){var n=e(this),r=n.attr("href"),i=e(n.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),s=i.data("modal")?"toggle":e.extend({remote:!/#/.test(r)&&r},i.data(),n.data());t.preventDefault(),i.modal(s).one("hide",function(){n.focus()})})}(window.jQuery),!function(e){"use strict";var t=function(e,t){this.init("tooltip",e,t)};t.prototype={constructor:t,init:function(t,n,r){var i,s,o,u,a;this.type=t,this.$element=e(n),this.options=this.getOptions(r),this.enabled=!0,o=this.options.trigger.split(" ");for(a=o.length;a--;)u=o[a],u=="click"?this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this)):u!="manual"&&(i=u=="hover"?"mouseenter":"focus",s=u=="hover"?"mouseleave":"blur",this.$element.on(i+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.leave,this)));this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(t){return t=e.extend({},e.fn[this.type].defaults,this.$element.data(),t),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t},enter:function(t){var n=e.fn[this.type].defaults,r={},i;this._options&&e.each(this._options,function(e,t){n[e]!=t&&(r[e]=t)},this),i=e(t.currentTarget)[this.type](r).data(this.type);if(!i.options.delay||!i.options.delay.show)return i.show();clearTimeout(this.timeout),i.hoverState="in",this.timeout=setTimeout(function(){i.hoverState=="in"&&i.show()},i.options.delay.show)},leave:function(t){var n=e(t.currentTarget)[this.type](this._options).data(this.type);this.timeout&&clearTimeout(this.timeout);if(!n.options.delay||!n.options.delay.hide)return n.hide();n.hoverState="out",this.timeout=setTimeout(function(){n.hoverState=="out"&&n.hide()},n.options.delay.hide)},show:function(){var t,n,r,i,s,o,u=e.Event("show");if(this.hasContent()&&this.enabled){this.$element.trigger(u);if(u.isDefaultPrevented())return;t=this.tip(),this.setContent(),this.options.animation&&t.addClass("fade"),s=typeof this.options.placement=="function"?this.options.placement.call(this,t[0],this.$element[0]):this.options.placement,t.detach().css({top:0,left:0,display:"block"}),this.options.container?t.appendTo(this.options.container):t.insertAfter(this.$element),n=this.getPosition(),r=t[0].offsetWidth,i=t[0].offsetHeight;switch(s){case"bottom":o={top:n.top+n.height,left:n.left+n.width/2-r/2};break;case"top":o={top:n.top-i,left:n.left+n.width/2-r/2};break;case"left":o={top:n.top+n.height/2-i/2,left:n.left-r};break;case"right":o={top:n.top+n.height/2-i/2,left:n.left+n.width}}this.applyPlacement(o,s),this.$element.trigger("shown")}},applyPlacement:function(e,t){var n=this.tip(),r=n[0].offsetWidth,i=n[0].offsetHeight,s,o,u,a;n.offset(e).addClass(t).addClass("in"),s=n[0].offsetWidth,o=n[0].offsetHeight,t=="top"&&o!=i&&(e.top=e.top+i-o,a=!0),t=="bottom"||t=="top"?(u=0,e.left<0&&(u=e.left*-2,e.left=0,n.offset(e),s=n[0].offsetWidth,o=n[0].offsetHeight),this.replaceArrow(u-r+s,s,"left")):this.replaceArrow(o-i,o,"top"),a&&n.offset(e)},replaceArrow:function(e,t,n){this.arrow().css(n,e?50*(1-e/t)+"%":"")},setContent:function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},hide:function(){function i(){var t=setTimeout(function(){n.off(e.support.transition.end).detach()},500);n.one(e.support.transition.end,function(){clearTimeout(t),n.detach()})}var t=this,n=this.tip(),r=e.Event("hide");this.$element.trigger(r);if(r.isDefaultPrevented())return;return n.removeClass("in"),e.support.transition&&this.$tip.hasClass("fade")?i():n.detach(),this.$element.trigger("hidden"),this},fixTitle:function(){var e=this.$element;(e.attr("title")||typeof e.attr("data-original-title")!="string")&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},hasContent:function(){return this.getTitle()},getPosition:function(){var t=this.$element[0];return e.extend({},typeof t.getBoundingClientRect=="function"?t.getBoundingClientRect():{width:t.offsetWidth,height:t.offsetHeight},this.$element.offset())},getTitle:function(){var e,t=this.$element,n=this.options;return e=t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title),e},tip:function(){return this.$tip=this.$tip||e(this.options.template)},arrow:function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(t){var n=t?e(t.currentTarget)[this.type](this._options).data(this.type):this;n.tip().hasClass("in")?n.hide():n.show()},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}};var n=e.fn.tooltip;e.fn.tooltip=function(n){return this.each(function(){var r=e(this),i=r.data("tooltip"),s=typeof n=="object"&&n;i||r.data("tooltip",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.tooltip.Constructor=t,e.fn.tooltip.defaults={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},e.fn.tooltip.noConflict=function(){return e.fn.tooltip=n,this}}(window.jQuery),!function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype,{constructor:t,setContent:function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content")[this.options.html?"html":"text"](n),e.removeClass("fade top bottom left right in")},hasContent:function(){return this.getTitle()||this.getContent()},getContent:function(){var e,t=this.$element,n=this.options;return e=(typeof n.content=="function"?n.content.call(t[0]):n.content)||t.attr("data-content"),e},tip:function(){return this.$tip||(this.$tip=e(this.options.template)),this.$tip},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}});var n=e.fn.popover;e.fn.popover=function(n){return this.each(function(){var r=e(this),i=r.data("popover"),s=typeof n=="object"&&n;i||r.data("popover",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.popover.Constructor=t,e.fn.popover.defaults=e.extend({},e.fn.tooltip.defaults,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),e.fn.popover.noConflict=function(){return e.fn.popover=n,this}}(window.jQuery),!function(e){"use strict";function t(t,n){var r=e.proxy(this.process,this),i=e(t).is("body")?e(window):e(t),s;this.options=e.extend({},e.fn.scrollspy.defaults,n),this.$scrollElement=i.on("scroll.scroll-spy.data-api",r),this.selector=(this.options.target||(s=e(t).attr("href"))&&s.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.$body=e("body"),this.refresh(),this.process()}t.prototype={constructor:t,refresh:function(){var t=this,n;this.offsets=e([]),this.targets=e([]),n=this.$body.find(this.selector).map(function(){var n=e(this),r=n.data("target")||n.attr("href"),i=/^#\w/.test(r)&&e(r);return i&&i.length&&[[i.position().top+(!e.isWindow(t.$scrollElement.get(0))&&t.$scrollElement.scrollTop()),r]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},process:function(){var e=this.$scrollElement.scrollTop()+this.options.offset,t=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,n=t-this.$scrollElement.height(),r=this.offsets,i=this.targets,s=this.activeTarget,o;if(e>=n)return s!=(o=i.last()[0])&&this.activate(o);for(o=r.length;o--;)s!=i[o]&&e>=r[o]&&(!r[o+1]||e<=r[o+1])&&this.activate(i[o])},activate:function(t){var n,r;this.activeTarget=t,e(this.selector).parent(".active").removeClass("active"),r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',n=e(r).parent("li").addClass("active"),n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate")}};var n=e.fn.scrollspy;e.fn.scrollspy=function(n){return this.each(function(){var r=e(this),i=r.data("scrollspy"),s=typeof n=="object"&&n;i||r.data("scrollspy",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.scrollspy.Constructor=t,e.fn.scrollspy.defaults={offset:10},e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=n,this},e(window).on("load",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);t.scrollspy(t.data())})})}(window.jQuery),!function(e){"use strict";var t=function(t){this.element=e(t)};t.prototype={constructor:t,show:function(){var t=this.element,n=t.closest("ul:not(.dropdown-menu)"),r=t.attr("data-target"),i,s,o;r||(r=t.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,""));if(t.parent("li").hasClass("active"))return;i=n.find(".active:last a")[0],o=e.Event("show",{relatedTarget:i}),t.trigger(o);if(o.isDefaultPrevented())return;s=e(r),this.activate(t.parent("li"),n),this.activate(s,s.parent(),function(){t.trigger({type:"shown",relatedTarget:i})})},activate:function(t,n,r){function o(){i.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),t.addClass("active"),s?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active"),r&&r()}var i=n.find("> .active"),s=r&&e.support.transition&&i.hasClass("fade");s?i.one(e.support.transition.end,o):o(),i.removeClass("in")}};var n=e.fn.tab;e.fn.tab=function(n){return this.each(function(){var r=e(this),i=r.data("tab");i||r.data("tab",i=new t(this)),typeof n=="string"&&i[n]()})},e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=n,this},e(document).on("click.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault(),e(this).tab("show")})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.typeahead.defaults,n),this.matcher=this.options.matcher||this.matcher,this.sorter=this.options.sorter||this.sorter,this.highlighter=this.options.highlighter||this.highlighter,this.updater=this.options.updater||this.updater,this.source=this.options.source,this.$menu=e(this.options.menu),this.shown=!1,this.listen()};t.prototype={constructor:t,select:function(){var e=this.$menu.find(".active").attr("data-value");return this.$element.val(this.updater(e)).change(),this.hide()},updater:function(e){return e},show:function(){var t=e.extend({},this.$element.position(),{height:this.$element[0].offsetHeight});return this.$menu.insertAfter(this.$element).css({top:t.top+t.height,left:t.left}).show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},lookup:function(t){var n;return this.query=this.$element.val(),!this.query||this.query.length<this.options.minLength?this.shown?this.hide():this:(n=e.isFunction(this.source)?this.source(this.query,e.proxy(this.process,this)):this.source,n?this.process(n):this)},process:function(t){var n=this;return t=e.grep(t,function(e){return n.matcher(e)}),t=this.sorter(t),t.length?this.render(t.slice(0,this.options.items)).show():this.shown?this.hide():this},matcher:function(e){return~e.toLowerCase().indexOf(this.query.toLowerCase())},sorter:function(e){var t=[],n=[],r=[],i;while(i=e.shift())i.toLowerCase().indexOf(this.query.toLowerCase())?~i.indexOf(this.query)?n.push(i):r.push(i):t.push(i);return t.concat(n,r)},highlighter:function(e){var t=this.query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&");return e.replace(new RegExp("("+t+")","ig"),function(e,t){return"<strong>"+t+"</strong>"})},render:function(t){var n=this;return t=e(t).map(function(t,r){return t=e(n.options.item).attr("data-value",r),t.find("a").html(n.highlighter(r)),t[0]}),t.first().addClass("active"),this.$menu.html(t),this},next:function(t){var n=this.$menu.find(".active").removeClass("active"),r=n.next();r.length||(r=e(this.$menu.find("li")[0])),r.addClass("active")},prev:function(e){var t=this.$menu.find(".active").removeClass("active"),n=t.prev();n.length||(n=this.$menu.find("li").last()),n.addClass("active")},listen:function(){this.$element.on("focus",e.proxy(this.focus,this)).on("blur",e.proxy(this.blur,this)).on("keypress",e.proxy(this.keypress,this)).on("keyup",e.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.on("keydown",e.proxy(this.keydown,this)),this.$menu.on("click",e.proxy(this.click,this)).on("mouseenter","li",e.proxy(this.mouseenter,this)).on("mouseleave","li",e.proxy(this.mouseleave,this))},eventSupported:function(e){var t=e in this.$element;return t||(this.$element.setAttribute(e,"return;"),t=typeof this.$element[e]=="function"),t},move:function(e){if(!this.shown)return;switch(e.keyCode){case 9:case 13:case 27:e.preventDefault();break;case 38:e.preventDefault(),this.prev();break;case 40:e.preventDefault(),this.next()}e.stopPropagation()},keydown:function(t){this.suppressKeyPressRepeat=~e.inArray(t.keyCode,[40,38,9,13,27]),this.move(t)},keypress:function(e){if(this.suppressKeyPressRepeat)return;this.move(e)},keyup:function(e){switch(e.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.lookup()}e.stopPropagation(),e.preventDefault()},focus:function(e){this.focused=!0},blur:function(e){this.focused=!1,!this.mousedover&&this.shown&&this.hide()},click:function(e){e.stopPropagation(),e.preventDefault(),this.select(),this.$element.focus()},mouseenter:function(t){this.mousedover=!0,this.$menu.find(".active").removeClass("active"),e(t.currentTarget).addClass("active")},mouseleave:function(e){this.mousedover=!1,!this.focused&&this.shown&&this.hide()}};var n=e.fn.typeahead;e.fn.typeahead=function(n){return this.each(function(){var r=e(this),i=r.data("typeahead"),s=typeof n=="object"&&n;i||r.data("typeahead",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.typeahead.defaults={source:[],items:8,menu:'<ul class="typeahead dropdown-menu"></ul>',item:'<li><a href="#"></a></li>',minLength:1},e.fn.typeahead.Constructor=t,e.fn.typeahead.noConflict=function(){return e.fn.typeahead=n,this},e(document).on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(t){var n=e(this);if(n.data("typeahead"))return;n.typeahead(n.data())})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.options=e.extend({},e.fn.affix.defaults,n),this.$window=e(window).on("scroll.affix.data-api",e.proxy(this.checkPosition,this)).on("click.affix.data-api",e.proxy(function(){setTimeout(e.proxy(this.checkPosition,this),1)},this)),this.$element=e(t),this.checkPosition()};t.prototype.checkPosition=function(){if(!this.$element.is(":visible"))return;var t=e(document).height(),n=this.$window.scrollTop(),r=this.$element.offset(),i=this.options.offset,s=i.bottom,o=i.top,u="affix affix-top affix-bottom",a;typeof i!="object"&&(s=o=i),typeof o=="function"&&(o=i.top()),typeof s=="function"&&(s=i.bottom()),a=this.unpin!=null&&n+this.unpin<=r.top?!1:s!=null&&r.top+this.$element.height()>=t-s?"bottom":o!=null&&n<=o?"top":!1;if(this.affixed===a)return;this.affixed=a,this.unpin=a=="bottom"?r.top-n:null,this.$element.removeClass(u).addClass("affix"+(a?"-"+a:""))};var n=e.fn.affix;e.fn.affix=function(n){return this.each(function(){var r=e(this),i=r.data("affix"),s=typeof n=="object"&&n;i||r.data("affix",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.affix.Constructor=t,e.fn.affix.defaults={offset:0},e.fn.affix.noConflict=function(){return e.fn.affix=n,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var t=e(this),n=t.data();n.offset=n.offset||{},n.offsetBottom&&(n.offset.bottom=n.offsetBottom),n.offsetTop&&(n.offset.top=n.offsetTop),t.affix(n)})})}(window.jQuery); + * Bootstrap v3.3.6 (http://getbootstrap.com) + * Copyright 2011-2016 Twitter, Inc. + * Licensed under the MIT license + */ +if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1||b[0]>2)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.6",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a(f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.6",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")?(c.prop("checked")&&(a=!1),b.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==c.prop("type")&&(c.prop("checked")!==this.$element.hasClass("active")&&(a=!1),this.$element.toggleClass("active")),c.prop("checked",this.$element.hasClass("active")),a&&c.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),a(c.target).is('input[type="radio"]')||a(c.target).is('input[type="checkbox"]')||c.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.6",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));return a>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.6",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function c(c){c&&3===c.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=b(d),f={relatedTarget:this};e.hasClass("open")&&(c&&"click"==c.type&&/input|textarea/i.test(c.target.tagName)&&a.contains(e[0],c.target)||(e.trigger(c=a.Event("hide.bs.dropdown",f)),c.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger(a.Event("hidden.bs.dropdown",f)))))}))}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.6",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=b(e),g=f.hasClass("open");if(c(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",c);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger(a.Event("shown.bs.dropdown",h))}return!1}},g.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagName)){var d=a(this);if(c.preventDefault(),c.stopPropagation(),!d.is(".disabled, :disabled")){var e=b(d),g=e.hasClass("open");if(!g&&27!=c.which||g&&27==c.which)return 27==c.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=e.find(".dropdown-menu"+h);if(i.length){var j=i.index(c.target);38==c.which&&j>0&&j--,40==c.which&&j<i.length-1&&j++,~j||(j=0),i.eq(j).trigger("focus")}}}};var h=a.fn.dropdown;a.fn.dropdown=d,a.fn.dropdown.Constructor=g,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=h,this},a(document).on("click.bs.dropdown.data-api",c).on("click.bs.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("click.bs.dropdown.data-api",f,g.prototype.toggle).on("keydown.bs.dropdown.data-api",f,g.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",g.prototype.keydown)}(jQuery),+function(a){"use strict";function b(b,d){return this.each(function(){var e=a(this),f=e.data("bs.modal"),g=a.extend({},c.DEFAULTS,e.data(),"object"==typeof b&&b);f||e.data("bs.modal",f=new c(this,g)),"string"==typeof b?f[b](d):g.show&&f.show(d)})}var c=function(b,c){this.options=c,this.$body=a(document.body),this.$element=a(b),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,a.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};c.VERSION="3.3.6",c.TRANSITION_DURATION=300,c.BACKDROP_TRANSITION_DURATION=150,c.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},c.prototype.toggle=function(a){return this.isShown?this.hide():this.show(a)},c.prototype.show=function(b){var d=this,e=a.Event("show.bs.modal",{relatedTarget:b});this.$element.trigger(e),this.isShown||e.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){d.$element.one("mouseup.dismiss.bs.modal",function(b){a(b.target).is(d.$element)&&(d.ignoreBackdropClick=!0)})}),this.backdrop(function(){var e=a.support.transition&&d.$element.hasClass("fade");d.$element.parent().length||d.$element.appendTo(d.$body),d.$element.show().scrollTop(0),d.adjustDialog(),e&&d.$element[0].offsetWidth,d.$element.addClass("in"),d.enforceFocus();var f=a.Event("shown.bs.modal",{relatedTarget:b});e?d.$dialog.one("bsTransitionEnd",function(){d.$element.trigger("focus").trigger(f)}).emulateTransitionEnd(c.TRANSITION_DURATION):d.$element.trigger("focus").trigger(f)}))},c.prototype.hide=function(b){b&&b.preventDefault(),b=a.Event("hide.bs.modal"),this.$element.trigger(b),this.isShown&&!b.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",a.proxy(this.hideModal,this)).emulateTransitionEnd(c.TRANSITION_DURATION):this.hideModal())},c.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(a){this.$element[0]===a.target||this.$element.has(a.target).length||this.$element.trigger("focus")},this))},c.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",a.proxy(function(a){27==a.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},c.prototype.resize=function(){this.isShown?a(window).on("resize.bs.modal",a.proxy(this.handleUpdate,this)):a(window).off("resize.bs.modal")},c.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop(function(){a.$body.removeClass("modal-open"),a.resetAdjustments(),a.resetScrollbar(),a.$element.trigger("hidden.bs.modal")})},c.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},c.prototype.backdrop=function(b){var d=this,e=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var f=a.support.transition&&e;if(this.$backdrop=a(document.createElement("div")).addClass("modal-backdrop "+e).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",a.proxy(function(a){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(a.target===a.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),f&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!b)return;f?this.$backdrop.one("bsTransitionEnd",b).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):b()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var g=function(){d.removeBackdrop(),b&&b()};a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",g).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):g()}else b&&b()},c.prototype.handleUpdate=function(){this.adjustDialog()},c.prototype.adjustDialog=function(){var a=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},c.prototype.checkScrollbar=function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this.bodyIsOverflowing=document.body.clientWidth<a,this.scrollbarWidth=this.measureScrollbar()},c.prototype.setScrollbar=function(){var a=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",a+this.scrollbarWidth)},c.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},c.prototype.measureScrollbar=function(){var a=document.createElement("div");a.className="modal-scrollbar-measure",this.$body.append(a);var b=a.offsetWidth-a.clientWidth;return this.$body[0].removeChild(a),b};var d=a.fn.modal;a.fn.modal=b,a.fn.modal.Constructor=c,a.fn.modal.noConflict=function(){return a.fn.modal=d,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(c){var d=a(this),e=d.attr("href"),f=a(d.attr("data-target")||e&&e.replace(/.*(?=#[^\s]+$)/,"")),g=f.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(e)&&e},f.data(),d.data());d.is("a")&&c.preventDefault(),f.one("show.bs.modal",function(a){a.isDefaultPrevented()||f.one("hidden.bs.modal",function(){d.is(":visible")&&d.trigger("focus")})}),b.call(f,g,this)})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tooltip"),f="object"==typeof b&&b;!e&&/destroy|hide/.test(b)||(e||d.data("bs.tooltip",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",a,b)};c.VERSION="3.3.6",c.TRANSITION_DURATION=150,c.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(a.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusin"==b.type?"focus":"hover"]=!0),c.tip().hasClass("in")||"in"==c.hoverState?void(c.hoverState="in"):(clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0;return!1},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusout"==b.type?"focus":"hover"]=!1),c.isInStateTrue()?void 0:(clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide())},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.getPosition(this.$viewport);h="bottom"==h&&k.bottom+m>o.bottom?"top":"top"==h&&k.top-m<o.top?"bottom":"right"==h&&k.right+l>o.width?"left":"left"==h&&k.left-l<o.left?"right":h,f.removeClass(n).addClass(h)}var p=this.getCalculatedOffset(h,k,l,m);this.applyPlacement(p,h);var q=function(){var a=e.hoverState;e.$element.trigger("shown.bs."+e.type),e.hoverState=null,"out"==a&&e.leave(e)};a.support.transition&&this.$tip.hasClass("fade")?f.one("bsTransitionEnd",q).emulateTransitionEnd(c.TRANSITION_DURATION):q()}},c.prototype.applyPlacement=function(b,c){var d=this.tip(),e=d[0].offsetWidth,f=d[0].offsetHeight,g=parseInt(d.css("margin-top"),10),h=parseInt(d.css("margin-left"),10);isNaN(g)&&(g=0),isNaN(h)&&(h=0),b.top+=g,b.left+=h,a.offset.setOffset(d[0],a.extend({using:function(a){d.css({top:Math.round(a.top),left:Math.round(a.left)})}},b),0),d.addClass("in");var i=d[0].offsetWidth,j=d[0].offsetHeight;"top"==c&&j!=f&&(b.top=b.top+f-j);var k=this.getViewportAdjustedDelta(c,b,i,j);k.left?b.left+=k.left:b.top+=k.top;var l=/top|bottom/.test(c),m=l?2*k.left-e+i:2*k.top-f+j,n=l?"offsetWidth":"offsetHeight";d.offset(b),this.replaceArrow(m,d[0][n],l)},c.prototype.replaceArrow=function(a,b,c){this.arrow().css(c?"left":"top",50*(1-a/b)+"%").css(c?"top":"left","")},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right")},c.prototype.hide=function(b){function d(){"in"!=e.hoverState&&f.detach(),e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),b&&b()}var e=this,f=a(this.$tip),g=a.Event("hide.bs."+this.type);return this.$element.trigger(g),g.isDefaultPrevented()?void 0:(f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one("bsTransitionEnd",d).emulateTransitionEnd(c.TRANSITION_DURATION):d(),this.hoverState=null,this)},c.prototype.fixTitle=function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("data-original-title"))&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},c.prototype.hasContent=function(){return this.getTitle()},c.prototype.getPosition=function(b){b=b||this.$element;var c=b[0],d="BODY"==c.tagName,e=c.getBoundingClientRect();null==e.width&&(e=a.extend({},e,{width:e.right-e.left,height:e.bottom-e.top}));var f=d?{top:0,left:0}:b.offset(),g={scroll:d?document.documentElement.scrollTop||document.body.scrollTop:b.scrollTop()},h=d?{width:a(window).width(),height:a(window).height()}:null;return a.extend({},e,g,h,f)},c.prototype.getCalculatedOffset=function(a,b,c,d){return"bottom"==a?{top:b.top+b.height,left:b.left+b.width/2-c/2}:"top"==a?{top:b.top-d,left:b.left+b.width/2-c/2}:"left"==a?{top:b.top+b.height/2-d/2,left:b.left-c}:{top:b.top+b.height/2-d/2,left:b.left+b.width}},c.prototype.getViewportAdjustedDelta=function(a,b,c,d){var e={top:0,left:0};if(!this.$viewport)return e;var f=this.options.viewport&&this.options.viewport.padding||0,g=this.getPosition(this.$viewport);if(/right|left/.test(a)){var h=b.top-f-g.scroll,i=b.top+f-g.scroll+d;h<g.top?e.top=g.top-h:i>g.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;j<g.left?e.left=g.left-j:k>g.right&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),b?(c.inState.click=!c.inState.click,c.isInStateTrue()?c.enter(c):c.leave(c)):c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type),a.$tip&&a.$tip.detach(),a.$tip=null,a.$arrow=null,a.$viewport=null})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;!e&&/destroy|hide/.test(b)||(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.6",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.6",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b<e[0])return this.activeTarget=null,this.clear();for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(void 0===e[a+1]||b<e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activeTarget=b,this.clear();var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")), +d.trigger("activate.bs.scrollspy")},b.prototype.clear=function(){a(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var d=a.fn.scrollspy;a.fn.scrollspy=c,a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=d,this},a(window).on("load.bs.scrollspy.data-api",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);c.call(b,b.data())})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new c(this)),"string"==typeof b&&e[b]()})}var c=function(b){this.element=a(b)};c.VERSION="3.3.6",c.TRANSITION_DURATION=150,c.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a"),f=a.Event("hide.bs.tab",{relatedTarget:b[0]}),g=a.Event("show.bs.tab",{relatedTarget:e[0]});if(e.trigger(f),b.trigger(g),!g.isDefaultPrevented()&&!f.isDefaultPrevented()){var h=a(d);this.activate(b.closest("li"),c),this.activate(h,h.parent(),function(){e.trigger({type:"hidden.bs.tab",relatedTarget:b[0]}),b.trigger({type:"shown.bs.tab",relatedTarget:e[0]})})}}},c.prototype.activate=function(b,d,e){function f(){g.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.6",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return c>e?"top":!1;if("bottom"==this.affixed)return null!=c?e+this.unpin<=f.top?!1:"bottom":a-d>=e+g?!1:"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&c>=e?"top":null!=d&&i+j>=a-d?"bottom":!1},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=Math.max(a(document).height(),a(document.body).height());"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery);
bitbake/lib/toaster/toastergui/static/js/customrecipe.js +2 -2
@@ -158,7 +158,7 @@ function customRecipePageInit(ctx) { msg += " <strong>" + dep.name + "</strong>"; /* Add any cells currently in view to the list of cells which get - * an inline notification inside them and which change add/rm state + * an list-inline notification inside them and which change add/rm state */ depBtnCell = $("#package-btn-cell-" + dep.pk); btnCell = btnCell.add(depBtnCell);
@@ -208,7 +208,7 @@ function customRecipePageInit(ctx) { } /* Add any cells currently in view to the list of cells which get - * an inline notification inside them and which change add/rm state + * an list-inline notification inside them and which change add/rm state */ depBtnCell = $("#package-btn-cell-" + dep.pk); btnCell = btnCell.add(depBtnCell);
bitbake/lib/toaster/toastergui/static/js/layerdetails.js +4 -4
@@ -98,7 +98,7 @@ function layerDetailsPageInit (ctx) { }); }); - $(".icon-pencil").click(function (){ + $(".glyphicon glyphicon-pencil").click(function (){ var mParent = $(this).parent("dd"); mParent.prev().css("margin-top", "10px"); mParent.children("form").slideDown();
@@ -134,7 +134,7 @@ function layerDetailsPageInit (ctx) { mParent.children(".delete-current-value").show(); } - mParent.children(".icon-pencil").show(); + mParent.children(".glyphicon glyphicon-pencil").show(); mParent.prev().css("margin-top", "0px"); }); });
@@ -387,9 +387,9 @@ function layerDetailsPageInit (ctx) { }); - layerDepsList.find(".icon-trash").click(layerDepRemoveClick); + layerDepsList.find(".glyphicon glyphicon-trash").click(layerDepRemoveClick); layerDepsList.find("a").tooltip(); - $(".icon-trash").tooltip(); + $(".glyphicon glyphicon-trash").tooltip(); $(".commit").tooltip(); }
bitbake/lib/toaster/toastergui/static/js/libtoaster.js +2 -2
@@ -571,8 +571,8 @@ $(document).ready(function() { // show task type and outcome in task details pages $(".task-info").tooltip({ container: 'body', html: true, delay: {show: 200}, placement: 'right' }); - // initialise the tooltips for the icon-pencil icons - $(".icon-pencil").tooltip({ container: 'body', html: true, delay: {show: 400}, title: "Change" }); + // initialise the tooltips for the glyphicon glyphicon-pencil icons + $(".glyphicon glyphicon-pencil").tooltip({ container: 'body', html: true, delay: {show: 400}, title: "Change" }); // initialise the tooltips for the download icons $(".icon-download-alt").tooltip({ container: 'body', html: true, delay: { show: 200 } });
bitbake/lib/toaster/toastergui/static/js/table.js +4 -4
@@ -232,7 +232,7 @@ function tableInit(ctx){ /* Setup the filter button */ if (col.filter_name){ - var filterBtn = $('<a href="#" role="button" data-filter-on="' + col.filter_name + '" class="pull-right btn btn-mini" data-toggle="modal"><i class="icon-filter filtered"></i></a>'); + var filterBtn = $('<a href="#" role="button" data-filter-on="' + col.filter_name + '" class="pull-right btn btn-xs" data-toggle="modal"><i class="glyphicon glyphicon-filter filtered"></i></a>'); filterBtn.data('filter-name', col.filter_name); filterBtn.prop('id', col.filter_name);
@@ -282,7 +282,7 @@ function tableInit(ctx){ filterBtn.tooltip({ html: true, - title: '<button class="btn btn-small btn-primary" onClick=\'$("#clear-filter-btn-'+ ctx.tableName +'").click();\'>Clear filter</button>', + title: '<button class="btn btn-sm btn-primary" onClick=\'$("#clear-filter-btn-'+ ctx.tableName +'").click();\'>Clear filter</button>', placement: 'bottom', delay: { hide: 1500,
@@ -455,10 +455,10 @@ function tableInit(ctx){ ' for="' + filterName + '">' + filterActionData.title + '</label>' + - '<input type="text" maxlength="10" class="input-small"' + + '<input type="text" maxlength="10" class="input-sm"' + ' data-date-from-for="' + filterName + '">' + '<span class="help-inline">to</span>' + - '<input type="text" maxlength="10" class="input-small"' + + '<input type="text" maxlength="10" class="input-sm"' + ' data-date-to-for="' + filterName + '">' + '<span class="help-inline get-help">(yyyy-mm-dd)</span>' + '</div>');
bitbake/lib/toaster/toastergui/templates/base.html +6 -6
@@ -62,7 +62,7 @@ {% csrf_token %} <div id="loading-notification" class="alert lead text-center" style="display:none"> - Loading <i class="fa-pulse icon-spinner"></i> + Loading <i class="fa-pulse glyphicon glyphicon-spinner"></i> </div> <div id="change-notification" class="alert lead alert-info" style="display:none">
@@ -72,7 +72,7 @@ <div class="navbar navbar-fixed-top"> <div class="navbar-inner"> - <div class="container-fluid"> + <div class="container"> <a class="brand logo" href="#"><img src="{% static 'img/logo.png' %}" class="" alt="Yocto logo project"/></a> <span class="brand"> <a href="/">Toaster</a>
@@ -86,7 +86,7 @@ class="active" {% endif %}> <a href="{% url 'all-builds' %}"> - <i class="icon-tasks"></i> + <i class="glyphicon glyphicon-tasks"></i> All builds </a> </li>
@@ -103,7 +103,7 @@ <ul class="nav pull-right"> <li> <a target="_blank" href="http://www.yoctoproject.org/docs/latest/toaster-manual/toaster-manual.html"> - <i class="icon-book"></i> + <i class="glyphicon glyphicon-book"></i> Manual </a> </li>
@@ -116,8 +116,8 @@ </div> </div> - <div class="container-fluid top-padded"> - <div class="row-fluid"> + <div class="container top-padded"> + <div class="row"> {% block pagecontent %} {% endblock %} </div>
bitbake/lib/toaster/toastergui/templates/basebuilddetailpage.html +1 -1
@@ -3,7 +3,7 @@ {% load humanize %} {% block pagecontent %} -<div class="row-fluid"> +<div class="row"> <!-- Breadcrumbs --> <div class="section"> <ul class="breadcrumb" id="breadcrumb">
bitbake/lib/toaster/toastergui/templates/basebuildpage.html +5 -2
@@ -4,6 +4,8 @@ {% load objects_to_dictionaries_filter %} {% load humanize %} {% block pagecontent %} + +<div class="row"> <!-- breadcrumbs --> <div class="section"> <ul class="breadcrumb" id="breadcrumb">
@@ -28,10 +30,11 @@ }); </script> </div> +</div> - <div class="row-fluid"> + <div class="row"> <!-- begin left sidebar container --> - <div id="nav" class="span2"> + <div id="nav" class="col-md-2"> <ul class="nav nav-list well"> <li {% if request.resolver_match.url_name == 'builddashboard' %}
bitbake/lib/toaster/toastergui/templates/baseprojectpage.html +3 -3
@@ -21,9 +21,9 @@ }); </script> -<div class="row-fluid"> +<div class="row"> <!-- only on config pages --> - <div id="config-nav" class="span2"> + <div id="config-nav" class="col-md-2"> <ul class="nav nav-list well"> <li><a class="nav-parent" href="{% url 'project' project.id %}">Configuration</a></li> <li class="nav-header">Compatible metadata</li>
@@ -36,7 +36,7 @@ <li><a href="{% url 'projectconf' project.id %}">BitBake variables</a></li> </ul> </div> - <div class="span10"> + <div class="col-md-10"> {% block projectinfomain %}{% endblock %} </div> </div>
bitbake/lib/toaster/toastergui/templates/basetable_top.html +3 -3
@@ -161,8 +161,8 @@ <!-- control header --> <div class="navbar"> <div class="navbar-inner"> - <form class="navbar-search input-append pull-left span6" id="searchform"> - <input id="search" name="search" type="text" placeholder="Search {%if object_search_display %}{{object_search_display}}{%else%}{{objectname}}{%endif%}" value="{%if request.GET.search %}{{request.GET.search}}{% endif %}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="add-on btn" tabindex="-1"><i class="icon-remove"></i></a>{%endif%} + <form class="navbar-search input-group pull-left col-md-6" id="searchform"> + <input id="search" name="search" type="text" placeholder="Search {%if object_search_display %}{{object_search_display}}{%else%}{{objectname}}{%endif%}" value="{%if request.GET.search %}{{request.GET.search}}{% endif %}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-group-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{%endif%} <input type="hidden" name="orderby" value="{{request.GET.orderby}}"> <input type="hidden" name="page" value="1"> <button class="btn" id="search-button" type="submit" value="Search">Search</button>
@@ -230,7 +230,7 @@ {%if tc.orderfield%}<a {%if tc.ordericon%} class="sorted" {%endif%}href="javascript:reload_params({'page': 1, 'orderby' : '{{tc.orderfield}}' })">{{tc.name}}</a>{%else%}<span class="muted">{{tc.name}}</span>{%endif%} {%if tc.ordericon%} <i class="icon-caret-{{tc.ordericon}}"></i>{%endif%} {%if tc.filter%}<div class="btn-group pull-right"> - <a href="#filter_{{tc.filter.class}}" role="button" class="btn btn-mini {%if request.GET.filter%}{{tc.filter.options|filtered_icon:request.GET.filter}} {%endif%}" {%if request.GET.filter and tc.filter.options|filtered_tooltip:request.GET.filter %} title="<p>{{tc.filter.options|filtered_tooltip:request.GET.filter}}</p><p><a class='btn btn-small btn-primary' href=javascript:reload_params({'filter':''})>Show all {% if filter_search_display %}{{filter_search_display}}{% else %}{{objectname}}{% endif %}</a></p>" {%endif%} data-toggle="modal"> <i class="icon-filter filtered"></i> </a> + <a href="#filter_{{tc.filter.class}}" role="button" class="btn btn-xs {%if request.GET.filter%}{{tc.filter.options|filtered_icon:request.GET.filter}} {%endif%}" {%if request.GET.filter and tc.filter.options|filtered_tooltip:request.GET.filter %} title="<p>{{tc.filter.options|filtered_tooltip:request.GET.filter}}</p><p><a class='btn btn-sm btn-primary' href=javascript:reload_params({'filter':''})>Show all {% if filter_search_display %}{{filter_search_display}}{% else %}{{objectname}}{% endif %}</a></p>" {%endif%} data-toggle="modal"> <i class="glyphicon glyphicon-filter filtered"></i> </a> </div>{%endif%} </th>{% endfor %} </tr>
bitbake/lib/toaster/toastergui/templates/bpackage.html +5 -5
@@ -12,7 +12,7 @@ {% endblock %} {% block buildinfomain %} -<div class="span10"> +<div class="col-md-10"> {% if not request.GET.filter and not request.GET.search and not objects.paginator.count %}
@@ -43,10 +43,10 @@ </div> {% if objects.paginator.count == 0 %} - <div class="row-fluid"> + <div class="row"> <div class="alert"> - <form class="no-results input-append" id="searchform"> - <input id="search" name="search" class="input-xxlarge" type="text" value="{{request.GET.search}}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="add-on btn" tabindex="-1"><i class="icon-remove"></i></a>{% endif %} + <form class="no-results input-group" id="searchform"> + <input id="search" name="search" class="input-xxlarge" type="text" value="{{request.GET.search}}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-group-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{% endif %} <button class="btn" type="submit" value="Search">Search</button> <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all packages</button> </form>
@@ -82,7 +82,7 @@ <!-- Layer commit --> <td class="recipe__layer_version__layer__commit"> <a class="btn" - data-content="<ul class='unstyled'> + data-content="<ul class='list-unstyled'> <li>{{package.recipe.layer_version.commit}}</li> </ul>"> {{package.recipe.layer_version.commit|truncatechars:13}}
bitbake/lib/toaster/toastergui/templates/builddashboard.html +15 -15
@@ -13,16 +13,16 @@ {% block buildinfomain %} <!-- page title --> -<div class="row-fluid span10"> +<div class="row col-md-10"> <div class="page-header"> <h1>{{build.target_set.all|dictsort:"target"|join:", "}} {{build.machine}}</h1> </div> </div> <!-- build result bar --> -<div class="row-fluid span10 pull-right"> +<div class="row col-md-10 pull-right"> <div class="alert {%if build.outcome == build.SUCCEEDED%}alert-success{%elif build.outcome == build.FAILED%}alert-error{%else%}alert-info{%endif%}"> - <div class="row-fluid lead"> + <div class="row lead"> <span class="pull-left"><strong> {%if build.outcome == build.SUCCEEDED%}Completed{%elif build.outcome == build.FAILED%}Failed{%else%}{%endif%} </strong> on
@@ -53,7 +53,7 @@ </div> {% if build.errors.count %} -<div class="accordion span10 pull-right" id="errors"> +<div class="accordion col-md-10 pull-right" id="errors"> <div class="accordion-group"> <div class="accordion-heading"> <a class="accordion-toggle error toggle-errors">
@@ -65,7 +65,7 @@ </div> <div class="accordion-body collapse in" id="collapse-errors"> <div class="accordion-inner"> - <div class="span10"> + <div class="col-md-10"> {% for error in build.errors %} <div class="alert alert-error" data-error="{{ error.id }}"> <pre>{{error.message}}</pre>
@@ -81,7 +81,7 @@ {%if build.outcome == build.SUCCEEDED%} <!-- built images --> {% if hasImages %} -<div class="row-fluid span10 pull-right"> +<div class="row col-md-10 pull-right"> <h2>Images</h2> {% for target in targets %} {% if target.target.is_image %}
@@ -95,8 +95,8 @@ <dd>{{target.pkgsz|filtered_filesizeformat}}</dd> {% if target.targetHasNoImages %} </dl> - <div class="row-fluid"> - <div class="alert alert-info span7"> + <div class="row"> + <div class="alert alert-info col-md-7"> <p> <b>This build did not create any image files</b> </p>
@@ -149,7 +149,7 @@ <!-- other artifacts --> {% if build.buildartifact_set.all.count > 0 %} -<div class="row-fluid span10 pull-right"> +<div class="row col-md-10 pull-right"> <h2>Other artifacts</h2> <div class="well dashboard-section">
@@ -173,9 +173,9 @@ </div> {% endif %} <!-- build summary --> -<div class="row-fluid span10 pull-right"> +<div class="row col-md-10 pull-right"> <h2>Build summary</h2> - <div class="well span4 dashboard-section" style="margin-left:0px;"> + <div class="well col-md-4 dashboard-section" style="margin-left:0px;"> <h4><a href="{%url 'configuration' build.pk%}">Configuration</a></h4> <dl> <dt>Machine</dt><dd>{{build.machine}}</dd>
@@ -183,7 +183,7 @@ <dt>Layers</dt>{% for i in build.layer_version_build.all|dictsort:"layer.name" %}<dd>{{i.layer.name}}</dd>{%endfor%} </dl> </div> - <div class="well span4 dashboard-section"> + <div class="well col-md-4 dashboard-section"> <h4><a href="{%url 'tasks' build.pk%}">Tasks</a></h4> <dl> {% query build.task_build outcome=4 order__gt=0 as exectask%}
@@ -231,7 +231,7 @@ </dd> </dl> </div> - <div class="well span4 dashboard-section"> + <div class="well col-md-4 dashboard-section"> <h4><a href="{% url 'recipes' build.pk %}">Recipes</a> & <a href="{% url 'packages' build.pk %}">Packages</a></h4> <dl> <dt>Recipes built</dt><dd><a href="{% url 'recipes' build.pk %}">{{recipecount}}</a></dd>
@@ -241,7 +241,7 @@ </div> {% if build.warnings.count %} -<div class="accordion span10 pull-right" id="warnings"> +<div class="accordion col-md-10 pull-right" id="warnings"> <div class="accordion-group"> <div class="accordion-heading"> <a class="accordion-toggle warning toggle-warnings">
@@ -253,7 +253,7 @@ </div> <div class="accordion-body collapse" id="collapse-warnings"> <div class="accordion-inner"> - <div class="span10"> + <div class="col-md-10"> {% for warning in logmessages %}{% if warning.level == 1 %} <div class="alert alert-warning"> <pre>{{warning.message}}</pre>
bitbake/lib/toaster/toastergui/templates/buildrequestdetails.html +4 -4
@@ -8,11 +8,11 @@ {% block projectinfomain %} <!-- begin content --> - <div class="row-fluid"> + <div class="row"> <!-- end left sidebar container --> <!-- Begin right container --> - <div class="span10"> + <div class="col-md-10"> <div class="page-header"> <h1> <span data-toggle="tooltip" {%if buildrequest.brtarget_set.all.count > 1%}title="Targets: {%for target in buildrequest.brtarget_set.all%}{{target.target}} {%endfor%}"{%endif%}>{{buildrequest.brtarget_set.all.0.target}} {%if buildrequest.brtarget_set.all.count > 1%}(+ {{buildrequest.brtarget_set.all.count|add:"-1"}}){%endif%} {{buildrequest.get_machine}} </span>
@@ -45,7 +45,7 @@ </div> <div class="accordion-body collapse in" id="collapse-errors"> <div class="accordion-inner"> - <div class="span10"> + <div class="col-md-10"> {% for error in buildrequest.brerror_set.all %} <div class="alert alert-error"> ERROR: <div class="air well"><pre>{{error.errmsg}}</pre></div>
@@ -58,7 +58,7 @@ </div> </div> </div> - </div> <!-- end of row-fluid --> + </div> <!-- end of row --> {%endblock%}
bitbake/lib/toaster/toastergui/templates/builds-toastertable.html +1 -1
@@ -13,7 +13,7 @@ {% block pagecontent %} - <div class="row-fluid"> + <div class="row"> {% with mru=mru mrb_type=mrb_type %} {% include 'mrb_section.html' %} {% endwith %}
bitbake/lib/toaster/toastergui/templates/configuration.html +4 -4
@@ -12,14 +12,14 @@ {% block buildinfomain %} <!-- page title --> -<div class="row-fluid span10"> +<div class="row col-md-10"> <div class="page-header"> <h1>Configuration</h1> </div> </div> <!-- configuration table --> -<div class="row-fluid pull-right span10" id="navTab"> +<div class="row pull-right col-md-10" id="navTab"> <ul class="nav nav-pills"> <li class="active"><a href="#">Summary</a></li> <li class=""><a href="{% url 'configvars' build.id %}">BitBake variables</a></li>
@@ -44,7 +44,7 @@ {% endfor %} </ul> </dd> {% endif %} </dl> <h3>Layers</h3> - <div class="span9" style="margin-left:0px;"> + <div class="col-md-9" style="margin-left:0px;"> <table class="table table-bordered table-hover"> <thead> <tr>
@@ -57,7 +57,7 @@ <tr> <td>{{lv.layer.name}}</td> <td>{{lv.branch}}</td> - <td> <a class="btn" data-content="<ul class='unstyled'> + <td> <a class="btn" data-content="<ul class='list-unstyled'> <li>{{lv.commit}}</li> </ul>"> {{lv.commit|truncatechars:13}} </a></td>
bitbake/lib/toaster/toastergui/templates/configvars.html +8 -8
@@ -12,7 +12,7 @@ {% block buildinfomain %} <!-- page title --> -<div class="row-fluid span10"> +<div class="row col-md-10"> <div class="page-header"> <h1> {% if request.GET.filter and objects.paginator.count > 0 or request.GET.search and objects.paginator.count > 0 %}
@@ -27,7 +27,7 @@ </div> <!-- configuration table --> -<div class="row-fluid pull-right span10" id="navTab"> +<div class="row pull-right col-md-10" id="navTab"> <ul class="nav nav-pills"> <li class=""><a href="{% url 'configuration' build.id %}">Summary</a></li> <li class="active"><a href="#" >BitBake variables</a></li>
@@ -37,10 +37,10 @@ <div id="variables" class="tab-pane"> {% if objects.paginator.count == 0 %} - <div class="row-fluid"> + <div class="row"> <div class="alert"> - <form class="no-results input-append" id="searchform"> - <input id="search" name="search" class="input-xxlarge" type="text" value="{% if request.GET.search %}{{request.GET.search}}{% endif %}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="add-on btn" tabindex="-1"><i class="icon-remove"></i></a>{% endif %} + <form class="no-results input-group" id="searchform"> + <input id="search" name="search" class="input-xxlarge" type="text" value="{% if request.GET.search %}{{request.GET.search}}{% endif %}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-group-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{% endif %} <button class="btn" type="submit" value="Search">Search</button> <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all variables</button> </form>
@@ -65,7 +65,7 @@ {% if variable.description %} {{variable.description}} <a href="http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-{{variable.variable_name|variable_parent_name}}" target="_blank"> - <i class="icon-share get-info"></i></a> + <i class="glyphicon glyphicon-share get-info"></i></a> {% endif %} </td> </tr>
@@ -96,10 +96,10 @@ <span>{{variable.variable_value|string_slice:':570'}} <span class="full"> {{variable.variable_value|string_slice:'570:'}} </span> - <a class="btn btn-mini full-show">...</a> + <a class="btn btn-xs full-show">...</a> </span> </p> - <a class="btn btn-mini full-hide">Collapse variable value <i class="icon-caret-up"></i> + <a class="btn btn-xs full-hide">Collapse variable value <i class="icon-caret-up"></i> </a> {% endif %} {% else %}
bitbake/lib/toaster/toastergui/templates/customise_btn.html +1 -1
@@ -10,6 +10,6 @@ style="display:none;" {% endif %} > - <i class="icon-plus"></i> + <i class="glyphicon glyphicon-plus"></i> Add layer </button>
bitbake/lib/toaster/toastergui/templates/customrecipe.html +10 -10
@@ -81,7 +81,7 @@ <!-- end package dependencies modal --> -<div class="row-fluid span11"> +<div class="row col-md-11"> <div class="alert alert-success lead" id="image-created-notification" style="margin-top: 15px; display: none"> <button type="button" data-dismiss="alert" class="close">x</button> Your custom image <strong>{{recipe.name}}</strong> has been created. You can now add or remove packages as needed.
@@ -94,10 +94,10 @@ </div> </div> -<div class="row-fluid span11"> - <div class="span8"> +<div class="row col-md-11"> + <div class="col-md-8"> <div class="button-place btn-group" style="width: 100%"> - <a class="btn btn-large span6 build-custom-image" href="#" style="width: 50%"> + <a class="btn btn-lg col-md-6 build-custom-image" href="#" style="width: 50%"> Build {{recipe.name}} </a> <a href="{% url 'customrecipedownload' project.id recipe.id %}" class="btn btn-large span6" style="width: 50%"
@@ -120,10 +120,10 @@ <li>Build the recipe</li> <li>Once the build completes, come back to this page and search for the package</li> </ol> - <form class="input-append no-results"> + <form class="input-group no-results"> <input type="text" class="input-xlarge no-results-search-input" id="no-results-search-input-{{table_name}}" name="search" placeholder="Search {{title|lower}}" /> - <a href="#" class="add-on btn" id="no-results-remove-search-btn" tabindex="-1"> - <i class="icon-remove"></i> + <a href="#" class="input-group-addon btn" id="no-results-remove-search-btn" tabindex="-1"> + <i class="glyphicon glyphicon-remove"></i> </a> <button class="btn search-submit-{{table_name}}">Search</button> <button class="btn btn-link" id="no-results-show-all-packages">Show all packages</button>
@@ -136,7 +136,7 @@ <h2> Add | Remove packages </h2> <div class="alert alert-info air"> <p class="lead">Toaster has no package information for {{recipe.name}}. To generate package information, build {{recipe.name}}</p> - <button class="btn btn-info btn-large build-custom-image" style="margin:20px 0 10px 0;">Build {{recipe.name}}</button> + <button class="btn btn-info btn-lg build-custom-image" style="margin:20px 0 10px 0;">Build {{recipe.name}}</button> </div> {% else %} {# ToasterTable for Adding remove packages #}
@@ -147,7 +147,7 @@ </div> </div> </div> - <div class="span4 well"> + <div class="col-md-4 well"> <h2 style="margin-bottom:20px;">About {{recipe.name}}</h2> <dl>
@@ -224,7 +224,7 @@ </dd> </dl> <!-- - <i class="icon-trash no-tooltip"></i> + <i class="glyphicon glyphicon-trash no-tooltip"></i> <a href="#" class="error" id="delete">Delete custom image</a> --> </div>
bitbake/lib/toaster/toastergui/templates/detail_search_header.html +6 -6
@@ -18,22 +18,22 @@ $(document).ready(function() { }); }); </script> -<div class="row-fluid"> +<div class="row"> {% if objects.paginator.count > 10 or request.GET.search %} {% if objects.paginator.count == 0 %} <div class="alert"> <h3>No {{search_what}} found</h3> - <form id="searchform" class="input-append"> + <form id="searchform" class="input-group"> {% else %} - <form id="searchform" class="navbar-search input-append pull-left"> + <form id="searchform" class="navbar-search input-group pull-left"> {% endif %} <input id="search" class="input-xlarge" type="text" placeholder="Search {{search_what}}" name="search" value="{% if request.GET.search %}{{request.GET.search}}{% endif %}"> <input type="hidden" value="name:+" name="orderby"> <input type="hidden" value="l" name="page"> {% if request.GET.search %} - <a class="add-on btn search-clear"> - <i class="icon-remove"></i> + <a class="input-group-addon btn search-clear"> + <i class="glyphicon glyphicon-remove"></i> </a> {% endif %} <button type="submit" class="btn">Search</button>
@@ -65,4 +65,4 @@ $(document).ready(function() { </div> {% endif %} {% endif %} -</div> {# row-fluid #} +</div> {# row #}
bitbake/lib/toaster/toastergui/templates/detail_sorted_header.html +1 -1
@@ -17,7 +17,7 @@ <span class="badge badge-info">{{objects.paginator.count}}</span> {% endif %} {%if tc.filter%}<div class="btn-group pull-right"> - <a href="#filter_{{tc.filter.class}}" role="button" class="btn btn-mini {%if request.GET.filter%}{{tc.filter.options|filtered_icon:request.GET.filter}} {%endif%}" {%if request.GET.filter and tc.filter.options|filtered_tooltip:request.GET.filter %} title="<p>{{tc.filter.options|filtered_tooltip:request.GET.filter}}</p><p><a class='btn btn-small btn-primary' href=javascript:reload_params({'filter':''})>Show all {% if filter_search_display %}{{filter_search_display}}{% else %}{{objectname}}{% endif %}</a></p>" {%endif%} data-toggle="modal"> <i class="icon-filter filtered"></i> </a> + <a href="#filter_{{tc.filter.class}}" role="button" class="btn btn-xs {%if request.GET.filter%}{{tc.filter.options|filtered_icon:request.GET.filter}} {%endif%}" {%if request.GET.filter and tc.filter.options|filtered_tooltip:request.GET.filter %} title="<p>{{tc.filter.options|filtered_tooltip:request.GET.filter}}</p><p><a class='btn btn-sm btn-primary' href=javascript:reload_params({'filter':''})>Show all {% if filter_search_display %}{{filter_search_display}}{% else %}{{objectname}}{% endif %}</a></p>" {%endif%} data-toggle="modal"> <i class="glyphicon glyphicon-filter filtered"></i> </a> </div>{%endif%} </th>{% endfor %} </tr>
bitbake/lib/toaster/toastergui/templates/dirinfo.html +3 -3
@@ -110,7 +110,7 @@ namespan = 3; } var colspan = 'colspan="' + namespan + '"'; - name = '<td ' + colspan + '><i class="icon-file"></i>'; + name = '<td ' + colspan + '><i class="glyphicon glyphicon-file"></i>'; } else { name = '<td><i class="icon-hand-right"></i>';
@@ -184,7 +184,7 @@ } </script> -<div class="span10"> +<div class="col-md-10"> <div class="page-header"> <h1> {{target.target}} </h1>
@@ -235,7 +235,7 @@ </tbody> </table> </div> <!-- directory-structure --> -</div> <!-- span10 --> +</div> <!-- col-md-10 --> {% endblock buildinfomain %}
bitbake/lib/toaster/toastergui/templates/filtersnippet.html +2 -2
@@ -33,8 +33,8 @@ {% if option.3 %}<i class="icon-question-sign get-help" data-placement="right" title="{{option.3}}"></i>{% endif %} </label> {% if option.1 == 'daterange' %} - <input type="text" id="date_from_{{key}}" name="date_from_{{key}}" disabled class="input-small" /><label class="help-inline">to</label> - <input type="text" id="date_to_{{key}}" name="date_to_{{key}}" disabled class="input-small" /> + <input type="text" id="date_from_{{key}}" name="date_from_{{key}}" disabled class="input-sm" /><label class="help-inline">to</label> + <input type="text" id="date_to_{{key}}" name="date_to_{{key}}" disabled class="input-sm" /> <label class="help-inline get-help" >(dd/mm/yyyy)</label> </div> {% endif %}
bitbake/lib/toaster/toastergui/templates/importlayer.html +5 -5
@@ -26,7 +26,7 @@ }); </script> - <form class="span11"> + <form class="col-md-11"> <fieldset> <legend>Layer repository information</legend> <span class="help-block">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>
@@ -93,7 +93,7 @@ <span class="icon-question-sign get-help" title="You can provide a Git branch, a tag or a commit SHA as the revision"></span> </label> <div class="controls"> - <input type="text" class="span3" id="layer-git-ref" required> + <input type="text" class="col-md-3" id="layer-git-ref" required> <span class="help-inline" style="diaply:none;" id="invalid-layer-revision-hint"></span> </div> </div>
@@ -108,9 +108,9 @@ <span class="muted">(optional)</span> <span class="icon-question-sign get-help heading-help" title="Other layers this layer depends upon"></span> </legend> - <ul class="unstyled configuration-list" id="layer-deps-list"> + <ul class="list-unstyled configuration-list" id="layer-deps-list"> </ul> - <div class="input-append"> + <div class="input-group"> <input type="text" autocomplete="off" data-minLength="1" data-autocomplete="off" data-provide="typeahead" placeholder="Type a layer name" id="layer-dependency" class="input-xlarge"> <a class="btn" id="add-layer-dependency-btn"> Add layer
@@ -119,7 +119,7 @@ <span class="help-inline">You can only add layers Toaster knows about</span> </fieldset> <div class="air" id="form-actions"> - <button class="btn btn-primary btn-large" data-toggle="modal" id="import-and-add-btn" data-target="#dependencies-message" disabled>Import and add to project</button> + <button class="btn btn-primary btn-lg" data-toggle="modal" id="import-and-add-btn" data-target="#dependencies-message" disabled>Import and add to project</button> <span class="help-inline" id="import-and-add-hint" style="vertical-align: middle;">To import a layer you need to enter a layer name, a Git repository URL and a revision (branch, tag or commit)</span> </div> </div>
bitbake/lib/toaster/toastergui/templates/landing.html +9 -9
@@ -6,19 +6,19 @@ {% block title %} Welcome to Toaster {% endblock %} {% block pagecontent %} - <div class="container-fluid"> - <div class="row-fluid"> - <div class="hero-unit span12 well-transparent"> - <div class="row-fluid"> + <div class="container"> + <div class="row"> + <div class="jumbotron col-md-12 well-transparent"> + <div class="row"> - <div class="span6"> + <div class="col-md-6"> <h1>This is Toaster</h1> <p>A web interface to <a href="http://www.openembedded.org">OpenEmbedded</a> and <a href="http://www.yoctoproject.org/tools-resources/projects/bitbake">BitBake</a>, the <a href="http://www.yoctoproject.org">Yocto Project</a> build system.</p> {% if lvs_nos %} <p class="hero-actions"> - <a class="btn btn-primary btn-large" href="{% url 'newproject' %}"> + <a class="btn btn-primary btn-lg" href="{% url 'newproject' %}"> To start building, create your first Toaster project </a> </p>
@@ -36,7 +36,7 @@ </div> {% endif %} - <ul class="unstyled"> + <ul class="list-unstyled"> <li> <a href="http://www.yoctoproject.org/docs/latest/toaster-manual/toaster-manual.html"> Read the Toaster manual
@@ -51,8 +51,8 @@ </ul> </div> - <div class="span6"> - <img alt="Yocto Project" class="thumbnail" src="{% static 'img/toaster_bw.png' %}"/> + <div class="col-md-6"> + <img alt="Yocto Project" class="img-thumbnail" src="{% static 'img/toaster_bw.png' %}"/> </div> </div>
bitbake/lib/toaster/toastergui/templates/landing_not_managed.html +2 -2
@@ -8,8 +8,8 @@ {% block pagecontent %} - <div class="container-fluid"> - <div class="row-fluid"> + <div class="container"> + <div class="row"> <!-- Empty - no build module --> <div class="page-header top-air"> <h1>
bitbake/lib/toaster/toastergui/templates/layer_btn.html +2 -2
@@ -3,7 +3,7 @@ style="display:none;" {% endif %} > - <i class="icon-trash"></i> + <i class="glyphicon glyphicon-trash"></i> Remove layer </button> <button class="btn btn-block layer-add-{{data.pk}} layerbtn" data-layer='{ "id": {{data.pk}}, "name": "{{data.layer.name}}", "layerdetailurl": "{%url 'layerdetails' extra.pid data.pk%}"}' data-directive="add"
@@ -11,7 +11,7 @@ style="display:none;" {% endif %} > - <i class="icon-plus"></i> + <i class="glyphicon glyphicon-plus"></i> Add layer </button>
bitbake/lib/toaster/toastergui/templates/layerdetails.html +27 -27
159 lines not on this page · raw message
bitbake/lib/toaster/toastergui/templates/machine_btn.html +1 -1
@@ -9,7 +9,7 @@ style="display:none;" {% endif %} > - <i class="icon-plus"></i> + <i class="glyphicon glyphicon-plus"></i> Add layer <i title="" class="icon-question-sign get-help" data-original-title="To enable this machine, you must first add the {{data.layer_version.layer.name}} layer to your project"></i> </button>
bitbake/lib/toaster/toastergui/templates/mrb_section.html +15 -11
@@ -45,8 +45,8 @@ </a> </span> {% endif %} - <div class="row-fluid"> - <div class="span3 lead"> + <div class="row"> + <div class="col-md-3 lead"> {%if build.outcome == build.SUCCEEDED or build.outcome == build.FAILED %} <a href="{%url 'builddashboard' build.pk%}" class="{%if build.outcome == build.SUCCEEDED %}success{%else%}error{%endif%}"> {% endif %}
@@ -79,7 +79,7 @@ {% endif %} </div> {% if build.outcome == build.SUCCEEDED or build.outcome == build.FAILED %} - <div class="span2 lead"> + <div class="col-md-2 lead"> {% if build.completed_on|format_build_date %} {{ build.completed_on|date:'d/m/y H:i' }} {% else %}
@@ -88,12 +88,12 @@ </div> {% endif %} {%if build.outcome == build.SUCCEEDED or build.outcome == build.FAILED %} - <div class="span2 lead"> + <div class="col-md-2 lead"> {% if build.errors.count %} <i class="icon-minus-sign red"></i> <a href="{%url 'builddashboard' build.pk%}#errors" class="error">{{build.errors.count}} error{{build.errors.count|pluralize}}</a> {% endif %} </div> - <div class="span2 lead"> + <div class="col-md-2 lead"> {% if build.warnings.count %} <i class="icon-warning-sign yellow"></i> <a href="{%url 'builddashboard' build.pk%}#warnings" class="warning">{{build.warnings.count}} warning{{build.warnings.count|pluralize}}</a> {% endif %}
@@ -131,15 +131,15 @@ </div> {%endif%} {%if build.outcome == build.IN_PROGRESS %} - <div class="span4" style="display:none" id="cancelling-msg-{{build.buildrequest.pk}}"> + <div class="col-md-4" style="display:none" id="cancelling-msg-{{build.buildrequest.pk}}"> <p class="lead">Cancelling the build ...</p> </div> - <div class="span4 offset1 progress-info"> + <div class="col-md-4 col-md-offset-1 progress-info"> <div class="progress" id="build-pc-done-title-{{build.pk}}" style="margin-top:5px;" data-toggle="tooltip" title="{{build.completeper}}% of tasks complete"> <div id="build-pc-done-bar-{{build.pk}}" style="width: {{build.completeper}}%;" class="bar"></div> </div> </div> - <div class="lead span3 progress-info"><span id="build-pc-done-{{build.pk}}">{{build.completeper}}</span>% of tasks complete</div> + <div class="lead col-md-3 progress-info"><span id="build-pc-done-{{build.pk}}">{{build.completeper}}</span>% of tasks complete</div> {# No build cancel for command line builds project #} {% if build.project.is_default %} <i class="icon-question-sign get-help get-help-blue pull-right" title="" data-original-title="Builds in this project cannot be cancelled from Toaster: they can only be cancelled from the command line"></i>
@@ -156,9 +156,13 @@ {%endif%} {# end if in progress #} {% if build.outcome == build.CANCELLED %} - <div class="span4"> - <p class="lead">Build cancelled</p> - </div> + <div class="col-md-4"> + <p class="lead">Build cancelled</p> + </div> + <button class="btn btn-info pull-right run-again-btn" + data-request-url="{% url 'xhr_buildrequest' build.project.pk %}" + data-target='{{build.target_set.all|get_tasks|json}}'> + Rebuild {% if build.project.is_default %} <i class="icon-question-sign get-help get-help-blue pull-right" title=""
bitbake/lib/toaster/toastergui/templates/newcustomimage_modal.html +3 -3
@@ -12,7 +12,7 @@ }); </script> -<div class="modal hide fade in" id="new-custom-image-modal" aria-hidden="false"> +<div class="modal fade" id="new-custom-image-modal" aria-hidden="false"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h3>New custom image</h3>
@@ -33,8 +33,8 @@ <h4>Name your custom image</h4> - <div class="row-fluid"> - <span class="help-block span8">Image names must be unique. They should not contain spaces or capital letters, and the only allowed special character is dash (-).<p></p> + <div class="row"> + <span class="help-block col-md-8">Image names must be unique. They should not contain spaces or capital letters, and the only allowed special character is dash (-).<p></p> </span></div> <div class="control-group controls"> <input type="text" class="huge" placeholder="Type the custom image name" required>
bitbake/lib/toaster/toastergui/templates/newproject.html +9 -9
@@ -5,18 +5,18 @@ {% block title %} Create a new project - Toaster {% endblock %} {% block pagecontent %} -<div class="row-fluid"> +<div class="row"> <div class="page-header"> <h1>Create a new project</h1> </div> - <div class="container-fluid"> + <div class="container"> {% if alert %} - <div class="alert alert-error row-fluid" role="alert">{{alert}}</div> + <div class="alert alert-error row" role="alert">{{alert}}</div> {% endif %} </div> - <div class="row-fluid"> - <div class="span6"> + <div class="row"> + <div class="col-md-6"> <form method="POST">{% csrf_token %} <fieldset id="validate-project-name">
@@ -54,8 +54,8 @@ {% endfor %} </select> {% for release in releases %} - <div class="row-fluid helptext" id="description-{{release.id}}" style="display: none"> - <span class="help-block span5">{{release.helptext|safe}}</span> + <div class="row helptext" id="description-{{release.id}}" style="display: none"> + <span class="help-block col-md-5">{{release.helptext|safe}}</span> </div> {% endfor %} {% else %}
@@ -65,13 +65,13 @@ {% endif %} <div class="form-actions"> - <input type="submit" id="create-project-button" class="btn btn-primary btn-large" value="Create project"/> + <input type="submit" id="create-project-button" class="btn btn-primary btn-lg" value="Create project"/> <span class="help-inline" style="vertical-align:middle;">To create a project, you need to enter a project name</span> </div> </form> </div> <!-- - <div class="span5 well"> + <div class="col-md-5 well"> <span class="help-block"> <h4>Toaster project types</h4> <p>With a <strong>build project</strong> you configure and run your builds from Toaster.</p>
bitbake/lib/toaster/toastergui/templates/package_built_dependencies.html +2 -2
@@ -31,7 +31,7 @@ <tr> <th>Package</th> <th>Version</th> - <th class="sizecol span2">Size</th> + <th class="sizecol col-md-2">Size</th> </tr> </thead> <tbody>
@@ -62,7 +62,7 @@ <tr> <th>Package</th> <th>Version</th> - <th class="sizecol span2">Size</th> + <th class="sizecol col-md-2">Size</th> <th> <i class="icon-question-sign get-help" title="Five relationship types exist: recommends, suggests, provides, replaces and conflicts"></i> Relationship type
bitbake/lib/toaster/toastergui/templates/package_detail_base.html +6 -6
@@ -43,21 +43,21 @@ {% endblock localbreadcrumb %} {% block pagedetailinfomain %} - <div class="row span11"> + <div class="row col-md-11"> <div class="page-header"> {% block mainheading %} <h1>{{package.fullpackagespec}}</h1> {% endblock %} </div> <!-- page-header --> - </div> <!-- row span11 page-header --> + </div> <!-- row col-md-11 page-header --> {% block twocolumns %} - <div class="row span7 tabbable"> + <div class="row col-md-7 tabbable"> {% block tabcontent %} {% endblock tabcontent %} - </div> <!-- row span7 --> + </div> <!-- row col-md-7 --> - <div class="row span4 well"> + <div class="row col-md-4 well"> <h2>Package information</h2> <!-- info presented as definition list -->
@@ -124,7 +124,7 @@ # Removed per team meeting of 1/29/2014 until # decision on index search algorithm <a href="http://layers.openembedded.org" target="_blank"> - <i class="icon-share get-info"></i> + <i class="glyphicon glyphicon-share get-info"></i> </a> {% endcomment %} {% endif %}
bitbake/lib/toaster/toastergui/templates/package_included_dependencies.html +2 -2
@@ -20,7 +20,7 @@ <tr> <th>Package</th> <th>Version</th> - <th class='sizecol span2'>Size</th> + <th class='sizecol col-md-2'>Size</th> </tr> </thead> <tbody>
@@ -57,7 +57,7 @@ <tr> <th>Package</th> <th>Version</th> - <th class='sizecol span2'>Size</th> + <th class='sizecol col-md-2'>Size</th> <th> <i class="icon-question-sign get-help" title="Five relationship types exist: recommends, suggests, provides, replaces and conflicts"></i> Relationship type
bitbake/lib/toaster/toastergui/templates/pkg_add_rm_btn.html +2 -2
@@ -18,7 +18,7 @@ display:none {% endif %} "> - <i class="icon-trash no-tooltip"></i> + <i class="glyphicon glyphicon-trash no-tooltip"></i> Remove package </button> <button class="btn btn-block add-rm-package-btn" data-directive="add" data-id="{{data.pk}}" data-package-url="{% url 'xhr_customrecipe_packages' extra.recipe_id data.pk %}" data-name="{{data.name}}" style="
@@ -26,7 +26,7 @@ display:none {% endif %} "> - <i class="icon-plus"></i> + <i class="glyphicon glyphicon-plus"></i> Add package </button> </div>
bitbake/lib/toaster/toastergui/templates/project.html +9 -9
@@ -44,19 +44,19 @@ </div--> -<div class="row-fluid" id="project-page" style="display:none"> - <div class="span6"> +<div class="row" id="project-page" style="display:none"> + <div class="col-md-6"> <div class="well well-transparent" id="machine-section"> <h3>Machine</h3> - <p class="lead"><span id="project-machine-name"></span> <i title="" data-original-title="" id="change-machine-toggle" class="icon-pencil"></i></p> + <p class="lead"><span id="project-machine-name"></span> <i title="" data-original-title="" id="change-machine-toggle" class="glyphicon glyphicon-pencil"></i></p> <form id="select-machine-form" style="display:none;"> <div class="alert alert-info"> <strong>Machine changes have a big impact on build outcome.</strong> You cannot really compare the builds for the new machine with the previous ones. </div> - <div class="input-append"> + <div class="input-group"> <input id="machine-change-input" autocomplete="off" value="" data-provide="typeahead" data-minlength="1" data-autocomplete="off" type="text"> <button id="machine-change-btn" class="btn" type="button">Save</button> <a href="#" id="cancel-machine-change" class="btn btn-link">Cancel</a> </div>
@@ -73,7 +73,7 @@ <p style="margin-top: 10px;"><a href="{% url 'projectimagerecipes' project.id %}">Choose a recipe to build</a></p> </div> - <ul class="unstyled configuration-list" id="freq-build-list"> + <ul class="list-unstyled configuration-list" id="freq-build-list"> </ul> <button class="btn btn-primary" id="freq-build-btn" disabled="disabled">Build selected recipes</button> </div>
@@ -85,7 +85,7 @@ <!-- Comment out the ability to change the project release, until we decide what to do with this functionality --> - <!--i title="" data-original-title="" id="release-change-toggle" class="icon-pencil"></i--> + <!--i title="" data-original-title="" id="release-change-toggle" class="glyphicon glyphicon-pencil"></i--> </p> <!-- Comment out the ability to change the project release, until we decide what to do with this functionality -->
@@ -97,7 +97,7 @@ </div> </div> - <div class="span6"> + <div class="col-md-6"> <div class="well well-transparent" id="layer-container"> <h3>Layers <span class="muted counter">(<span id="project-layers-count"></span>)</span> <i data-original-title="OpenEmbedded organises metadata into modules called 'layers'. Layers allow you to isolate different types of customizations from each other. <a href='http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#understanding-and-creating-layers' target='_blank'>More on layers</a>" class="icon-question-sign get-help heading-help" title=""></i>
@@ -116,7 +116,7 @@ <form style="margin-top:20px"> <!--div class="control-group error"--> - <div class="input-append"> + <div class="input-group"> <input id="layer-add-input" autocomplete="off" placeholder="Type a layer name" data-minlength="1" data-autocomplete="off" data-provide="typeahead" data-source="" type="text"> <button id="add-layer-btn" class="btn" disabled>Add</button> </div>
@@ -132,7 +132,7 @@ </p> </form> - <ul class="unstyled configuration-list" id="layers-in-project-list"> + <ul class="list-unstyled configuration-list" id="layers-in-project-list"> </ul> </div> </div>
bitbake/lib/toaster/toastergui/templates/projectbuilds-toastertable.html +1 -1
@@ -16,7 +16,7 @@ {% include "projecttopbar.html" %} - <div class="row-fluid"> + <div class="row"> {% with mru=mru mrb_type=mrb_type %} {% include 'mrb_section.html' %} {% endwith %}
bitbake/lib/toaster/toastergui/templates/projectbuilds.html +3 -3
@@ -39,10 +39,10 @@ {% if objects.paginator.count == 0 %} {% if request.GET.filter or request.GET.search %} - <div class="row-fluid"> + <div class="row"> <div class="alert"> - <form class="no-results input-append" id="searchform"> - <input id="search" name="search" class="input-xxlarge" type="text" value="{{request.GET.search}}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="add-on btn" tabindex="-1"><i class="icon-remove"></i></a>{% endif %} + <form class="no-results input-group" id="searchform"> + <input id="search" name="search" class="input-xxlarge" type="text" value="{{request.GET.search}}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-group-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{% endif %} <button class="btn" type="submit" value="Search">Search</button> <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all builds</button> </form>
bitbake/lib/toaster/toastergui/templates/projectconf.html +24 -24
121 lines not on this page · raw message
bitbake/lib/toaster/toastergui/templates/projecttopbar.html +6 -6
@@ -26,17 +26,17 @@ <h1 id="project-name-container"> <span id="project-name">{{project.name}}</span> - <i class="icon-pencil" data-original-title="" id="project-change-form-toggle" title=""></i> + <i class="glyphicon glyphicon-pencil" data-original-title="" id="project-change-form-toggle" title=""></i> {% if project.is_default %} <i class="icon-question-sign get-help heading-help" title="" data-original-title="This project shows information about the builds you start from the command line while Toaster is running"></i> {% endif %} </h1> <form id="project-name-change-form" style="margin-bottom: 0px; display: none;"> - <div class="input-append" id="validate-project-name"> + <div class="input-group" id="validate-project-name"> <input class="huge input-xxlarge" type="text" id="project-name-change-input" autocomplete="off" value="{{project.name}}"> - <button id="project-name-change-btn" class="btn btn-large" type="button">Save</button> - <a href="#" id="project-name-change-cancel" class="btn btn-large btn-link">Cancel</a> + <button id="project-name-change-btn" class="btn btn-lg" type="button">Save</button> + <a href="#" id="project-name-change-cancel" class="btn btn-lg btn-link">Cancel</a> </div> <p class="help-block error" style="display: none;margin-top: 10px;" id="hint-error-project-name">A project with this name exists. Project names must be unique.</p> </form>
@@ -68,9 +68,9 @@ <li class="pull-right"> <form class="form-inline" style="margin-bottom:0px;"> <i class="icon-question-sign get-help heading-help" data-placement="left" title="" data-original-title="Type the name of one or more recipes you want to build, separated by a space. You can also specify a task by appending a colon and a task name to the recipe name, like so: <code>busybox:clean</code>"></i> - <div class="input-append"> + <div class="input-group"> <input id="build-input" type="text" class="input-xlarge input-lg build-target-input" placeholder="Type the recipe you want to build" autocomplete="off" disabled> - <button id="build-button" class="btn btn-primary btn-large build-button" data-project-id="{{project.id}}" disabled>Build</button> + <button id="build-button" class="btn btn-primary btn-lg build-button" data-project-id="{{project.id}}" disabled>Build</button> </div> </form> </li>
bitbake/lib/toaster/toastergui/templates/recipe.html +3 -3
@@ -12,13 +12,13 @@ <!-- Begin container --> -<div class="row span11"> +<div class="row col-md-11"> <div class="page-header"> <h1>{{object.name}}_{{object.version}}</h1> </div> </div> -<div class="row span7 tabbable"> +<div class="row col-md-7 tabbable"> <ul class="nav nav-pills"> <li class="{{tab_states.1}}"> <a href="#information" data-toggle="tab">
@@ -231,7 +231,7 @@ </div> </div> -<div class="row span4 well"> +<div class="row col-md-4 well"> <h2>About {{object.name}}</h2> <dl class="item-info"> {% if object.summary %}
bitbake/lib/toaster/toastergui/templates/recipe_btn.html +1 -1
@@ -10,7 +10,7 @@ style="display:none;" {% endif %} > - <i class="icon-plus"></i> + <i class="glyphicon glyphicon-plus"></i> Add layer <i title="" class="icon-question-sign get-help" data-original-title="To build this target, you must first add the {{data.layer_version.layer.name}} layer to your project"></i> </button>
bitbake/lib/toaster/toastergui/templates/recipe_packages.html +4 -4
@@ -11,13 +11,13 @@ <!-- Begin container --> -<div class="row-fluid span11"> +<div class="row col-md-11"> <div class="page-header"> <h1>{{recipe.name}}_{{recipe.version}}</h1> </div> </div> -<div class="row-fluid span7 tabbable"> +<div class="row col-md-7 tabbable"> <ul class="nav nav-pills"> <li> <a href="{% url "recipe" build.pk recipe.id "1" %}">
@@ -86,9 +86,9 @@ {% endif %} </div> {# tab-pane #} </div> {# tab-content #} -</div> {# span7 #} +</div> {# col-md-7 #} -<div class="row span4 well"> +<div class="row col-md-4 well"> <h2>About {{recipe.name}}</h2> <dl class="item-info"> {% if recipe.summary %}
bitbake/lib/toaster/toastergui/templates/recipedetails.html +10 -10
@@ -51,7 +51,7 @@ {% include 'newcustomimage_modal.html' %} -<div class="row-fluid span11"> +<div class="row col-md-11"> <div class="alert alert-success lead" id="image-created-notification" style="margin-top: 15px; display: none"> <button type="button" data-dismiss="alert" class="close">x</button> Your custom image <strong>{{recipe.name}}</strong> has been created. You can now add or remove packages as needed.
@@ -64,29 +64,29 @@ </div> </div> -<div class="row-fluid span11"> - <div class="span8"> +<div class="row col-md-11"> + <div class="col-md-8"> <div class="button-place btn-group" id="customise-build-btns" style="width: 100%; {% if not in_project %} display:none; {% endif %}"> - <button class="btn btn-large span6 build-recipe-btn" style="width: 50%"> + <button class="btn btn-lg col-md-6 build-recipe-btn" style="width: 50%"> Build {{recipe.name}} </button> {% if recipe.is_image %} - <button class="btn btn-large span6 customise-btn" data-recipe="{{recipe.pk}}" style="width: 50%"> + <button class="btn btn-lg col-md-6 customise-btn" data-recipe="{{recipe.pk}}" style="width: 50%"> Customise {{recipe.name}} </button> {% endif %} </div> <div class="button-place"> - <button class="btn btn-block btn-large" id="add-layer-btn" + <button class="btn btn-block btn-lg" id="add-layer-btn" style="width:100%; {% if in_project %} display:none; {% endif %}"> - <i class="icon-plus"></i> + <i class="glyphicon glyphicon-plus"></i> Add the {{recipe.layer_version.layer.name}} layer to your project to build or customise this image recipe </button> </div>
@@ -106,7 +106,7 @@ style="display:none" {% endif %} > <p class="lead">Toaster has no package information for {{recipe.name}}. To generate package information, build {{recipe.name}}</p> - <button class="btn btn-info btn-large build-recipe-btn" style="margin:20px 0 10px 0;">Build {{recipe.name}}</button> + <button class="btn btn-info btn-lg build-recipe-btn" style="margin:20px 0 10px 0;">Build {{recipe.name}}</button> </div> <div class="alert alert-info air" id="packages-alert"
@@ -119,7 +119,7 @@ </div> </div> </div> - <div class="span4 well"> + <div class="col-md-4 well"> <h2 style="margin-bottom:20px;">About {{recipe.name}}</h2> <dl> <dt>
@@ -142,7 +142,7 @@ <dt>Recipe file</dt> <dd> <code>{{recipe.file_path|cut_path_prefix:recipe.layer_version.local_path}}</code> - <a href="{{recipe.get_vcs_recipe_file_link_url}}"><i class="icon-share" title="" data-original-title="View recipe file"></i></a> + <a href="{{recipe.get_vcs_recipe_file_link_url}}"><i class="glyphicon glyphicon-share" title="" data-original-title="View recipe file"></i></a> </dd> <dt>Layer</dt> <dd><a href="{% url 'layerdetails' project.id recipe.layer_version.pk %}">{{recipe.layer_version.layer.name}}</a></dd>
bitbake/lib/toaster/toastergui/templates/recipes.html +7 -7
@@ -12,7 +12,7 @@ {% endblock %} {% block buildinfomain %} -<div class="span10"> +<div class="col-md-10"> <div class="page-header"> <h1> {% if request.GET.search and objects.paginator.count > 0 %}
@@ -26,10 +26,10 @@ </div> {% if objects.paginator.count == 0 %} - <div class="row-fluid"> + <div class="row"> <div class="alert"> - <form class="no-results input-append" id="searchform"> - <input id="search" name="search" class="input-xxlarge" type="text" value="{%if request.GET.search%}{{request.GET.search}}{%endif%}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="add-on btn" tabindex="-1"><i class="icon-remove"></i></a>{% endif %} + <form class="no-results input-group" id="searchform"> + <input id="search" name="search" class="input-xxlarge" type="text" value="{%if request.GET.search%}{{request.GET.search}}{%endif%}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-group-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{% endif %} <button class="btn" type="submit" value="Search">Search</button> <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all recipes</button> </form>
@@ -55,7 +55,7 @@ {% if count %} <a class="btn" title="<a href='{% url "recipe" build.pk recipe.pk %}#dependencies'>{{recipe.name}}</a> dependencies" - data-content="<ul class='unstyled'> + data-content="<ul class='list-unstyled'> {% for i in deps|dictsort:"depends_on.name"%} <li><a href='{% url "recipe" build.pk i.depends_on.pk %}'>{{i.depends_on.name}}</a></li> {% endfor %}
@@ -73,7 +73,7 @@ {% if count %} <a class="btn" title="<a href='{% url "recipe" build.pk recipe.pk %}#brought-in-by'>{{recipe.name}}</a> reverse dependencies" - data-content="<ul class='unstyled'> + data-content="<ul class='list-unstyled'> {% for i in revs|dictsort:"recipe.name" %} <li><a href='{% url "recipe" build.pk i.recipe.pk %}'>{{i.recipe.name}}</a></li> {% endfor %}
@@ -97,7 +97,7 @@ <!-- Layer commit --> <td class="layer_version__layer__commit"> <a class="btn" - data-content="<ul class='unstyled'> + data-content="<ul class='list-unstyled'> <li>{{recipe.layer_version.commit}}</li> </ul>"> {{recipe.layer_version.commit|truncatechars:13}}
bitbake/lib/toaster/toastergui/templates/snippets/pkg_dependencies_popover.html +1 -1
@@ -2,7 +2,7 @@ {% with data.package_dependencies_source.all_depends.count as dep_count %} {% load projecttags %} {% if dep_count %} - <a data-content="<ul class='unstyled'> + <a data-content="<ul class='list-unstyled'> {% for dep in data.package_dependencies_source.all_depends %} <li>{{dep.depends_on.name}} {% if dep.depends_on.size > 0 %}({{dep.depends_on.size|filtered_filesizeformat}}){% endif %}</li> {% endfor %}
bitbake/lib/toaster/toastergui/templates/snippets/pkg_revdependencies_popover.html +1 -1
@@ -2,7 +2,7 @@ {% with data.package_dependencies_target.all_depends.count as dep_count %} {% load projecttags %} {% if dep_count %} - <a data-content="<ul class='unstyled'> + <a data-content="<ul class='list-unstyled'> {% for dep in data.package_dependencies_target.all_depends|dictsort:'package.name' %} <li>{{dep.package.name}} {% if dep.package.size > 0 %}({{dep.package.size|filtered_filesizeformat}}){% endif %}</li> {% endfor %}
bitbake/lib/toaster/toastergui/templates/target.html +8 -8
@@ -18,7 +18,7 @@ {% block buildinfomain %} -<div class="row-fluid span10"> +<div class="row col-md-10"> <div class="page-header"> <h1> {% if request.GET.search and objects.paginator.count > 0 %}
@@ -32,7 +32,7 @@ </div> </div> -<div class="row-fluid pull-right span10" id="navTab"> +<div class="row pull-right col-md-10" id="navTab"> <ul class="nav nav-pills"> <li class="active"> <a href="#target">
@@ -51,10 +51,10 @@ <div id="image-packages" class="tab-pane"> {% if objects.paginator.count == 0 %} - <div class="row-fluid"> + <div class="row"> <div class="alert"> - <form class="no-results input-append" id="searchform"> - <input id="search" name="search" class="input-xxlarge" type="text" value="{% if request.GET.search %}{{request.GET.search}}{% endif %}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="add-on btn" tabindex="-1"><i class="icon-remove"></i></a>{% endif %} + <form class="no-results input-group" id="searchform"> + <input id="search" name="search" class="input-xxlarge" type="text" value="{% if request.GET.search %}{{request.GET.search}}{% endif %}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-group-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{% endif %} <button class="btn" type="submit" value="Search">Search</button> <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all packages</button> </form>
@@ -97,7 +97,7 @@ {% if deps_count > 0 %} <a class="btn" title="<a href='{% url "package_included_dependencies" build.id target.id package.id %}'>{{package.name}}</a> dependencies" - data-content="<ul class='unstyled'> + data-content="<ul class='list-unstyled'> {% for i in deps|dictsort:'depends_on.name' %} <li><a href='{% url "package_included_detail" build.pk target.id i.depends_on.pk %}'>{{i.depends_on.name}}</a></li> {% endfor %}
@@ -114,7 +114,7 @@ {% if rdeps_count > 0 %} <a class="btn" title="<a href='{% url "package_included_reverse_dependencies" build.id target.id package.id %}'>{{package.name}}</a> reverse dependencies" - data-content="<ul class='unstyled'> + data-content="<ul class='list-unstyled'> {% for i in rdeps|dictsort:'package.name' %} <li><a href='{% url "package_included_detail" build.id target.id i.package.id %}'>{{i.package.name}}</a></li> {% endfor %}
@@ -147,7 +147,7 @@ </td> <td class="layer_commit"> <a class="btn" - data-content="<ul class='unstyled'> + data-content="<ul class='list-unstyled'> <li>{{package.recipe.layer_version.commit}}</li> </ul>"> {{package.recipe.layer_version.commit|truncatechars:13}}
bitbake/lib/toaster/toastergui/templates/task.html +5 -5
@@ -11,7 +11,7 @@ {% block pagedetailinfomain %} -<div class="row span11"> +<div class="row col-md-11"> <div class="page-header"> <h1><a href="{%url 'recipe' build.pk task.recipe.pk %}">{{task.recipe.name}}_{{task.recipe.version}}</a> {{task.task_name}}</h1> </div>
@@ -24,16 +24,16 @@ {%if task.task_executed %} {# executed tasks outcome #} {% if task.logfile %} - <a class="btn btn-large" href="{% url 'build_artifact' build.id "tasklogfile" task.pk %}" style="margin:15px;">Download task log</a> + <a class="btn btn-lg" href="{% url 'build_artifact' build.id "tasklogfile" task.pk %}" style="margin:15px;">Download task log</a> {% endif %} {# show stack trace for failed task #} {% if task.outcome == task.OUTCOME_FAILED and log_head %} <h3>Python stack trace</h3> <div> <pre style="min-height:160px;"> - <code>{{log_head}}</code><a id="full-trace-show" data-target="#fulltrace" data-toggle="collapse" class="btn btn-mini">...</a> + <code>{{log_head}}</code><a id="full-trace-show" data-target="#fulltrace" data-toggle="collapse" class="btn btn-xs">...</a> <div id="fulltrace" class="collapse" style="margin-top: -20px; height: 0px;"> - <code>{{log_body}}</code><br><a id="full-trace-hide" class="btn btn-mini collapsed" style="font-family:Helvetica Neue" data-target="#fulltrace" data-toggle="collapse">Collapse stack trace<i class="icon-caret-up"></i></a></div></pre> + <code>{{log_body}}</code><br><a id="full-trace-hide" class="btn btn-xs collapsed" style="font-family:Helvetica Neue" data-target="#fulltrace" data-toggle="collapse">Collapse stack trace<i class="icon-caret-up"></i></a></div></pre> </div> {% endif %} {% else %}
@@ -122,7 +122,7 @@ {%elif task.outcome == task.OUTCOME_CACHED%} {% for t in task.get_related_setscene %} {% if forloop.last %} - <a class="btn btn-large" href="{% url 'build_artifact' build.id "tasklogfile" t.pk %}" style="margin:15px;">Download task log</a> + <a class="btn btn-lg" href="{% url 'build_artifact' build.id "tasklogfile" t.pk %}" style="margin:15px;">Download task log</a> {% endif %} {% endfor %}
bitbake/lib/toaster/toastergui/templates/tasks.html +4 -4
@@ -39,7 +39,7 @@ {% endblock %} {% block buildinfomain %} -<div class="span10"> +<div class="col-md-10"> {% if not request.GET.filter and not request.GET.search and not objects.paginator.count %} <!-- Empty - no data in database --> <div class="page-header">
@@ -64,10 +64,10 @@ </div> {% if objects.paginator.count == 0 %} - <div class="row-fluid"> + <div class="row"> <div class="alert"> - <form class="no-results input-append" id="searchform"> - <input id="search" name="search" class="input-xxlarge" type="text" value="{{request.GET.search}}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="add-on btn" tabindex="-1"><i class="icon-remove"></i></a>{% endif %} + <form class="no-results input-group" id="searchform"> + <input id="search" name="search" class="input-xxlarge" type="text" value="{{request.GET.search}}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-group-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{% endif %} <button class="btn" type="submit" value="Search">Search</button> <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all tasks</button> </form>
bitbake/lib/toaster/toastergui/templates/toastertable-simple.html +8 -8
@@ -26,12 +26,12 @@ {% include 'toastertable-filter.html' %} -<div class="row-fluid" id="no-results-{{table_name}}" style="display:none"> +<div class="row" id="no-results-{{table_name}}" style="display:none"> <div class="alert"> - <form class="no-results input-append"> + <form class="no-results input-group"> <input class="input-xlarge" id="new-search-input-{{table_name}}" name="search" type="text" placeholder="Search {{title|lower}}" value="{% if request.GET.search %}{{request.GET.search}}{% endif %}"/> - <a href="#" class="add-on btn remove-search-btn-{{table_name}}" tabindex="-1"> - <i class="icon-remove"></i> + <a href="#" class="input-group-addon btn remove-search-btn-{{table_name}}" tabindex="-1"> + <i class="glyphicon glyphicon-remove"></i> </a> <button class="btn search-submit-{{table_name}}" >Search</button> <button class="btn btn-link remove-search-btn-{{table_name}}">Show {{title|lower}}
@@ -41,12 +41,12 @@ </div> <div id="table-container-{{table_name}}" style="visibility: hidden"> <!-- control header --> - <div class="row-fluid" id="table-chrome-{{table_name}}"> - <div class="navbar-search input-append pull-left"> + <div class="row" id="table-chrome-{{table_name}}"> + <div class="navbar-search input-group pull-left"> <input class="input-xlarge" id="search-input-{{table_name}}" name="search" type="text" placeholder="Search {{title|lower}}" value="{% if request.GET.search %}{{request.GET.search}}{% endif %}"/> - <a href="#" style="display:none" class="add-on btn remove-search-btn-{{table_name}}" tabindex="-1"> - <i class="icon-remove"></i> + <a href="#" style="display:none" class="input-group-addon btn remove-search-btn-{{table_name}}" tabindex="-1"> + <i class="glyphicon glyphicon-remove"></i> </a> <button class="btn" id="search-submit-{{table_name}}" >Search</button> </div>
bitbake/lib/toaster/toastergui/templates/toastertable.html +7 -7
@@ -25,12 +25,12 @@ {% include 'toastertable-filter.html' %} -<div class="row-fluid" id="no-results-{{table_name}}" style="display:none"> +<div class="row" id="no-results-{{table_name}}" style="display:none"> <div class="alert"> - <form class="no-results input-append"> + <form class="no-results input-group"> <input class="input-xxlarge" id="new-search-input-{{table_name}}" name="search" type="text" placeholder="Search {{title|lower}}" value="{%if request.GET.search %}{{request.GET.search}}{%endif%}"/> - <a href="#" class="add-on btn remove-search-btn-{{table_name}}" tabindex="-1"> - <i class="icon-remove"></i> + <a href="#" class="input-group-addon btn remove-search-btn-{{table_name}}" tabindex="-1"> + <i class="glyphicon glyphicon-remove"></i> </a> <button class="btn search-submit-{{table_name}}"> Search
@@ -46,11 +46,11 @@ <!-- control header --> <div class="navbar" id="table-chrome-{{table_name}}"> <div class="navbar-inner"> - <div class="navbar-search input-append pull-left span6"> + <div class="navbar-search input-group pull-left col-md-6"> <input id="search-input-{{table_name}}" name="search" type="text" placeholder="Search {{title|lower}}" value="{%if request.GET.search%}{{request.GET.search}}{%endif%}"/> - <a href="#" style="display:none" class="add-on btn remove-search-btn-{{table_name}}" tabindex="-1"> - <i class="icon-remove"></i> + <a href="#" style="display:none" class="input-group-addon btn remove-search-btn-{{table_name}}" tabindex="-1"> + <i class="glyphicon glyphicon-remove"></i> </a> <button class="btn" id="search-submit-{{table_name}}" >Search</button> </div>
bitbake/lib/toaster/toastergui/templates/unavailable_artifact.html +2 -2
@@ -6,8 +6,8 @@ {% block title %} Build artifact does not exist - Toaster {% endblock %} {% block pagecontent %} - <div class="row-fluid air"> - <div class="alert alert-info span8 lead"> + <div class="row air"> + <div class="alert alert-info col-md-8 lead"> <p>The build artifact you are trying to download does not exist.</p> <p><a href="javascript:window.history.back()">Back to previous page</a></p> </div>
Signature · 1 line
1.9.1
PATCH 3/106 toaster: templates Base add bootstrap-toaster-theme overlay
In reply to Belen Barros PenaFrom: Michael Wood <[email protected]>
This adds the theme for Toaster which is based on the bootstrap2 style
--- bitbake/lib/toaster/toastergui/templates/base.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/toaster/toastergui/templates/base.html +1 -1
@@ -8,7 +8,7 @@ {% block title %} Toaster {% endblock %} </title> <link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}" type="text/css"/> - <link rel="stylesheet" href="{% static 'css/bootstrap-responsive.min.css' %}" type='text/css'/> + <link rel="stylesheet" href="{% static 'css/bootstrap-toaster-theme.min.css' %}" type='text/css'/> <link rel="stylesheet" href="{% static 'css/font-awesome.min.css' %}" type='text/css'/> <link rel="stylesheet" href="{% static 'css/prettify.css' %}" type='text/css'/> <link rel="stylesheet" href="{% static 'css/default.css' %}" type='text/css'/>
Signature · 1 line
1.9.1
PATCH 4/106 toaster: Top bar layout fixes
In reply to Belen Barros PenaFrom: Belen <[email protected]>
This commit creates a bootstrap3-transition.css file to store the changes needed for the Boostrap 3 migration.
The first addition to that css file is some adjustments to the top bar layout.
Also change the .container classes to .container-fluid, since we will be using the Boostrap responsive layout.
--- .../toaster/toastergui/static/css/bootstrap3-transition.css | 13 +++++++++++++ bitbake/lib/toaster/toastergui/templates/base.html | 5 +++-- 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css
bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css new file +13 -0
@@ -0,0 +1,13 @@ +/* Changes to the top bar. Template: base.html */ + +.navbar .brand { + padding: 5px 20px; +} + +.logo { + padding-top: 2px !important; +} + +.navbar .btn-group .btn#new-project-button { + margin-top: 5px; +}
bitbake/lib/toaster/toastergui/templates/base.html +3 -2
@@ -12,6 +12,7 @@ <link rel="stylesheet" href="{% static 'css/font-awesome.min.css' %}" type='text/css'/> <link rel="stylesheet" href="{% static 'css/prettify.css' %}" type='text/css'/> <link rel="stylesheet" href="{% static 'css/default.css' %}" type='text/css'/> + <link rel="stylesheet" href="{% static 'css/bootstrap3-transition.css' %}" type='text/css' /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
@@ -72,7 +73,7 @@ <div class="navbar navbar-fixed-top"> <div class="navbar-inner"> - <div class="container"> + <div class="container-fluid"> <a class="brand logo" href="#"><img src="{% static 'img/logo.png' %}" class="" alt="Yocto logo project"/></a> <span class="brand"> <a href="/">Toaster</a>
@@ -116,7 +117,7 @@ </div> </div> - <div class="container top-padded"> + <div class="container-fluid top-padded"> <div class="row"> {% block pagecontent %} {% endblock %}
Signature · 1 line
1.9.1
PATCH 5/106 toaster: Fix layout of 'All builds' page
In reply to Belen Barros PenaFrom: Belen <[email protected]>
Adapt the layout to the Bootstrap 3 grid rules.
--- .../toaster/toastergui/static/css/bootstrap3-transition.css | 10 ++++++++++ .../lib/toaster/toastergui/templates/builds-toastertable.html | 6 ++++-- bitbake/lib/toaster/toastergui/templates/mrb_section.html | 2 +- bitbake/lib/toaster/toastergui/templates/toastertable.html | 8 ++++---- 4 files changed, 19 insertions(+), 7 deletions(-)
bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +10 -0
@@ -11,3 +11,13 @@ .navbar .btn-group .btn#new-project-button { margin-top: 5px; } + +/* Changes to the tables pagination */ + +.pagination { + margin: 0 0 40px 0; +} + +.pagination-centered { + margin-left: 50%; +}
bitbake/lib/toaster/toastergui/templates/builds-toastertable.html +4 -2
@@ -13,12 +13,14 @@ {% block pagecontent %} - <div class="row"> + <div class="col-md-12"> {% with mru=mru mrb_type=mrb_type %} {% include 'mrb_section.html' %} {% endwith %} - <h1 class="page-header top-air" data-role="page-title"></h1> + <div class="page-header"> + <h1 class="top-air" data-role="page-title"></h1> + </div> {% url 'builds' as xhr_table_url %} {% include 'toastertable.html' %}
bitbake/lib/toaster/toastergui/templates/mrb_section.html +1 -1
@@ -29,7 +29,7 @@ {% endif %} </h2> {% else %} - <div class="page-header top-air"> + <div class="page-header"> <h1> Latest builds </h1>
bitbake/lib/toaster/toastergui/templates/toastertable.html +4 -4
@@ -87,13 +87,13 @@ </table> <!-- Pagination controls --> - <div class="pagination pagination-centered" id="pagination-{{table_name}}"> - <ul class="pagination" style="display: block-inline"> + <div id="pagination-{{table_name}}"> + <ul class="pagination pagination-centered"> </ul> <div class="pull-right"> - <span class="help-inline" style="padding-top:5px;">Show rows:</span> - <select style="margin-top:5px;margin-bottom:0px;" class="pagesize-{{table_name}}"> + <span class="help-inline">Show rows:</span> + <select class="pagesize-{{table_name}}"> {% with "10 25 50 100 150" as list%} {% for i in list.split %} <option value="{{i}}">{{i}}</option>
Signature · 1 line
1.9.1
PATCH 6/106 toaster: Fix layout of 'All projects' page
In reply to Belen Barros PenaFrom: Belen <[email protected]>
Adapt the layout to the Bootstrap 3 grid rules.
--- bitbake/lib/toaster/toastergui/templates/projects-toastertable.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
bitbake/lib/toaster/toastergui/templates/projects-toastertable.html +5 -1
@@ -4,7 +4,9 @@ {% block pagecontent %} - <div class="page-header top-air"> +<div class="col-md-12"> + + <div class="page-header"> <h1 data-role="page-title"></h1> </div>
@@ -33,4 +35,6 @@ }); </script> +</div> + {% endblock %}
Signature · 1 line
1.9.1
PATCH 7/106 toaster: templates Add additional divs for modals in bootstrap3
In reply to Belen Barros PenaFrom: Michael Wood <[email protected]>
- Adds the modal-dialog modal-content divs as per bootstrap 3
- Update modal close handler in table.js after dom tree change
- Remove redundant default.css hack for positioning
- Restore grey footer for modals
--- .../static/css/bootstrap3-transition.css | 5 + .../lib/toaster/toastergui/static/css/default.css | 6 +- .../toastergui/static/html/layer_deps_modal.html | 38 +++---- bitbake/lib/toaster/toastergui/static/js/table.js | 5 +- .../toaster/toastergui/templates/configvars.html | 96 ++++++++--------- .../toaster/toastergui/templates/customrecipe.html | 73 +++++++------ .../toastergui/templates/filtersnippet.html | 113 +++++++++++---------- .../lib/toaster/toastergui/templates/project.html | 39 +++---- .../toastergui/templates/toastertable-filter.html | 32 +++--- 9 files changed, 224 insertions(+), 183 deletions(-)
bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +5 -0
@@ -21,3 +21,8 @@ .pagination-centered { margin-left: 50%; } + +/* Modal dialog */ +.modal-footer { + background-color: #f5f5f5; +}
bitbake/lib/toaster/toastergui/static/css/default.css +4 -2
@@ -48,8 +48,10 @@ dd li { line-height: 25px; } .item-info dd { line-height: 20px; margin-bottom: 10px; } /* Style the filter modal dialogs */ -.modal { width: 800px; margin-left: -400px; } -.modal-footer .btn { float: left; } +.modal-footer .btn { + float: left; + } + .modal-body { max-height: 300px; } /* Hover style for the clear search icon */
bitbake/lib/toaster/toastergui/static/html/layer_deps_modal.html +21 -17
@@ -1,17 +1,21 @@ -<div id="dependencies-modal" class="modal hide fade" tabindex="-1" role="dialog" aria-hidden="false"> - <form id="dependencies-modal-form"> - <div class="modal-header"> - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button> - <h3><span id="title"></span> dependencies</h3> - </div> - <div class="modal-body"> - <p id="body-text"> <strong id="layer-name"></strong> depends on some layers that are not added to your project. Select the ones you want to add:</p> - <ul class="list-unstyled" id="dependencies-list"> - </ul> - </div> - <div class="modal-footer"> - <button class="btn btn-primary" type="submit">Add layers</button> - <button class="btn" type="reset" data-dismiss="modal">Cancel</button> - </div> - </form> -</div> +<div id="dependencies-modal" class="modal fade" tabindex="-1" role="dialog" aria-hidden="false"> + <div class="modal-dialog"> + <div class="modal-content"> + <form id="dependencies-modal-form"> + <div class="modal-header"> + <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button> + <h3><span id="title"></span> dependencies</h3> + </div> + <div class="modal-body"> + <p id="body-text"> <strong id="layer-name"></strong> depends on some layers that are not added to your project. Select the ones you want to add:</p> + <ul class="list-unstyled" id="dependencies-list"> + </ul> + </div> + <div class="modal-footer"> + <button class="btn btn-primary" type="submit">Add layers</button> + <button class="btn" type="reset" data-dismiss="modal">Cancel</button> + </div> + </form> + </div><!-- /.modal-content --> + </div><!-- /.modal-dialog --> +</div><!-- /.modal -->
bitbake/lib/toaster/toastergui/static/js/table.js +3 -2
@@ -602,7 +602,7 @@ function tableInit(ctx){ queryset on the table */ var filterActionRadios = $('#filter-actions-' + ctx.tableName); - var filterApplyBtn = $('[data-role="filter-apply"]'); + var filterApplyBtn = $('[data-cat="filter-apply"]'); var setApplyButtonState = function (e, filterActionValue) { if (filterActionValue !== undefined) {
@@ -769,6 +769,7 @@ function tableInit(ctx){ loadData(tableParams); - $(this).parent().modal('hide'); + + $('#filter-modal-'+ctx.tableName).modal('hide'); }); }
bitbake/lib/toaster/toastergui/templates/configvars.html +50 -46
102 lines not on this page · raw message
bitbake/lib/toaster/toastergui/templates/customrecipe.html +41 -32
83 lines not on this page · raw message
bitbake/lib/toaster/toastergui/templates/filtersnippet.html +60 -53
117 lines not on this page · raw message
bitbake/lib/toaster/toastergui/templates/project.html +22 -17
@@ -24,25 +24,30 @@ }); </script> +{% comment %} <!-- Comment out the ability to change the project release, until we decide what to do this functionality --> +<div id="change-release-modal" class="modal hide fade in" tabindex="-1" role="dialog" aria-labelledby="change-release-modal" aria-hidden="false"> + <div class="modal-dialog"> + <div class="modal-content"> -<!--div id="change-release-modal" class="modal hide fade in" tabindex="-1" role="dialog" aria-labelledby="change-release-modal" aria-hidden="false"> - <div class="modal-header"> - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button> - <h3>Changing Yocto Project release to <span class="proposed-release-change-name"></span></h3> - </div> - <div class="modal-body"> - <p>The following added layers do not exist for <span class="proposed-release-change-name"></span>: </p> - <ul id="layers-to-remove-list"> - </ul> - <p>If you change the Yocto Project release to <span class="proposed-release-change-name"></span>, the above layers will be deleted from your added layers.</p> - </div> - <div class="modal-footer"> - <button id="change-release-and-rm-layers" data-dismiss="modal" type="submit" class="btn btn-primary">Change release and delete layers</button> - <button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button> - </div> -</div--> - + <div class="modal-header"> + <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button> + <h3>Changing Yocto Project release to <span class="proposed-release-change-name"></span></h3> + </div> + <div class="modal-body"> + <p>The following added layers do not exist for <span class="proposed-release-change-name"></span>: </p> + <ul id="layers-to-remove-list"> + </ul> + <p>If you change the Yocto Project release to <span class="proposed-release-change-name"></span>, the above layers will be deleted from your added layers.</p> + </div> + <div class="modal-footer"> + <button id="change-release-and-rm-layers" data-dismiss="modal" type="submit" class="btn btn-primary">Change release and delete layers</button> + <button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button> + </div> + </div><!-- /.modal-content --> + </div><!-- /.modal-dialog --> +</div><!-- /.modal --> +{% endcomment %} <div class="row" id="project-page" style="display:none"> <div class="col-md-6">
bitbake/lib/toaster/toastergui/templates/toastertable-filter.html +18 -14
@@ -1,20 +1,24 @@ <!-- filter modal --> -<div id="filter-modal-{{table_name}}" class="modal hide fade" tabindex="-1" role="dialog" aria-hidden="false"> - <form id="filter-modal-form-{{table_name}}" style="margin-bottom: 0px"> - <div class="modal-header"> - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button> - <h3 id="filter-modal-title-{{table_name}}"> </h3> - </div> - <div class="modal-body"> - <p>Show:</p> - <span id="filter-actions-{{table_name}}"></span> - </div> - <div class="modal-footer"> - <button class="btn btn-primary" type="submit" data-role="filter-apply"> +<div id="filter-modal-{{table_name}}" class="modal fade" tabindex="-1" role="dialog" aria-hidden="false"> + <div class="modal-dialog"> + <div class="modal-content"> + <div class="modal-header"> + <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button> + <h3 id="filter-modal-title-{{table_name}}"> </h3> + </div> + <div class="modal-body"> + <form id="filter-modal-form-{{table_name}}" style="margin-bottom: 0px"> + <p>Show:</p> + <span id="filter-actions-{{table_name}}"></span> + </div> + <div class="modal-footer"> + <button class="btn btn-primary" type="submit" data-role="filter-apply"> Apply - </button> + </button> + </div> + </form> </div> - </form> + </div> </div> <button id="clear-filter-btn-{{table_name}}" style="display:none"></button> <!-- end filter modal -->
Signature · 1 line
1.9.1
PATCH 8/106 toaster: templates Use old style input appends instead of input-group
In reply to Belen Barros PenaFrom: Michael Wood <[email protected]>
The new input-group in bootstrap3 is not analogous to input-append so revert back to using input-append and co.
--- .../lib/toaster/toastergui/templates/basetable_top.html | 4 ++-- bitbake/lib/toaster/toastergui/templates/bpackage.html | 4 ++-- .../lib/toaster/toastergui/templates/configvars.html | 4 ++-- .../lib/toaster/toastergui/templates/customrecipe.html | 8 ++++---- .../toastergui/templates/detail_search_header.html | 6 +++--- .../lib/toaster/toastergui/templates/importlayer.html | 2 +- .../lib/toaster/toastergui/templates/layerdetails.html | 8 ++++---- bitbake/lib/toaster/toastergui/templates/project.html | 12 +++++++----- .../lib/toaster/toastergui/templates/projectbuilds.html | 4 ++-- .../lib/toaster/toastergui/templates/projectconf.html | 10 +++++----- .../lib/toaster/toastergui/templates/projecttopbar.html | 8 ++++---- bitbake/lib/toaster/toastergui/templates/recipes.html | 4 ++-- bitbake/lib/toaster/toastergui/templates/target.html | 4 ++-- bitbake/lib/toaster/toastergui/templates/tasks.html | 4 ++-- .../toastergui/templates/toastertable-simple.html | 8 ++++---- .../lib/toaster/toastergui/templates/toastertable.html | 17 ++++++++++------- 16 files changed, 56 insertions(+), 51 deletions(-)
bitbake/lib/toaster/toastergui/templates/basetable_top.html +2 -2
@@ -161,8 +161,8 @@ <!-- control header --> <div class="navbar"> <div class="navbar-inner"> - <form class="navbar-search input-group pull-left col-md-6" id="searchform"> - <input id="search" name="search" type="text" placeholder="Search {%if object_search_display %}{{object_search_display}}{%else%}{{objectname}}{%endif%}" value="{%if request.GET.search %}{{request.GET.search}}{% endif %}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-group-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{%endif%} + <form class="navbar-search input-append pull-left col-md-6" id="searchform"> + <input id="search" name="search" type="text" placeholder="Search {%if object_search_display %}{{object_search_display}}{%else%}{{objectname}}{%endif%}" value="{%if request.GET.search %}{{request.GET.search}}{% endif %}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-append-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{%endif%} <input type="hidden" name="orderby" value="{{request.GET.orderby}}"> <input type="hidden" name="page" value="1"> <button class="btn" id="search-button" type="submit" value="Search">Search</button>
bitbake/lib/toaster/toastergui/templates/bpackage.html +2 -2
@@ -45,8 +45,8 @@ {% if objects.paginator.count == 0 %} <div class="row"> <div class="alert"> - <form class="no-results input-group" id="searchform"> - <input id="search" name="search" class="input-xxlarge" type="text" value="{{request.GET.search}}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-group-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{% endif %} + <form class="no-results input-append" id="searchform"> + <input id="search" name="search" class="input-xxlarge" type="text" value="{{request.GET.search}}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-append-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{% endif %} <button class="btn" type="submit" value="Search">Search</button> <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all packages</button> </form>
bitbake/lib/toaster/toastergui/templates/configvars.html +2 -2
@@ -39,8 +39,8 @@ {% if objects.paginator.count == 0 %} <div class="row"> <div class="alert"> - <form class="no-results input-group" id="searchform"> - <input id="search" name="search" class="input-xxlarge" type="text" value="{% if request.GET.search %}{{request.GET.search}}{% endif %}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-group-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{% endif %} + <form class="no-results input-append" id="searchform"> + <input id="search" name="search" class="input-xxlarge" type="text" value="{% if request.GET.search %}{{request.GET.search}}{% endif %}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-append-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{% endif %} <button class="btn" type="submit" value="Search">Search</button> <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all variables</button> </form>
bitbake/lib/toaster/toastergui/templates/customrecipe.html +4 -4
@@ -106,7 +106,7 @@ <div class="row col-md-11"> <div class="col-md-8"> <div class="button-place btn-group" style="width: 100%"> - <a class="btn btn-lg col-md-6 build-custom-image" href="#" style="width: 50%"> + <a class="btn btn-large col-md-6 build-custom-image" href="#" style="width: 50%"> Build {{recipe.name}} </a> <a href="{% url 'customrecipedownload' project.id recipe.id %}" class="btn btn-large span6" style="width: 50%"
@@ -129,9 +129,9 @@ <li>Build the recipe</li> <li>Once the build completes, come back to this page and search for the package</li> </ol> - <form class="input-group no-results"> + <form class="input-append no-results"> <input type="text" class="input-xlarge no-results-search-input" id="no-results-search-input-{{table_name}}" name="search" placeholder="Search {{title|lower}}" /> - <a href="#" class="input-group-addon btn" id="no-results-remove-search-btn" tabindex="-1"> + <a href="#" class="input-append-addon btn" id="no-results-remove-search-btn" tabindex="-1"> <i class="glyphicon glyphicon-remove"></i> </a> <button class="btn search-submit-{{table_name}}">Search</button>
@@ -145,7 +145,7 @@ <h2> Add | Remove packages </h2> <div class="alert alert-info air"> <p class="lead">Toaster has no package information for {{recipe.name}}. To generate package information, build {{recipe.name}}</p> - <button class="btn btn-info btn-lg build-custom-image" style="margin:20px 0 10px 0;">Build {{recipe.name}}</button> + <button class="btn btn-info btn-large build-custom-image" style="margin:20px 0 10px 0;">Build {{recipe.name}}</button> </div> {% else %} {# ToasterTable for Adding remove packages #}
bitbake/lib/toaster/toastergui/templates/detail_search_header.html +3 -3
@@ -23,16 +23,16 @@ $(document).ready(function() { {% if objects.paginator.count == 0 %} <div class="alert"> <h3>No {{search_what}} found</h3> - <form id="searchform" class="input-group"> + <form id="searchform" class="input-append"> {% else %} - <form id="searchform" class="navbar-search input-group pull-left"> + <form id="searchform" class="navbar-search input-append pull-left"> {% endif %} <input id="search" class="input-xlarge" type="text" placeholder="Search {{search_what}}" name="search" value="{% if request.GET.search %}{{request.GET.search}}{% endif %}"> <input type="hidden" value="name:+" name="orderby"> <input type="hidden" value="l" name="page"> {% if request.GET.search %} - <a class="input-group-addon btn search-clear"> + <a class="input-append-addon btn search-clear"> <i class="glyphicon glyphicon-remove"></i> </a> {% endif %}
bitbake/lib/toaster/toastergui/templates/importlayer.html +1 -1
@@ -110,7 +110,7 @@ </legend> <ul class="list-unstyled configuration-list" id="layer-deps-list"> </ul> - <div class="input-group"> + <div class="input-append"> <input type="text" autocomplete="off" data-minLength="1" data-autocomplete="off" data-provide="typeahead" placeholder="Type a layer name" id="layer-dependency" class="input-xlarge"> <a class="btn" id="add-layer-dependency-btn"> Add layer
bitbake/lib/toaster/toastergui/templates/layerdetails.html +4 -4
@@ -124,7 +124,7 @@ <a href="{{layerversion.get_vcs_link_url}}/" class="glyphicon glyphicon-share get-info" target="_blank"></a> {% endif %} <form id="change-repo-form" class="control-group" style="display:none"> - <div class="input-group"> + <div class="input-append"> <input type="text" class="input-xlarge" value="{{layerversion.layer.vcs_url}}"> <button data-layer-prop="vcs_url" class="btn change-btn" type="button">Save</button> <a href="#" style="display:none" class="btn btn-link cancel">Cancel</a>
@@ -143,7 +143,7 @@ <a href="{{layerversion.get_vcs_dirpath_link_url}}" class="glyphicon glyphicon-share get-info" target="_blank"></a> {% endif %} <form id="change-subdir-form" style="display:none;"> - <div class="input-group"> + <div class="input-append"> <input type="text" value="{{layerversion.dirpath}}"> <button data-layer-prop="dirpath" class="btn change-btn" type="button">Save</button> <a href="#" style="display:none" class="btn btn-link cancel">Cancel</a>
@@ -159,7 +159,7 @@ <dd> <span class="current-value">{{layerversion.get_vcs_reference}}</span> <form style="display:none;"> - <div class="input-group"> + <div class="input-append"> <input type="text" value="{{layerversion.get_vcs_reference}}"> <button data-layer-prop="commit" class="btn change-btn" type="button">Save</button> <a href="#" style="display:none" class="btn btn-link cancel">Cancel</a>
@@ -180,7 +180,7 @@ </li> {% endfor %} </ul> - <div class="input-group add-deps"> + <div class="input-append add-deps"> <input type="text" autocomplete="off" data-minLength="1" data-autocomplete="off" placeholder="Type a layer name" id="layer-dep-input"> <a class="btn" id="add-layer-dependency-btn" > Add layer
bitbake/lib/toaster/toastergui/templates/project.html +7 -5
@@ -61,7 +61,7 @@ <strong>Machine changes have a big impact on build outcome.</strong> You cannot really compare the builds for the new machine with the previous ones. </div> - <div class="input-group"> + <div class="input-append"> <input id="machine-change-input" autocomplete="off" value="" data-provide="typeahead" data-minlength="1" data-autocomplete="off" type="text"> <button id="machine-change-btn" class="btn" type="button">Save</button> <a href="#" id="cancel-machine-change" class="btn btn-link">Cancel</a> </div>
@@ -121,10 +121,12 @@ <form style="margin-top:20px"> <!--div class="control-group error"--> - <div class="input-group"> - <input id="layer-add-input" autocomplete="off" placeholder="Type a layer name" data-minlength="1" data-autocomplete="off" data-provide="typeahead" data-source="" type="text"> - <button id="add-layer-btn" class="btn" disabled>Add</button> - </div> + <div class="col-lg-ff6"> + <div class="input-append"> + <input id="layer-add-input" autocomplete="off" placeholder="Type a layer name" data-minlength="1" data-autocomplete="off" data-provide="typeahead" data-source="" type="text"> + <button id="add-layer-btn" class="btn" disabled>Add</button> + </div> + </div> <div id="import-alert" class="alert alert-info" style="display:none;"> Toaster does not know about this layer. Please <a href="#">import it</a>
bitbake/lib/toaster/toastergui/templates/projectbuilds.html +2 -2
@@ -41,8 +41,8 @@ {% if request.GET.filter or request.GET.search %} <div class="row"> <div class="alert"> - <form class="no-results input-group" id="searchform"> - <input id="search" name="search" class="input-xxlarge" type="text" value="{{request.GET.search}}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-group-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{% endif %} + <form class="no-results input-append" id="searchform"> + <input id="search" name="search" class="input-xxlarge" type="text" value="{{request.GET.search}}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-append-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{% endif %} <button class="btn" type="submit" value="Search">Search</button> <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all builds</button> </form>
bitbake/lib/toaster/toastergui/templates/projectconf.html +5 -5
@@ -19,7 +19,7 @@ <span id="distro">{{distro}}</span> <i class="glyphicon glyphicon-pencil" id="change-distro-icon"></i> <form id="change-distro-form" style="display:none;"> - <div class="input-group"> + <div class="input-append"> <span id="edit-distro-name-div" class="control-group"> <input type="text" id="new-distro" value="{{distro}}"> <button id="apply-change-distro" class="btn" type="button">Save</button>
@@ -43,7 +43,7 @@ <div class="row"> <span class="help-block col-md-4">To set DL_DIR type the absolute path of the download folder.</span> </div> - <div class="input-group" id="validate-dl_dir"> + <div class="input-append" id="validate-dl_dir"> <input type="text" class="input-xlarge" id="new-dl_dir" placeholder="Type absolute path of the DL_DIR folder"> <button id="apply-change-dl_dir" class="btn" type="button">Save</button> <button id="cancel-change-dl_dir" type="button" class="btn btn-link">Cancel</button>
@@ -90,7 +90,7 @@ <div class="row"> <span class="help-block col-md-4">To set IMAGE_INSTALL_append to more than one package, type the package names separated by a space.</span> </div> - <div class="input-group"> + <div class="input-append"> <input type="text" class="input-xlarge" id="new-image_install" placeholder="Type one or more package names"> <button id="apply-change-image_install" class="btn" type="button">Save</button> <button id="cancel-change-image_install" type="button" class="btn btn-link">Cancel</button>
@@ -147,7 +147,7 @@ <div class="row"> <span class="help-block col-md-4">To set SSTATE_DIR type the absolute path of the download folder.</span> </div> - <div class="input-group" id="validate-sstate_dir"> + <div class="input-append" id="validate-sstate_dir"> <input type="text" class="input-xlarge" id="new-sstate_dir" placeholder="Type absolute path of the SSTATE_DIR folder"> <span class="error">A valid directory name required</span> <button id="apply-change-sstate_dir" class="btn" type="button">Save</button>
@@ -425,7 +425,7 @@ orightml += ' <span id="config_var_value_'+configvars_sorted[i][2]+'"></span>' orightml += ' <i class="glyphicon glyphicon-pencil js-icon-pencil-config_var" x-data="'+configvars_sorted[i][2]+'"></i>' orightml += ' <form id="change-config_var-form_'+configvars_sorted[i][2]+'" style="display:none;">' - orightml += ' <div class="input-group">' + orightml += ' <div class="input-append">' orightml += ' <input type="text" class="input-xlarge js-new-config_var" id="new-config_var_'+configvars_sorted[i][2]+'" value="">' orightml += ' <button class="btn js-apply-change-config_var" type="button" x-data="'+configvars_sorted[i][2]+':'+configvars_sorted[i][0]+'" disabled>Save</button>' orightml += ' <button type="button" class="btn btn-link js-cancel-change-config_var" x-data="'+configvars_sorted[i][2]+'">Cancel</button>'
bitbake/lib/toaster/toastergui/templates/projecttopbar.html +4 -4
@@ -35,7 +35,7 @@ <form id="project-name-change-form" style="margin-bottom: 0px; display: none;"> <div class="input-group" id="validate-project-name"> <input class="huge input-xxlarge" type="text" id="project-name-change-input" autocomplete="off" value="{{project.name}}"> - <button id="project-name-change-btn" class="btn btn-lg" type="button">Save</button> + <button id="project-name-change-btn" class="btn btn-large" type="button">Save</button> <a href="#" id="project-name-change-cancel" class="btn btn-lg btn-link">Cancel</a> </div> <p class="help-block error" style="display: none;margin-top: 10px;" id="hint-error-project-name">A project with this name exists. Project names must be unique.</p>
@@ -68,9 +68,9 @@ <li class="pull-right"> <form class="form-inline" style="margin-bottom:0px;"> <i class="icon-question-sign get-help heading-help" data-placement="left" title="" data-original-title="Type the name of one or more recipes you want to build, separated by a space. You can also specify a task by appending a colon and a task name to the recipe name, like so: <code>busybox:clean</code>"></i> - <div class="input-group"> - <input id="build-input" type="text" class="input-xlarge input-lg build-target-input" placeholder="Type the recipe you want to build" autocomplete="off" disabled> - <button id="build-button" class="btn btn-primary btn-lg build-button" data-project-id="{{project.id}}" disabled>Build</button> + <div class="input-append"> + <input id="build-input" type="text" class="huge input-xlarge build-target-input" placeholder="Type the recipe you want to build" autocomplete="off" disabled> + <button id="build-button" class="btn btn-primary btn-large build-button" data-project-id="{{project.id}}" disabled>Build</button> </div> </form> </li>
bitbake/lib/toaster/toastergui/templates/recipes.html +2 -2
@@ -28,8 +28,8 @@ {% if objects.paginator.count == 0 %} <div class="row"> <div class="alert"> - <form class="no-results input-group" id="searchform"> - <input id="search" name="search" class="input-xxlarge" type="text" value="{%if request.GET.search%}{{request.GET.search}}{%endif%}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-group-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{% endif %} + <form class="no-results input-append" id="searchform"> + <input id="search" name="search" class="input-xxlarge" type="text" value="{%if request.GET.search%}{{request.GET.search}}{%endif%}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-append-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{% endif %} <button class="btn" type="submit" value="Search">Search</button> <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all recipes</button> </form>
bitbake/lib/toaster/toastergui/templates/target.html +2 -2
@@ -53,8 +53,8 @@ {% if objects.paginator.count == 0 %} <div class="row"> <div class="alert"> - <form class="no-results input-group" id="searchform"> - <input id="search" name="search" class="input-xxlarge" type="text" value="{% if request.GET.search %}{{request.GET.search}}{% endif %}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-group-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{% endif %} + <form class="no-results input-append" id="searchform"> + <input id="search" name="search" class="input-xxlarge" type="text" value="{% if request.GET.search %}{{request.GET.search}}{% endif %}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-append-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{% endif %} <button class="btn" type="submit" value="Search">Search</button> <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all packages</button> </form>
bitbake/lib/toaster/toastergui/templates/tasks.html +2 -2
@@ -66,8 +66,8 @@ {% if objects.paginator.count == 0 %} <div class="row"> <div class="alert"> - <form class="no-results input-group" id="searchform"> - <input id="search" name="search" class="input-xxlarge" type="text" value="{{request.GET.search}}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-group-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{% endif %} + <form class="no-results input-append" id="searchform"> + <input id="search" name="search" class="input-xxlarge" type="text" value="{{request.GET.search}}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-append-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{% endif %} <button class="btn" type="submit" value="Search">Search</button> <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all tasks</button> </form>
bitbake/lib/toaster/toastergui/templates/toastertable-simple.html +4 -4
@@ -28,9 +28,9 @@ <div class="row" id="no-results-{{table_name}}" style="display:none"> <div class="alert"> - <form class="no-results input-group"> + <form class="no-results input-append"> <input class="input-xlarge" id="new-search-input-{{table_name}}" name="search" type="text" placeholder="Search {{title|lower}}" value="{% if request.GET.search %}{{request.GET.search}}{% endif %}"/> - <a href="#" class="input-group-addon btn remove-search-btn-{{table_name}}" tabindex="-1"> + <a href="#" class="input-append-addon btn remove-search-btn-{{table_name}}" tabindex="-1"> <i class="glyphicon glyphicon-remove"></i> </a> <button class="btn search-submit-{{table_name}}" >Search</button>
@@ -42,10 +42,10 @@ <div id="table-container-{{table_name}}" style="visibility: hidden"> <!-- control header --> <div class="row" id="table-chrome-{{table_name}}"> - <div class="navbar-search input-group pull-left"> + <div class="navbar-search input-append pull-left"> <input class="input-xlarge" id="search-input-{{table_name}}" name="search" type="text" placeholder="Search {{title|lower}}" value="{% if request.GET.search %}{{request.GET.search}}{% endif %}"/> - <a href="#" style="display:none" class="input-group-addon btn remove-search-btn-{{table_name}}" tabindex="-1"> + <a href="#" style="display:none" class="input-append-addon btn remove-search-btn-{{table_name}}" tabindex="-1"> <i class="glyphicon glyphicon-remove"></i> </a> <button class="btn" id="search-submit-{{table_name}}" >Search</button>
bitbake/lib/toaster/toastergui/templates/toastertable.html +10 -7
@@ -27,9 +27,9 @@ <div class="row" id="no-results-{{table_name}}" style="display:none"> <div class="alert"> - <form class="no-results input-group"> + <form class="no-results input-append"> <input class="input-xxlarge" id="new-search-input-{{table_name}}" name="search" type="text" placeholder="Search {{title|lower}}" value="{%if request.GET.search %}{{request.GET.search}}{%endif%}"/> - <a href="#" class="input-group-addon btn remove-search-btn-{{table_name}}" tabindex="-1"> + <a href="#" class="input-append-addon btn remove-search-btn-{{table_name}}" tabindex="-1"> <i class="glyphicon glyphicon-remove"></i> </a> <button class="btn search-submit-{{table_name}}">
@@ -46,13 +46,16 @@ <!-- control header --> <div class="navbar" id="table-chrome-{{table_name}}"> <div class="navbar-inner"> - <div class="navbar-search input-group pull-left col-md-6"> - - <input id="search-input-{{table_name}}" name="search" type="text" placeholder="Search {{title|lower}}" value="{%if request.GET.search%}{{request.GET.search}}{%endif%}"/> - <a href="#" style="display:none" class="input-group-addon btn remove-search-btn-{{table_name}}" tabindex="-1"> + <div class="navbar-search pull-left"> + <div class="input-append"> + <input id="search-input-{{table_name}}" class="input-xxlarge" name="search" type="text" placeholder="Search {{title|lower}}" value="{%if request.GET.search%}{{request.GET.search}}{%endif%}"/> + <a href="#" style="display:none" class="input-append-addon btn remove-search-btn-{{table_name}}" tabindex="-1"> <i class="glyphicon glyphicon-remove"></i> </a> + <span class="input-append-btn"> <button class="btn" id="search-submit-{{table_name}}" >Search</button> + </span> + </div> </div> <div class="pull-right">
@@ -88,7 +91,7 @@ <!-- Pagination controls --> <div id="pagination-{{table_name}}"> - <ul class="pagination pagination-centered"> + <ul class="pagination"> </ul> <div class="pull-right">
Signature · 1 line
1.9.1
PATCH 9/106 toaster: bootstrap3-transition Remove top margin on New project button
In reply to Belen Barros PenaFrom: Michael Wood <[email protected]>
--- bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css | 4 ---- 1 file changed, 4 deletions(-)
bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +0 -4
@@ -8,10 +8,6 @@ padding-top: 2px !important; } -.navbar .btn-group .btn#new-project-button { - margin-top: 5px; -} - /* Changes to the tables pagination */ .pagination {
Signature · 1 line
1.9.1
PATCH 10/106 toaster: default.css Remove 80% width for search as this is no longer needed
In reply to Belen Barros PenaFrom: Michael Wood <[email protected]>
Deprecated by the bootstrap theme.
--- bitbake/lib/toaster/toastergui/static/css/default.css | 1 - 1 file changed, 1 deletion(-)
bitbake/lib/toaster/toastergui/static/css/default.css +0 -1
@@ -116,7 +116,6 @@ th > a, th > span { font-weight: normal; } /* Styles for the navbar actions */ .btn-group + .btn-group { margin-right: 10px; } .navbar-inner > .btn-group { margin-top: 6px; } -[id^="search-input-"], #search { width: 80%; } /* Styles for the parent item in the left navigation */
Signature · 1 line
1.9.1
PATCH 11/106 toaster: migrate typeahead library
In reply to Belen Barros PenaFrom: Michael Wood <[email protected]>
Migrate from Bootstrap 2's built-in typeahead to Twitter's typeahead library.
This is to facilitate moving to Bootstrap 3, which doesn't have a typeahead.
--- bitbake/LICENSE | 2 + .../lib/toaster/toastergui/static/css/default.css | 19 ++++ .../lib/toaster/toastergui/static/js/libtoaster.js | 124 +++++++++------------ .../toastergui/static/js/typeahead.jquery.min.js | 7 ++ bitbake/lib/toaster/toastergui/templates/base.html | 2 + 5 files changed, 85 insertions(+), 69 deletions(-) create mode 100644 bitbake/lib/toaster/toastergui/static/js/typeahead.jquery.min.js
bitbake/LICENSE +2 -0
@@ -8,4 +8,6 @@ Foundation and individual contributors. * Twitter Bootstrap (including Glyphicons), redistributed under the MIT license * jQuery is redistributed under the MIT license. +* Twitter typeahead.js redistributed under the MIT license. + * QUnit is redistributed under the MIT license.
bitbake/lib/toaster/toastergui/static/css/default.css +19 -0
@@ -342,3 +342,22 @@ input.input-lg { line-height: 1.33333; padding: 10px 16px; } + +/* styling for standalone typeahead library */ +.tt-menu { + margin-top: 2px; + border-radius: 4px; + width: 100%; +} + +.tt-suggestion { + cursor: pointer; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; +} + +.tt-suggestion.active { + background-color: #0081c2; + color: white; +}
bitbake/lib/toaster/toastergui/static/js/libtoaster.js +55 -69
151 lines not on this page · raw message
bitbake/lib/toaster/toastergui/static/js/typeahead.jquery.min.js new file +7 -0
@@ -0,0 +1,7 @@ +/*! + * typeahead.js 0.11.1 + * https://github.com/twitter/typeahead.js + * Copyright 2013-2015 Twitter, Inc. and other contributors; Licensed MIT + */ + +!function(a,b){"function"==typeof define&&define.amd?define("typeahead.js",["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){var b=function(){"use strict";return{isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]:!1},isBlankString:function(a){return!a||/^\s*$/.test(a)},escapeRegExChars:function(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(a){return"string"==typeof a},isNumber:function(a){return"number"==typeof a},isArray:a.isArray,isFunction:a.isFunction,isObject:a.isPlainObject,isUndefined:function(a){return"undefined"==typeof a},isElement:function(a){return!(!a||1!==a.nodeType)},isJQuery:function(b){return b instanceof a},toStr:function(a){return b.isUndefined(a)||null===a?"":a+""},bind:a.proxy,each:function(b,c){function d(a,b){return c(b,a)}a.each(b,d)},map:a.map,filter:a.grep,every:function(b,c){var d=!0;return b?(a.each(b,function(a,e){return(d=c.call(null,e,a,b))?void 0:!1}),!!d):d},some:function(b,c){var d=!1;return b?(a.each(b,function(a,e){return(d=c.call(null,e,a,b))?!1:void 0}),!!d):d},mixin:a.extend,identity:function(a){return a},clone:function(b){return a.extend(!0,{},b)},getIdGenerator:function(){var a=0;return function(){return a++}},templatify:function(b){function c(){return String(b)}return a.isFunction(b)?b:c},defer:function(a){setTimeout(a,0)},debounce:function(a,b,c){var d,e;return function(){var f,g,h=this,i=arguments;return f=function(){d=null,c||(e=a.apply(h,i))},g=c&&!d,clearTimeout(d),d=setTimeout(f,b),g&&(e=a.apply(h,i)),e}},throttle:function(a,b){var c,d,e,f,g,h;return g=0,h=function(){g=new Date,e=null,f=a.apply(c,d)},function(){var i=new Date,j=b-(i-g);return c=this,d=arguments,0>=j?(clearTimeout(e),e=null,g=i,f=a.apply(c,d)):e||(e=setTimeout(h,j)),f}},stringify:function(a){return b.isString(a)?a:JSON.stringify(a)},noop:function(){}}}(),c=function(){"use strict";function a(a){var g,h;return h=b.mixin({},f,a),g={css:e(),classes:h,html:c(h),selectors:d(h)},{css:g.css,html:g.html,classes:g.classes,selectors:g.selectors,mixin:function(a){b.mixin(a,g)}}}function c(a){return{wrapper:'<span class="'+a.wrapper+'"></span>',menu:'<div class="'+a.menu+'"></div>'}}function d(a){var c={};return b.each(a,function(a,b){c[b]="."+a}),c}function e(){var a={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},menu:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};return b.isMsie()&&b.mixin(a.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),a}var f={wrapper:"twitter-typeahead",input:"tt-input",hint:"tt-hint",menu:"tt-menu",dataset:"tt-dataset",suggestion:"tt-suggestion",selectable:"tt-selectable",empty:"tt-empty",open:"tt-open",cursor:"tt-cursor",highlight:"tt-highlight"};return a}(),d=function(){"use strict";function c(b){b&&b.el||a.error("EventBus initialized without el"),this.$el=a(b.el)}var d,e;return d="typeahead:",e={render:"rendered",cursorchange:"cursorchanged",select:"selected",autocomplete:"autocompleted"},b.mixin(c.prototype,{_trigger:function(b,c){var e;return e=a.Event(d+b),(c=c||[]).unshift(e),this.$el.trigger.apply(this.$el,c),e},before:function(a){var b,c;return b=[].slice.call(arguments,1),c=this._trigger("before"+a,b),c.isDefaultPrevented()},trigger:function(a){var b;this._trigger(a,[].slice.call(arguments,1)),(b=e[a])&&this._trigger(b,[].slice.call(arguments,1))}}),c}(),e=function(){"use strict";function a(a,b,c,d){var e;if(!c)return this;for(b=b.split(i),c=d?h(c,d):c,this._callbacks=this._callbacks||{};e=b.shift();)this._callbacks[e]=this._callbacks[e]||{sync:[],async:[]},this._callbacks[e][a].push(c);return this}function b(b,c,d){return a.call(this,"async",b,c,d)}function c(b,c,d){return a.call(this,"sync",b,c,d)}function d(a){var b;if(!this._callbacks)return this;for(a=a.split(i);b=a.shift();)delete this._callbacks[b];return this}function e(a){var b,c,d,e,g;if(!this._callbacks)return this;for(a=a.split(i),d=[].slice.call(arguments,1);(b=a.shift())&&(c=this._callbacks[b]);)e=f(c.sync,this,[b].concat(d)),g=f(c.async,this,[b].concat(d)),e()&&j(g);return this}function f(a,b,c){function d(){for(var d,e=0,f=a.length;!d&&f>e;e+=1)d=a[e].apply(b,c)===!1;return!d}return d}function g(){var a;return a=window.setImmediate?function(a){setImmediate(function(){a()})}:function(a){setTimeout(function(){a()},0)}}function h(a,b){return a.bind?a.bind(b):function(){a.apply(b,[].slice.call(arguments,0))}}var i=/\s+/,j=g();return{onSync:c,onAsync:b,off:d,trigger:e}}(),f=function(a){"use strict";function c(a,c,d){for(var e,f=[],g=0,h=a.length;h>g;g++)f.push(b.escapeRegExChars(a[g]));return e=d?"\\b("+f.join("|")+")\\b":"("+f.join("|")+")",c?new RegExp(e):new RegExp(e,"i")}var d={node:null,pattern:null,tagName:"strong",className:null,wordsOnly:!1,caseSensitive:!1};return function(e){function f(b){var c,d,f;return(c=h.exec(b.data))&&(f=a.createElement(e.tagName),e.className&&(f.className=e.className),d=b.splitText(c.index),d.splitText(c[0].length),f.appendChild(d.cloneNode(!0)),b.parentNode.replaceChild(f,d)),!!c}function g(a,b){for(var c,d=3,e=0;e<a.childNodes.length;e++)c=a.childNodes[e],c.nodeType===d?e+=b(c)?1:0:g(c,b)}var h;e=b.mixin({},d,e),e.node&&e.pattern&&(e.pattern=b.isArray(e.pattern)?e.pattern:[e.pattern],h=c(e.pattern,e.caseSensitive,e.wordsOnly),g(e.node,f))}}(window.document),g=function(){"use strict";function c(c,e){c=c||{},c.input||a.error("input is missing"),e.mixin(this),this.$hint=a(c.hint),this.$input=a(c.input),this.query=this.$input.val(),this.queryWhenFocused=this.hasFocus()?this.query:null,this.$overflowHelper=d(this.$input),this._checkLanguageDirection(),0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=b.noop)}function d(b){return a('<pre aria-hidden="true"></pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:b.css("font-family"),fontSize:b.css("font-size"),fontStyle:b.css("font-style"),fontVariant:b.css("font-variant"),fontWeight:b.css("font-weight"),wordSpacing:b.css("word-spacing"),letterSpacing:b.css("letter-spacing"),textIndent:b.css("text-indent"),textRendering:b.css("text-rendering"),textTransform:b.css("text-transform")}).insertAfter(b)}function f(a,b){return c.normalizeQuery(a)===c.normalizeQuery(b)}function g(a){return a.altKey||a.ctrlKey||a.metaKey||a.shiftKey}var h;return h={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"},c.normalizeQuery=function(a){return b.toStr(a).replace(/^\s*/g,"").replace(/\s{2,}/g," ")},b.mixin(c.prototype,e,{_onBlur:function(){this.resetInputValue(),this.trigger("blurred")},_onFocus:function(){this.queryWhenFocused=this.query,this.trigger("focused")},_onKeydown:function(a){var b=h[a.which||a.keyCode];this._managePreventDefault(b,a),b&&this._shouldTrigger(b,a)&&this.trigger(b+"Keyed",a)},_onInput:function(){this._setQuery(this.getInputValue()),this.clearHintIfInvalid(),this._checkLanguageDirection()},_managePreventDefault:function(a,b){var c;switch(a){case"up":case"down":c=!g(b);break;default:c=!1}c&&b.preventDefault()},_shouldTrigger:function(a,b){var c;switch(a){case"tab":c=!g(b);break;default:c=!0}return c},_checkLanguageDirection:function(){var a=(this.$input.css("direction")||"ltr").toLowerCase();this.dir!==a&&(this.dir=a,this.$hint.attr("dir",a),this.trigger("langDirChanged",a))},_setQuery:function(a,b){var c,d;c=f(a,this.query),d=c?this.query.length!==a.length:!1,this.query=a,b||c?!b&&d&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},bind:function(){var a,c,d,e,f=this;return a=b.bind(this._onBlur,this),c=b.bind(this._onFocus,this),d=b.bind(this._onKeydown,this),e=b.bind(this._onInput,this),this.$input.on("blur.tt",a).on("focus.tt",c).on("keydown.tt",d),!b.isMsie()||b.isMsie()>9?this.$input.on("input.tt",e):this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",function(a){h[a.which||a.keyCode]||b.defer(b.bind(f._onInput,f,a))}),this},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getLangDir:function(){return this.dir},getQuery:function(){return this.query||""},setQuery:function(a,b){this.setInputValue(a),this._setQuery(a,b)},hasQueryChangedSinceLastFocus:function(){return this.query!==this.queryWhenFocused},getInputValue:function(){return this.$input.val()},setInputValue:function(a){this.$input.val(a),this.clearHintIfInvalid(),this._checkLanguageDirection()},resetInputValue:function(){this.setInputValue(this.query)},getHint:function(){return this.$hint.val()},setHint:function(a){this.$hint.val(a)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var a,b,c,d;a=this.getInputValue(),b=this.getHint(),c=a!==b&&0===b.indexOf(a),d=""!==a&&c&&!this.hasOverflow(),!d&&this.clearHint()},hasFocus:function(){return this.$input.is(":focus")},hasOverflow:function(){var a=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=a},isCursorAtEnd:function(){var a,c,d;return a=this.$input.val().length,c=this.$input[0].selectionStart,b.isNumber(c)?c===a:document.selection?(d=document.selection.createRange(),d.moveStart("character",-a),a===d.text.length):!0},destroy:function(){this.$hint.off(".tt"),this.$input.off(".tt"),this.$overflowHelper.remove(),this.$hint=this.$input=this.$overflowHelper=a("<div>")}}),c}(),h=function(){"use strict";function c(c,e){c=c||{},c.templates=c.templates||{},c.templates.notFound=c.templates.notFound||c.templates.empty,c.source||a.error("missing source"),c.node||a.error("missing node"),c.name&&!h(c.name)&&a.error("invalid dataset name: "+c.name),e.mixin(this),this.highlight=!!c.highlight,this.name=c.name||j(),this.limit=c.limit||5,this.displayFn=d(c.display||c.displayKey),this.templates=g(c.templates,this.displayFn),this.source=c.source.__ttAdapter?c.source.__ttAdapter():c.source,this.async=b.isUndefined(c.async)?this.source.length>2:!!c.async,this._resetLastSuggestion(),this.$el=a(c.node).addClass(this.classes.dataset).addClass(this.classes.dataset+"-"+this.name)}function d(a){function c(b){return b[a]}return a=a||b.stringify,b.isFunction(a)?a:c}function g(c,d){function e(b){return a("<div>").text(d(b))}return{notFound:c.notFound&&b.templatify(c.notFound),pending:c.pending&&b.templatify(c.pending),header:c.header&&b.templatify(c.header),footer:c.footer&&b.templatify(c.footer),suggestion:c.suggestion||e}}function h(a){return/^[_a-zA-Z0-9-]+$/.test(a)}var i,j;return i={val:"tt-selectable-display",obj:"tt-selectable-object"},j=b.getIdGenerator(),c.extractData=function(b){var c=a(b);return c.data(i.obj)?{val:c.data(i.val)||"",obj:c.data(i.obj)||null}:null},b.mixin(c.prototype,e,{_overwrite:function(a,b){b=b||[],b.length?this._renderSuggestions(a,b):this.async&&this.templates.pending?this._renderPending(a):!this.async&&this.templates.notFound?this._renderNotFound(a):this._empty(),this.trigger("rendered",this.name,b,!1)},_append:function(a,b){b=b||[],b.length&&this.$lastSuggestion.length?this._appendSuggestions(a,b):b.length?this._renderSuggestions(a,b):!this.$lastSuggestion.length&&this.templates.notFound&&this._renderNotFound(a),this.trigger("rendered",this.name,b,!0)},_renderSuggestions:function(a,b){var c;c=this._getSuggestionsFragment(a,b),this.$lastSuggestion=c.children().last(),this.$el.html(c).prepend(this._getHeader(a,b)).append(this._getFooter(a,b))},_appendSuggestions:function(a,b){var c,d;c=this._getSuggestionsFragment(a,b),d=c.children().last(),this.$lastSuggestion.after(c),this.$lastSuggestion=d},_renderPending:function(a){var b=this.templates.pending;this._resetLastSuggestion(),b&&this.$el.html(b({query:a,dataset:this.name}))},_renderNotFound:function(a){var b=this.templates.notFound;this._resetLastSuggestion(),b&&this.$el.html(b({query:a,dataset:this.name}))},_empty:function(){this.$el.empty(),this._resetLastSuggestion()},_getSuggestionsFragment:function(c,d){var e,g=this;return e=document.createDocumentFragment(),b.each(d,function(b){var d,f;f=g._injectQuery(c,b),d=a(g.templates.suggestion(f)).data(i.obj,b).data(i.val,g.displayFn(b)).addClass(g.classes.suggestion+" "+g.classes.selectable),e.appendChild(d[0])}),this.highlight&&f({className:this.classes.highlight,node:e,pattern:c}),a(e)},_getFooter:function(a,b){return this.templates.footer?this.templates.footer({query:a,suggestions:b,dataset:this.name}):null},_getHeader:function(a,b){return this.templates.header?this.templates.header({query:a,suggestions:b,dataset:this.name}):null},_resetLastSuggestion:function(){this.$lastSuggestion=a()},_injectQuery:function(a,c){return b.isObject(c)?b.mixin({_query:a},c):c},update:function(b){function c(a){g||(g=!0,a=(a||[]).slice(0,e.limit),h=a.length,e._overwrite(b,a),h<e.limit&&e.async&&e.trigger("asyncRequested",b))}function d(c){c=c||[],!f&&h<e.limit&&(e.cancel=a.noop,h+=c.length,e._append(b,c.slice(0,e.limit-h)),e.async&&e.trigger("asyncReceived",b))}var e=this,f=!1,g=!1,h=0;this.cancel(),this.cancel=function(){f=!0,e.cancel=a.noop,e.async&&e.trigger("asyncCanceled",b)},this.source(b,c,d),!g&&c([])},cancel:a.noop,clear:function(){this._empty(),this.cancel(),this.trigger("cleared")},isEmpty:function(){return this.$el.is(":empty")},destroy:function(){this.$el=a("<div>")}}),c}(),i=function(){"use strict";function c(c,d){function e(b){var c=f.$node.find(b.node).first();return b.node=c.length?c:a("<div>").appendTo(f.$node),new h(b,d)}var f=this;c=c||{},c.node||a.error("node is required"),d.mixin(this),this.$node=a(c.node),this.query=null,this.datasets=b.map(c.datasets,e)}return b.mixin(c.prototype,e,{_onSelectableClick:function(b){this.trigger("selectableClicked",a(b.currentTarget))},_onRendered:function(a,b,c,d){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty()),this.trigger("datasetRendered",b,c,d)},_onCleared:function(){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty()),this.trigger("datasetCleared")},_propagate:function(){this.trigger.apply(this,arguments)},_allDatasetsEmpty:function(){function a(a){return a.isEmpty()}return b.every(this.datasets,a)},_getSelectables:function(){return this.$node.find(this.selectors.selectable)},_removeCursor:function(){var a=this.getActiveSelectable();a&&a.removeClass(this.classes.cursor)},_ensureVisible:function(a){var b,c,d,e;b=a.position().top,c=b+a.outerHeight(!0),d=this.$node.scrollTop(),e=this.$node.height()+parseInt(this.$node.css("paddingTop"),10)+parseInt(this.$node.css("paddingBottom"),10),0>b?this.$node.scrollTop(d+b):c>e&&this.$node.scrollTop(d+(c-e))},bind:function(){var a,c=this;return a=b.bind(this._onSelectableClick,this),this.$node.on("click.tt",this.selectors.selectable,a),b.each(this.datasets,function(a){a.onSync("asyncRequested",c._propagate,c).onSync("asyncCanceled",c._propagate,c).onSync("asyncReceived",c._propagate,c).onSync("rendered",c._onRendered,c).onSync("cleared",c._onCleared,c)}),this},isOpen:function(){return this.$node.hasClass(this.classes.open)},open:function(){this.$node.addClass(this.classes.open)},close:function(){this.$node.removeClass(this.classes.open),this._removeCursor()},setLanguageDirection:function(a){this.$node.attr("dir",a)},selectableRelativeToCursor:function(a){var b,c,d,e;return c=this.getActiveSelectable(),b=this._getSelectables(),d=c?b.index(c):-1,e=d+a,e=(e+1)%(b.length+1)-1,e=-1>e?b.length-1:e,-1===e?null:b.eq(e)},setCursor:function(a){this._removeCursor(),(a=a&&a.first())&&(a.addClass(this.classes.cursor),this._ensureVisible(a))},getSelectableData:function(a){return a&&a.length?h.extractData(a):null},getActiveSelectable:function(){var a=this._getSelectables().filter(this.selectors.cursor).first();return a.length?a:null},getTopSelectable:function(){var a=this._getSelectables().first();return a.length?a:null},update:function(a){function c(b){b.update(a)}var d=a!==this.query;return d&&(this.query=a,b.each(this.datasets,c)),d},empty:function(){function a(a){a.clear()}b.each(this.datasets,a),this.query=null,this.$node.addClass(this.classes.empty)},destroy:function(){function c(a){a.destroy()}this.$node.off(".tt"),this.$node=a("<div>"),b.each(this.datasets,c)}}),c}(),j=function(){"use strict";function a(){i.apply(this,[].slice.call(arguments,0))}var c=i.prototype;return b.mixin(a.prototype,i.prototype,{open:function(){return!this._allDatasetsEmpty()&&this._show(),c.open.apply(this,[].slice.call(arguments,0))},close:function(){return this._hide(),c.close.apply(this,[].slice.call(arguments,0))},_onRendered:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),c._onRendered.apply(this,[].slice.call(arguments,0))},_onCleared:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),c._onCleared.apply(this,[].slice.call(arguments,0))},setLanguageDirection:function(a){return this.$node.css("ltr"===a?this.css.ltr:this.css.rtl),c.setLanguageDirection.apply(this,[].slice.call(arguments,0))},_hide:function(){this.$node.hide()},_show:function(){this.$node.css("display","block")}}),a}(),k=function(){"use strict";function c(c,e){var f,g,h,i,j,k,l,m,n,o,p;c=c||{},c.input||a.error("missing input"),c.menu||a.error("missing menu"),c.eventBus||a.error("missing event bus"),e.mixin(this),this.eventBus=c.eventBus,this.minLength=b.isNumber(c.minLength)?c.minLength:1,this.input=c.input,this.menu=c.menu,this.enabled=!0,this.active=!1,this.input.hasFocus()&&this.activate(),this.dir=this.input.getLangDir(),this._hacks(),this.menu.bind().onSync("selectableClicked",this._onSelectableClicked,this).onSync("asyncRequested",this._onAsyncRequested,this).onSync("asyncCanceled",this._onAsyncCanceled,this).onSync("asyncReceived",this._onAsyncReceived,this).onSync("datasetRendered",this._onDatasetRendered,this).onSync("datasetCleared",this._onDatasetCleared,this),f=d(this,"activate","open","_onFocused"),g=d(this,"deactivate","_onBlurred"),h=d(this,"isActive","isOpen","_onEnterKeyed"),i=d(this,"isActive","isOpen","_onTabKeyed"),j=d(this,"isActive","_onEscKeyed"),k=d(this,"isActive","open","_onUpKeyed"),l=d(this,"isActive","open","_onDownKeyed"),m=d(this,"isActive","isOpen","_onLeftKeyed"),n=d(this,"isActive","isOpen","_onRightKeyed"),o=d(this,"_openIfActive","_onQueryChanged"),p=d(this,"_openIfActive","_onWhitespaceChanged"),this.input.bind().onSync("focused",f,this).onSync("blurred",g,this).onSync("enterKeyed",h,this).onSync("tabKeyed",i,this).onSync("escKeyed",j,this).onSync("upKeyed",k,this).onSync("downKeyed",l,this).onSync("leftKeyed",m,this).onSync("rightKeyed",n,this).onSync("queryChanged",o,this).onSync("whitespaceChanged",p,this).onSync("langDirChanged",this._onLangDirChanged,this)}function d(a){var c=[].slice.call(arguments,1);return function(){var d=[].slice.call(arguments);b.each(c,function(b){return a[b].apply(a,d)})}}return b.mixin(c.prototype,{_hacks:function(){var c,d;c=this.input.$input||a("<div>"),d=this.menu.$node||a("<div>"),c.on("blur.tt",function(a){var e,f,g;e=document.activeElement,f=d.is(e),g=d.has(e).length>0,b.isMsie()&&(f||g)&&(a.preventDefault(),a.stopImmediatePropagation(),b.defer(function(){c.focus()}))}),d.on("mousedown.tt",function(a){a.preventDefault()})},_onSelectableClicked:function(a,b){this.select(b)},_onDatasetCleared:function(){this._updateHint()},_onDatasetRendered:function(a,b,c,d){this._updateHint(),this.eventBus.trigger("render",c,d,b)},_onAsyncRequested:function(a,b,c){this.eventBus.trigger("asyncrequest",c,b)},_onAsyncCanceled:function(a,b,c){this.eventBus.trigger("asynccancel",c,b)},_onAsyncReceived:function(a,b,c){this.eventBus.trigger("asyncreceive",c,b)},_onFocused:function(){this._minLengthMet()&&this.menu.update(this.input.getQuery())},_onBlurred:function(){this.input.hasQueryChangedSinceLastFocus()&&this.eventBus.trigger("change",this.input.getQuery())},_onEnterKeyed:function(a,b){var c;(c=this.menu.getActiveSelectable())&&this.select(c)&&b.preventDefault()},_onTabKeyed:function(a,b){var c;(c=this.menu.getActiveSelectable())?this.select(c)&&b.preventDefault():(c=this.menu.getTopSelectable())&&this.autocomplete(c)&&b.preventDefault()},_onEscKeyed:function(){this.close()},_onUpKeyed:function(){this.moveCursor(-1)},_onDownKeyed:function(){this.moveCursor(1)},_onLeftKeyed:function(){"rtl"===this.dir&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onRightKeyed:function(){"ltr"===this.dir&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onQueryChanged:function(a,b){this._minLengthMet(b)?this.menu.update(b):this.menu.empty()},_onWhitespaceChanged:function(){this._updateHint()},_onLangDirChanged:function(a,b){this.dir!==b&&(this.dir=b,this.menu.setLanguageDirection(b))},_openIfActive:function(){this.isActive()&&this.open()},_minLengthMet:function(a){return a=b.isString(a)?a:this.input.getQuery()||"",a.length>=this.minLength},_updateHint:function(){var a,c,d,e,f,h,i;a=this.menu.getTopSelectable(),c=this.menu.getSelectableData(a),d=this.input.getInputValue(),!c||b.isBlankString(d)||this.input.hasOverflow()?this.input.clearHint():(e=g.normalizeQuery(d),f=b.escapeRegExChars(e),h=new RegExp("^(?:"+f+")(.+$)","i"),i=h.exec(c.val),i&&this.input.setHint(d+i[1]))},isEnabled:function(){return this.enabled},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},isActive:function(){return this.active},activate:function(){return this.isActive()?!0:!this.isEnabled()||this.eventBus.before("active")?!1:(this.active=!0,this.eventBus.trigger("active"),!0)},deactivate:function(){return this.isActive()?this.eventBus.before("idle")?!1:(this.active=!1,this.close(),this.eventBus.trigger("idle"),!0):!0},isOpen:function(){return this.menu.isOpen()},open:function(){return this.isOpen()||this.eventBus.before("open")||(this.menu.open(),this._updateHint(),this.eventBus.trigger("open")),this.isOpen()},close:function(){return this.isOpen()&&!this.eventBus.before("close")&&(this.menu.close(),this.input.clearHint(),this.input.resetInputValue(),this.eventBus.trigger("close")),!this.isOpen()},setVal:function(a){this.input.setQuery(b.toStr(a))},getVal:function(){return this.input.getQuery()},select:function(a){var b=this.menu.getSelectableData(a);return b&&!this.eventBus.before("select",b.obj)?(this.input.setQuery(b.val,!0),this.eventBus.trigger("select",b.obj),this.close(),!0):!1},autocomplete:function(a){var b,c,d;return b=this.input.getQuery(),c=this.menu.getSelectableData(a),d=c&&b!==c.val,d&&!this.eventBus.before("autocomplete",c.obj)?(this.input.setQuery(c.val),this.eventBus.trigger("autocomplete",c.obj),!0):!1},moveCursor:function(a){var b,c,d,e,f;return b=this.input.getQuery(),c=this.menu.selectableRelativeToCursor(a),d=this.menu.getSelectableData(c),e=d?d.obj:null,f=this._minLengthMet()&&this.menu.update(b),f||this.eventBus.before("cursorchange",e)?!1:(this.menu.setCursor(c),d?this.input.setInputValue(d.val):(this.input.resetInputValue(),this._updateHint()),this.eventBus.trigger("cursorchange",e),!0)},destroy:function(){this.input.destroy(),this.menu.destroy()}}),c}();!function(){"use strict";function e(b,c){b.each(function(){var b,d=a(this);(b=d.data(p.typeahead))&&c(b,d)})}function f(a,b){return a.clone().addClass(b.classes.hint).removeData().css(b.css.hint).css(l(a)).prop("readonly",!0).removeAttr("id name placeholder required").attr({autocomplete:"off",spellcheck:"false",tabindex:-1})}function h(a,b){a.data(p.attrs,{dir:a.attr("dir"),autocomplete:a.attr("autocomplete"),spellcheck:a.attr("spellcheck"),style:a.attr("style")}),a.addClass(b.classes.input).attr({autocomplete:"off",spellcheck:!1});try{!a.attr("dir")&&a.attr("dir","auto")}catch(c){}return a}function l(a){return{backgroundAttachment:a.css("background-attachment"),backgroundClip:a.css("background-clip"),backgroundColor:a.css("background-color"),backgroundImage:a.css("background-image"),backgroundOrigin:a.css("background-origin"),backgroundPosition:a.css("background-position"),backgroundRepeat:a.css("background-repeat"),backgroundSize:a.css("background-size")}}function m(a){var c,d;c=a.data(p.www),d=a.parent().filter(c.selectors.wrapper),b.each(a.data(p.attrs),function(c,d){b.isUndefined(c)?a.removeAttr(d):a.attr(d,c)}),a.removeData(p.typeahead).removeData(p.www).removeData(p.attr).removeClass(c.classes.input),d.length&&(a.detach().insertAfter(d),d.remove())}function n(c){var d,e;return d=b.isJQuery(c)||b.isElement(c),e=d?a(c).first():[],e.length?e:null}var o,p,q;o=a.fn.typeahead,p={www:"tt-www",attrs:"tt-attrs",typeahead:"tt-typeahead"},q={initialize:function(e,l){function m(){var c,m,q,r,s,t,u,v,w,x,y;b.each(l,function(a){a.highlight=!!e.highlight}),c=a(this),m=a(o.html.wrapper),q=n(e.hint),r=n(e.menu),s=e.hint!==!1&&!q,t=e.menu!==!1&&!r,s&&(q=f(c,o)),t&&(r=a(o.html.menu).css(o.css.menu)),q&&q.val(""),c=h(c,o),(s||t)&&(m.css(o.css.wrapper),c.css(s?o.css.input:o.css.inputWithNoHint),c.wrap(m).parent().prepend(s?q:null).append(t?r:null)),y=t?j:i,u=new d({el:c}),v=new g({hint:q,input:c},o),w=new y({node:r,datasets:l},o),x=new k({input:v,menu:w,eventBus:u,minLength:e.minLength},o),c.data(p.www,o),c.data(p.typeahead,x)}var o;return l=b.isArray(l)?l:[].slice.call(arguments,1),e=e||{},o=c(e.classNames),this.each(m)},isEnabled:function(){var a;return e(this.first(),function(b){a=b.isEnabled()}),a},enable:function(){return e(this,function(a){a.enable()}),this},disable:function(){return e(this,function(a){a.disable()}),this},isActive:function(){var a;return e(this.first(),function(b){a=b.isActive()}),a},activate:function(){return e(this,function(a){a.activate()}),this},deactivate:function(){return e(this,function(a){a.deactivate()}),this},isOpen:function(){var a;return e(this.first(),function(b){a=b.isOpen()}),a},open:function(){return e(this,function(a){a.open()}),this},close:function(){return e(this,function(a){a.close()}),this},select:function(b){var c=!1,d=a(b);return e(this.first(),function(a){c=a.select(d)}),c},autocomplete:function(b){var c=!1,d=a(b);return e(this.first(),function(a){c=a.autocomplete(d)}),c},moveCursor:function(a){var b=!1;return e(this.first(),function(c){b=c.moveCursor(a)}),b},val:function(a){var b;return arguments.length?(e(this,function(b){b.setVal(a)}),this):(e(this.first(),function(a){b=a.getVal()}),b)},destroy:function(){return e(this,function(a,b){m(b),a.destroy()}),this}},a.fn.typeahead=function(a){return q[a]?q[a].apply(this,[].slice.call(arguments,1)):q.initialize.apply(this,arguments)},a.fn.typeahead.noConflict=function(){return a.fn.typeahead=o,this}}()});
bitbake/lib/toaster/toastergui/templates/base.html +2 -0
@@ -22,6 +22,8 @@ </script> <script src="{% static 'js/bootstrap.min.js' %}"> </script> + <script src="{% static 'js/typeahead.jquery.min.js' %}"> + </script> <script src="{% static 'js/prettify.js' %}"> </script> <script src="{% static 'js/libtoaster.js' %}">
Signature · 1 line
1.9.1
PATCH 12/106 toaster: Layout fixes for project configuration
In reply to Belen Barros PenaFix the layout and the lists of layers and targets in the project configuration page.
--- .../static/css/bootstrap3-transition.css | 10 +++++ .../toastergui/templates/baseprojectpage.html | 34 +++++++------- .../toastergui/templates/projecttopbar.html | 52 +++++++++++----------- 3 files changed, 53 insertions(+), 43 deletions(-)
bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +10 -0
@@ -22,3 +22,13 @@ .modal-footer { background-color: #f5f5f5; } + +/* Project configuration page */ + +ul.configuration-list { + margin-left: 0px; +} + +.configuration-list .checkbox { + margin-top: 0; +}
bitbake/lib/toaster/toastergui/templates/baseprojectpage.html +16 -18
@@ -21,24 +21,22 @@ }); </script> -<div class="row"> - <!-- only on config pages --> - <div id="config-nav" class="col-md-2"> - <ul class="nav nav-list well"> - <li><a class="nav-parent" href="{% url 'project' project.id %}">Configuration</a></li> - <li class="nav-header">Compatible metadata</li> - <li><a href="{% url 'projectcustomimages' project.id %}">Custom images</a></li> - <li><a href="{% url 'projectimagerecipes' project.id %}">Image recipes</a></li> - <li><a href="{% url 'projectsoftwarerecipes' project.id %}">Software recipes</a></li> - <li><a href="{% url 'projectmachines' project.id %}">Machines</a></li> - <li><a href="{% url 'projectlayers' project.id %}">Layers</a></li> - <li class="nav-header">Extra configuration</li> - <li><a href="{% url 'projectconf' project.id %}">BitBake variables</a></li> - </ul> - </div> - <div class="col-md-10"> - {% block projectinfomain %}{% endblock %} - </div> +<!-- only on config pages --> +<div id="config-nav" class="col-md-2"> + <ul class="nav nav-list well"> + <li><a class="nav-parent" href="{% url 'project' project.id %}">Configuration</a></li> + <li class="nav-header">Compatible metadata</li> + <li><a href="{% url 'projectcustomimages' project.id %}">Custom images</a></li> + <li><a href="{% url 'projectimagerecipes' project.id %}">Image recipes</a></li> + <li><a href="{% url 'projectsoftwarerecipes' project.id %}">Software recipes</a></li> + <li><a href="{% url 'projectmachines' project.id %}">Machines</a></li> + <li><a href="{% url 'projectlayers' project.id %}">Layers</a></li> + <li class="nav-header">Extra configuration</li> + <li><a href="{% url 'projectconf' project.id %}">BitBake variables</a></li> + </ul> +</div> +<div class="col-md-10"> + {% block projectinfomain %}{% endblock %} </div> {% endblock %}
bitbake/lib/toaster/toastergui/templates/projecttopbar.html +27 -25
76 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH 13/106 toaster: Fix toaster table footer controls
In reply to Belen Barros PenaCenter the pagination controls, and align vertically the label and select controls of the "Show rows" menu.
--- bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css | 4 ++++ bitbake/lib/toaster/toastergui/templates/toastertable.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-)
bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +4 -0
@@ -18,6 +18,10 @@ margin-left: 50%; } +select[class^="pagesize-"]{ + margin-bottom: 0; +} + /* Modal dialog */ .modal-footer { background-color: #f5f5f5;
bitbake/lib/toaster/toastergui/templates/toastertable.html +1 -1
@@ -91,7 +91,7 @@ <!-- Pagination controls --> <div id="pagination-{{table_name}}"> - <ul class="pagination"> + <ul class="pagination pagination-centered"> </ul> <div class="pull-right">
Signature · 1 line
1.9.1
PATCH 14/106 toaster: Fix layout of 'project builds' page
In reply to Belen Barros PenaSet the content within a 12-column row.
--- .../lib/toaster/toastergui/templates/projectbuilds-toastertable.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/toaster/toastergui/templates/projectbuilds-toastertable.html +1 -1
@@ -16,7 +16,7 @@ {% include "projecttopbar.html" %} - <div class="row"> + <div class="col-md-12"> {% with mru=mru mrb_type=mrb_type %} {% include 'mrb_section.html' %} {% endwith %}
Signature · 1 line
1.9.1
PATCH 15/106 toaster: small changes to 'import layer' page
In reply to Belen Barros PenaMake the import button big, and match the content of the help text to the labeling in the page.
--- bitbake/lib/toaster/toastergui/templates/importlayer.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
bitbake/lib/toaster/toastergui/templates/importlayer.html +2 -2
@@ -119,8 +119,8 @@ <span class="help-inline">You can only add layers Toaster knows about</span> </fieldset> <div class="air" id="form-actions"> - <button class="btn btn-primary btn-lg" data-toggle="modal" id="import-and-add-btn" data-target="#dependencies-message" disabled>Import and add to project</button> - <span class="help-inline" id="import-and-add-hint" style="vertical-align: middle;">To import a layer you need to enter a layer name, a Git repository URL and a revision (branch, tag or commit)</span> + <button class="btn btn-primary btn-large" data-toggle="modal" id="import-and-add-btn" data-target="#dependencies-message" disabled>Import and add to project</button> + <span class="help-inline" id="import-and-add-hint" style="vertical-align: middle;">To import a layer you need to enter a layer name, a Git repository URL and a Git revision (branch, tag or commit)</span> </div> </div> </form>
Signature · 1 line
1.9.1
PATCH 16/106 toaster: Remove hovering from disabled buttons
In reply to Belen Barros PenaOur primary buttons colour was changing when you hovered over them, creating a hovering effect. Remove the colour change, since disabled components should not hover.
--- .../toastergui/static/css/bootstrap3-transition.css | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +15 -0
@@ -36,3 +36,18 @@ ul.configuration-list { .configuration-list .checkbox { margin-top: 0; } + +/* Remove the hovering from the .btn-primary buttons when they are disabled */ + +.btn-primary.disabled.focus, +.btn-primary.disabled:focus, +.btn-primary.disabled:hover, +.btn-primary.focus[disabled], +.btn-primary[disabled]:focus, +.btn-primary[disabled]:hover, +fieldset[disabled] .btn-primary.focus, +fieldset[disabled] .btn-primary:focus, +fieldset[disabled] .btn-primary:hover { + background-color: #04c; + border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); +}
Signature · 1 line
1.9.1
PATCH 17/106 toaster: Fix layout in "new custom image" page
In reply to Belen Barros PenaWrap the table in a div with the correct class to provide appropriate side whitespace to the content.
--- bitbake/lib/toaster/toastergui/templates/newcustomimage.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
bitbake/lib/toaster/toastergui/templates/newcustomimage.html +5 -3
@@ -7,8 +7,10 @@ {% include "newcustomimage_modal.html" %} {% include "projecttopbar.html" %} -{% url table_name project.id as xhr_table_url %} -<h2>{{title}} (<span class="table-count-{{table_name}}">0</span>)</h2> -{% include "toastertable.html" %} +<div class="col-md-12"> + {% url table_name project.id as xhr_table_url %} + <h2>{{title}} (<span class="table-count-{{table_name}}">0</span>)</h2> + {% include "toastertable.html" %} +</div> {% endblock %}
Signature · 1 line
1.9.1
PATCH 18/106 toaster: table.js Fix the edit columns drop down
In reply to Belen Barros PenaFrom: Michael Wood <[email protected]>
The input checkbox needed to be before the label text.
--- bitbake/lib/toaster/toastergui/static/js/table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/toaster/toastergui/static/js/table.js +1 -1
@@ -251,7 +251,7 @@ function tableInit(ctx){ tableHeadRow.append(header); /* Now setup the checkbox state and click handler */ - var toggler = $('<li><label class="checkbox">'+col.title+'<input type="checkbox" id="checkbox-'+ col.field_name +'" class="col-toggle" value="'+col.field_name+'" /></label></li>'); + var toggler = $('<li><label class="checkbox"><input type="checkbox" id="checkbox-'+ col.field_name +'" class="col-toggle" value="'+col.field_name+'" />'+col.title+'</label></li>'); var togglerInput = toggler.find("input");
Signature · 1 line
1.9.1
PATCH 19/106 toaster: templates Use old style icon classes
In reply to Belen Barros PenaFrom: Michael Wood <[email protected]>
Stick with the old style icons as we customise these with font-awesome.
--- .../toaster/toastergui/static/js/layerdetails.js | 8 ++++---- .../lib/toaster/toastergui/static/js/libtoaster.js | 4 ++-- .../toaster/toastergui/templates/customrecipe.html | 2 +- .../toaster/toastergui/templates/layer_btn.html | 2 +- .../toaster/toastergui/templates/layerdetails.html | 24 +++++++++++----------- .../toastergui/templates/pkg_add_rm_btn.html | 2 +- .../lib/toaster/toastergui/templates/project.html | 4 ++-- .../toaster/toastergui/templates/projectconf.html | 18 ++++++++-------- .../toastergui/templates/projecttopbar.html | 2 +- 9 files changed, 33 insertions(+), 33 deletions(-)
bitbake/lib/toaster/toastergui/static/js/layerdetails.js +4 -4
@@ -98,7 +98,7 @@ function layerDetailsPageInit (ctx) { }); }); - $(".glyphicon glyphicon-pencil").click(function (){ + $(".icon-pencil").click(function (){ var mParent = $(this).parent("dd"); mParent.prev().css("margin-top", "10px"); mParent.children("form").slideDown();
@@ -134,7 +134,7 @@ function layerDetailsPageInit (ctx) { mParent.children(".delete-current-value").show(); } - mParent.children(".glyphicon glyphicon-pencil").show(); + mParent.children(".icon-pencil").show(); mParent.prev().css("margin-top", "0px"); }); });
@@ -387,9 +387,9 @@ function layerDetailsPageInit (ctx) { }); - layerDepsList.find(".glyphicon glyphicon-trash").click(layerDepRemoveClick); + layerDepsList.find(".icon-trash").click(layerDepRemoveClick); layerDepsList.find("a").tooltip(); - $(".glyphicon glyphicon-trash").tooltip(); + $(".icon-trash").tooltip(); $(".commit").tooltip(); }
bitbake/lib/toaster/toastergui/static/js/libtoaster.js +2 -2
@@ -557,8 +557,8 @@ $(document).ready(function() { // show task type and outcome in task details pages $(".task-info").tooltip({ container: 'body', html: true, delay: {show: 200}, placement: 'right' }); - // initialise the tooltips for the glyphicon glyphicon-pencil icons - $(".glyphicon glyphicon-pencil").tooltip({ container: 'body', html: true, delay: {show: 400}, title: "Change" }); + // initialise the tooltips for the icon-pencil icons + $(".icon-pencil").tooltip({ container: 'body', html: true, delay: {show: 400}, title: "Change" }); // initialise the tooltips for the download icons $(".icon-download-alt").tooltip({ container: 'body', html: true, delay: { show: 200 } });
bitbake/lib/toaster/toastergui/templates/customrecipe.html +1 -1
@@ -233,7 +233,7 @@ </dd> </dl> <!-- - <i class="glyphicon glyphicon-trash no-tooltip"></i> + <i class="icon-trash no-tooltip"></i> <a href="#" class="error" id="delete">Delete custom image</a> --> </div>
bitbake/lib/toaster/toastergui/templates/layer_btn.html +1 -1
@@ -3,7 +3,7 @@ style="display:none;" {% endif %} > - <i class="glyphicon glyphicon-trash"></i> + <i class="icon-trash"></i> Remove layer </button> <button class="btn btn-block layer-add-{{data.pk}} layerbtn" data-layer='{ "id": {{data.pk}}, "name": "{{data.layer.name}}", "layerdetailurl": "{%url 'layerdetails' extra.pid data.pk%}"}' data-directive="add"
bitbake/lib/toaster/toastergui/templates/layerdetails.html +12 -12
@@ -24,13 +24,13 @@ {# If this is not an imported layer then hide the edit ui #} {% if not layerversion.layer_source_id or layerversion.layer_source.sourcetype != layerversion.layer_source.TYPE_IMPORTED %} <style scoped> - .glyphicon glyphicon-pencil { + .icon-pencil { display:none; } .delete-current-value{ display: none; } - li .glyphicon glyphicon-trash { + li .icon-trash { display:none; } .add-deps {
@@ -105,7 +105,7 @@ </button> {% else %} <button id="add-remove-layer-btn" data-directive="remove" class="btn btn-block btn-lg btn-danger"> - <span class="glyphicon glyphicon-trash"></span> + <span class="icon-trash"></span> Remove the {{layerversion.layer.name}} layer from your project </button> {% endif %}
@@ -130,7 +130,7 @@ <a href="#" style="display:none" class="btn btn-link cancel">Cancel</a> </div> </form> - <i class="glyphicon glyphicon-pencil" ></i> + <i class="icon-pencil" ></i> </dd> <dt> <i class="icon-question-sign get-help" title="Subdirectory within the repository where the layer is located, if not in the root (usually only used if the repository contains more than one layer)"></i>
@@ -149,8 +149,8 @@ <a href="#" style="display:none" class="btn btn-link cancel">Cancel</a> </div> </form> - <i id="change-subdir" class="glyphicon glyphicon-pencil"></i> - <span class="glyphicon glyphicon-trash delete-current-value" data-toggle="tooltip" title="Delete"></span> + <i id="change-subdir" class="icon-pencil"></i> + <span class="icon-trash delete-current-value" data-toggle="tooltip" title="Delete"></span> </dd> <dt> <i class="icon-question-sign get-help" title="The Git branch, tag or commit"></i>
@@ -165,7 +165,7 @@ <a href="#" style="display:none" class="btn btn-link cancel">Cancel</a> </div> </form> - <i class="glyphicon glyphicon-pencil"></i> + <i class="icon-pencil"></i> </dd> <dt> <i class="icon-question-sign get-help" title="Other layers this layer depends upon"></i>
@@ -176,7 +176,7 @@ {% for ld in layerversion.dependencies.all %} <li data-layer-id="{{ld.depends_on.id}}"> <a data-toggle="tooltip" title="{{ld.depends_on.layer.vcs_url}} | {{ld.depends_on.get_vcs_reference}}" href="{% url 'layerdetails' project.id ld.depends_on.id %}">{{ld.depends_on.layer.name}}</a> - <span class="glyphicon glyphicon-trash " data-toggle="tooltip" title="Delete"></span> + <span class="icon-trash " data-toggle="tooltip" title="Delete"></span> </li> {% endfor %} </ul>
@@ -244,8 +244,8 @@ <button class="btn change-btn" data-layer-prop="summary" type="button">Save</button> <a href="#" class="btn btn-link cancel">Cancel</a> </form> - <i class="glyphicon glyphicon-pencil"></i> - <span class="glyphicon glyphicon-trash delete-current-value" data-toggle="tooltip" title="Delete"></span> + <i class="icon-pencil"></i> + <span class="icon-trash delete-current-value" data-toggle="tooltip" title="Delete"></span> </dd> <dt> Description
@@ -258,8 +258,8 @@ <button class="btn change-btn" data-layer-prop="description" type="button" >Save</button> <a href="#" class="btn btn-link cancel">Cancel</a> </form> - <i class="glyphicon glyphicon-pencil"></i> - <span class="glyphicon glyphicon-trash delete-current-value" data-toggle="tooltip" title="Delete"></span> + <i class="icon-pencil"></i> + <span class="icon-trash delete-current-value" data-toggle="tooltip" title="Delete"></span> </dd> {% if layerversion.layer.up_id %} <dt>Layer index</dt>
bitbake/lib/toaster/toastergui/templates/pkg_add_rm_btn.html +1 -1
@@ -18,7 +18,7 @@ display:none {% endif %} "> - <i class="glyphicon glyphicon-trash no-tooltip"></i> + <i class="icon-trash no-tooltip"></i> Remove package </button> <button class="btn btn-block add-rm-package-btn" data-directive="add" data-id="{{data.pk}}" data-package-url="{% url 'xhr_customrecipe_packages' extra.recipe_id data.pk %}" data-name="{{data.name}}" style="
bitbake/lib/toaster/toastergui/templates/project.html +2 -2
@@ -54,7 +54,7 @@ <div class="well well-transparent" id="machine-section"> <h3>Machine</h3> - <p class="lead"><span id="project-machine-name"></span> <i title="" data-original-title="" id="change-machine-toggle" class="glyphicon glyphicon-pencil"></i></p> + <p class="lead"><span id="project-machine-name"></span> <i title="" data-original-title="" id="change-machine-toggle" class="icon-pencil"></i></p> <form id="select-machine-form" style="display:none;"> <div class="alert alert-info">
@@ -90,7 +90,7 @@ <!-- Comment out the ability to change the project release, until we decide what to do with this functionality --> - <!--i title="" data-original-title="" id="release-change-toggle" class="glyphicon glyphicon-pencil"></i--> + <!--i title="" data-original-title="" id="release-change-toggle" class="icon-pencil"></i--> </p> <!-- Comment out the ability to change the project release, until we decide what to do with this functionality -->
bitbake/lib/toaster/toastergui/templates/projectconf.html +9 -9
@@ -17,7 +17,7 @@ </dt> <dd class="lead"> <span id="distro">{{distro}}</span> - <i class="glyphicon glyphicon-pencil" id="change-distro-icon"></i> + <i class="icon-pencil" id="change-distro-icon"></i> <form id="change-distro-form" style="display:none;"> <div class="input-append"> <span id="edit-distro-name-div" class="control-group">
@@ -38,7 +38,7 @@ </dt> <dd class="lead"> <span id="dl_dir"{% if dl_dir %}{%else%} class="muted"{%endif%}>{% if dl_dir %}{{dl_dir}}{%else%}Not set{%endif%}</span> - <i class="glyphicon glyphicon-pencil" id="change-dl_dir-icon"></i> + <i class="icon-pencil" id="change-dl_dir-icon"></i> <form id="change-dl_dir-form" style="display:none;"> <div class="row"> <span class="help-block col-md-4">To set DL_DIR type the absolute path of the download folder.</span>
@@ -60,7 +60,7 @@ </dt> <dd class="lead"> <span id="image_fstypes">{{fstypes}}</span> - <i class="glyphicon glyphicon-pencil" id="change-image_fstypes-icon"></i> + <i class="icon-pencil" id="change-image_fstypes-icon"></i> <form id="change-image_fstypes-form" style="display:none;"> <label>Type the image types you want to build:</label> <div class="input-append" id="validate-image_fstypes">
@@ -84,8 +84,8 @@ </dt> <dd class="lead"> <span id="image_install"{% if image_install_append %}{%else%} class="muted"{%endif%}>{% if image_install_append %}{{image_install_append}}{%else%}Not set{%endif%}</span> - <i class="glyphicon glyphicon-pencil" id="change-image_install-icon"></i> - <i class="glyphicon glyphicon-trash" id="delete-image_install-icon" {% if image_install_append %}{%else%}style="display:none;"{%endif%}></i> + <i class="icon-pencil" id="change-image_install-icon"></i> + <i class="icon-trash" id="delete-image_install-icon" {% if image_install_append %}{%else%}style="display:none;"{%endif%}></i> <form id="change-image_install-form" style="display:none;"> <div class="row"> <span class="help-block col-md-4">To set IMAGE_INSTALL_append to more than one package, type the package names separated by a space.</span>
@@ -106,7 +106,7 @@ </dt> <dd class="lead"> <span id="package_classes">{{package_classes}}</span> - <i id="change-package_classes-icon" class="glyphicon glyphicon-pencil"></i> + <i id="change-package_classes-icon" class="icon-pencil"></i> <form id="change-package_classes-form" style="display:none;"> <label> Root file system package format
@@ -142,7 +142,7 @@ </dt> <dd class="lead"> <span id="sstate_dir"{% if sstate_dir %}{%else%} class="muted"{%endif%}>{% if sstate_dir %}{{sstate_dir}}{%else%}Not set{%endif%}</span> - <i class="glyphicon glyphicon-pencil" id="change-sstate_dir-icon"></i> + <i class="icon-pencil" id="change-sstate_dir-icon"></i> <form id="change-sstate_dir-form" style="display:none;"> <div class="row"> <span class="help-block col-md-4">To set SSTATE_DIR type the absolute path of the download folder.</span>
@@ -420,10 +420,10 @@ } } if (var_context == undefined) { - orightml += '<div> <dt><span id="config_var_entry_'+configvars_sorted[i][2]+'" class="js-config-var-name"></span><i class="glyphicon glyphicon-trash js-icon-trash-config_var" id="config_var_trash_'+configvars_sorted[i][2]+'" x-data="'+configvars_sorted[i][2]+'"></i> </dt>' + orightml += '<div> <dt><span id="config_var_entry_'+configvars_sorted[i][2]+'" class="js-config-var-name"></span><i class="icon-trash js-icon-trash-config_var" id="config_var_trash_'+configvars_sorted[i][2]+'" x-data="'+configvars_sorted[i][2]+'"></i> </dt>' orightml += '<dd class="lead">' orightml += ' <span id="config_var_value_'+configvars_sorted[i][2]+'"></span>' - orightml += ' <i class="glyphicon glyphicon-pencil js-icon-pencil-config_var" x-data="'+configvars_sorted[i][2]+'"></i>' + orightml += ' <i class="icon-pencil js-icon-pencil-config_var" x-data="'+configvars_sorted[i][2]+'"></i>' orightml += ' <form id="change-config_var-form_'+configvars_sorted[i][2]+'" style="display:none;">' orightml += ' <div class="input-append">' orightml += ' <input type="text" class="input-xlarge js-new-config_var" id="new-config_var_'+configvars_sorted[i][2]+'" value="">'
bitbake/lib/toaster/toastergui/templates/projecttopbar.html +1 -1
@@ -27,7 +27,7 @@ <h1 id="project-name-container"> <span id="project-name">{{project.name}}</span> - <i class="glyphicon glyphicon-pencil" data-original-title="" id="project-change-form-toggle" title=""></i> + <i class="icon-pencil" data-original-title="" id="project-change-form-toggle" title=""></i> {% if project.is_default %} <i class="icon-question-sign get-help heading-help" title="" data-original-title="This project shows information about the builds you start from the command line while Toaster is running"></i>
Signature · 1 line
1.9.1
PATCH 20/106 toaster: Fix breadcrumbs
In reply to Belen Barros PenaRemove the "/" between list items and set the same white space between list items and separators.
--- .../toaster/toastergui/static/css/bootstrap3-transition.css | 11 +++++++++++ 1 file changed, 11 insertions(+)
bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +11 -0
@@ -33,6 +33,17 @@ ul.configuration-list { margin-left: 0px; } +/* Breadcrumbs */ + +.breadcrumb > li + li::before { + content: ""; +} + +.breadcrumb .divider { + color: #999; + padding-left: 10px; +} + .configuration-list .checkbox { margin-top: 0; }
Signature · 1 line
1.9.1
PATCH 21/106 toaster: Fix "custom image details" layout
In reply to Belen Barros PenaSet the right grid markup for the page content, and correctly align content and breadcrumb.
The patch also sets a sane length for the table search input field.
--- .../static/css/bootstrap3-transition.css | 18 +++ .../toaster/toastergui/templates/customrecipe.html | 124 +++++++++++---------- .../toaster/toastergui/templates/toastertable.html | 2 +- 3 files changed, 82 insertions(+), 62 deletions(-)
bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +18 -0
@@ -35,6 +35,10 @@ ul.configuration-list { /* Breadcrumbs */ +.breadcrumb { + padding: 8px 0; +} + .breadcrumb > li + li::before { content: ""; }
@@ -62,3 +66,17 @@ fieldset[disabled] .btn-primary:hover { background-color: #04c; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); } + +/* Table search input field */ + +.navbar-search { + width: 60%; +} + +.navbar-search .input-append { + width: 90%; +} + +.navbar-search .input-append input[type="text"] { + width: 80%; +}
bitbake/lib/toaster/toastergui/templates/customrecipe.html +63 -61
172 lines not on this page · raw message
bitbake/lib/toaster/toastergui/templates/toastertable.html +1 -1
@@ -28,7 +28,7 @@ <div class="row" id="no-results-{{table_name}}" style="display:none"> <div class="alert"> <form class="no-results input-append"> - <input class="input-xxlarge" id="new-search-input-{{table_name}}" name="search" type="text" placeholder="Search {{title|lower}}" value="{%if request.GET.search %}{{request.GET.search}}{%endif%}"/> + <input id="new-search-input-{{table_name}}" name="search" type="text" placeholder="Search {{title|lower}}" value="{%if request.GET.search %}{{request.GET.search}}{%endif%}"/> <a href="#" class="input-append-addon btn remove-search-btn-{{table_name}}" tabindex="-1"> <i class="glyphicon glyphicon-remove"></i> </a>
Signature · 1 line
1.9.1
PATCH 22/106 toaster: remove row from base template
In reply to Belen Barros PenaA row in the base template caused duplicated row divs and issues with the most complex layouts we use in the details pages. Remove the row from the base template and set the rows in each template as needed instead.
--- bitbake/lib/toaster/toastergui/templates/base.html | 6 +- .../toastergui/templates/baseprojectpage.html | 64 +++++++++++----------- .../toastergui/templates/builds-toastertable.html | 2 + .../toaster/toastergui/templates/importlayer.html | 2 + .../toastergui/templates/newcustomimage.html | 15 +++-- .../templates/projectbuilds-toastertable.html | 2 + .../templates/projects-toastertable.html | 58 ++++++++++---------- 7 files changed, 81 insertions(+), 68 deletions(-)
bitbake/lib/toaster/toastergui/templates/base.html +2 -4
@@ -120,10 +120,8 @@ </div> <div class="container-fluid top-padded"> - <div class="row"> - {% block pagecontent %} - {% endblock %} - </div> + {% block pagecontent %} + {% endblock %} </div> </body> </html>
bitbake/lib/toaster/toastergui/templates/baseprojectpage.html +33 -31
70 lines not on this page · raw message
bitbake/lib/toaster/toastergui/templates/builds-toastertable.html +2 -0
@@ -13,6 +13,7 @@ {% block pagecontent %} +<div class="row"> <div class="col-md-12"> {% with mru=mru mrb_type=mrb_type %} {% include 'mrb_section.html' %}
@@ -25,6 +26,7 @@ {% url 'builds' as xhr_table_url %} {% include 'toastertable.html' %} </div> +</div> <script> $(document).ready(function () {
bitbake/lib/toaster/toastergui/templates/importlayer.html +2 -0
@@ -5,6 +5,7 @@ {% block title %} Import layer - {{project.name}} - Toaster {% endblock %} {% block pagecontent %} +<div class="row"> {% include "projecttopbar.html" %}
@@ -136,4 +137,5 @@ </div> {% endif %} +</div> {% endblock %}
bitbake/lib/toaster/toastergui/templates/newcustomimage.html +10 -5
@@ -5,12 +5,17 @@ {% block pagecontent %} {% include "newcustomimage_modal.html" %} -{% include "projecttopbar.html" %} -<div class="col-md-12"> - {% url table_name project.id as xhr_table_url %} - <h2>{{title}} (<span class="table-count-{{table_name}}">0</span>)</h2> - {% include "toastertable.html" %} +<div class="row"> + + {% include "projecttopbar.html" %} + + <div class="col-md-12"> + {% url table_name project.id as xhr_table_url %} + <h2>{{title}} (<span class="table-count-{{table_name}}">0</span>)</h2> + {% include "toastertable.html" %} + </div> + </div> {% endblock %}
bitbake/lib/toaster/toastergui/templates/projectbuilds-toastertable.html +2 -0
@@ -13,6 +13,7 @@ {% block title %} {{title}} - {{project.name}} - Toaster {% endblock %} {% block pagecontent %} +<div class="row"> {% include "projecttopbar.html" %}
@@ -53,4 +54,5 @@ }); </script> +</div> {% endblock %}
bitbake/lib/toaster/toastergui/templates/projects-toastertable.html +30 -28
67 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH 23/106 toaster: Fix image recipe details layout
In reply to Belen Barros PenaAdapt the layout to fit the Boostrap 3 grid.
--- .../toastergui/templates/recipedetails.html | 110 +++++++++++---------- 1 file changed, 57 insertions(+), 53 deletions(-)
bitbake/lib/toaster/toastergui/templates/recipedetails.html +57 -53
@@ -4,7 +4,7 @@ {% load static %} {% block pagecontent %} -<div class="section"> +<div class="row"> <ul class="breadcrumb"> <li> <a href="{% url 'project' project.id %}">{{project.name}}</a>
@@ -51,37 +51,39 @@ {% include 'newcustomimage_modal.html' %} -<div class="row col-md-11"> - <div class="alert alert-success lead" id="image-created-notification" style="margin-top: 15px; display: none"> - <button type="button" data-dismiss="alert" class="close">x</button> - Your custom image <strong>{{recipe.name}}</strong> has been created. You can now add or remove packages as needed. - </div> - <div class="page-header air"> - <h1> - {{recipe.name}} - <small>({{recipe.layer_version.layer.name}})</small> - </h1> +<div class="row"> + <div class="col-md-12"> + <div class="alert alert-success lead" id="image-created-notification" style="margin-top: 15px; display: none"> + <button type="button" data-dismiss="alert" class="close">x</button> + Your custom image <strong>{{recipe.name}}</strong> has been created. You can now add or remove packages as needed. + </div> + <div class="page-header"> + <h1> + {{recipe.name}} + <small>({{recipe.layer_version.layer.name}})</small> + </h1> + </div> </div> </div> -<div class="row col-md-11"> +<div class="row"> <div class="col-md-8"> <div class="button-place btn-group" id="customise-build-btns" style="width: 100%; {% if not in_project %} display:none; {% endif %}"> - <button class="btn btn-lg col-md-6 build-recipe-btn" style="width: 50%"> + <button class="btn btn-large col-md-6 build-recipe-btn" style="width: 50%"> Build {{recipe.name}} </button> {% if recipe.is_image %} - <button class="btn btn-lg col-md-6 customise-btn" data-recipe="{{recipe.pk}}" style="width: 50%"> + <button class="btn btn-large col-md-6 customise-btn" data-recipe="{{recipe.pk}}" style="width: 50%"> Customise {{recipe.name}} </button> {% endif %} </div> <div class="button-place"> - <button class="btn btn-block btn-lg" id="add-layer-btn" + <button class="btn btn-block btn-large" id="add-layer-btn" style="width:100%; {% if in_project %} display:none;
@@ -106,7 +108,7 @@ style="display:none" {% endif %} > <p class="lead">Toaster has no package information for {{recipe.name}}. To generate package information, build {{recipe.name}}</p> - <button class="btn btn-info btn-lg build-recipe-btn" style="margin:20px 0 10px 0;">Build {{recipe.name}}</button> + <button class="btn btn-info btn-large build-recipe-btn" style="margin:20px 0 10px 0;">Build {{recipe.name}}</button> </div> <div class="alert alert-info air" id="packages-alert"
@@ -119,58 +121,60 @@ </div> </div> </div> - <div class="col-md-4 well"> - <h2 style="margin-bottom:20px;">About {{recipe.name}}</h2> - <dl> - <dt> + <div class="col-md-4"> + <div class="well"> + <h2 style="margin-bottom:20px;">About {{recipe.name}}</h2> + <dl> + <dt> Approx. packages included <i class="icon-question-sign get-help" title="" data-original-title="The number of packages included is based on information from previous builds and from parsing layers, so we can never be sure it is 100% accurate"></i> - </dt> - <dd class="no-packages">{{packages.count}}</dd> - <dt> + </dt> + <dd class="no-packages">{{packages.count}}</dd> + <dt> Approx. package size <i class="icon-question-sign get-help" title="" data-original-title="Package size is based on information from previous builds, so we can never be sure it is 100% accurate"></i> - </dt> - <dd>{{approx_pkg_size.size__sum|filtered_filesizeformat}}</dd> - {% if last_build %} - <dt>Last build</dt> - <dd> + </dt> + <dd>{{approx_pkg_size.size__sum|filtered_filesizeformat}}</dd> + {% if last_build %} + <dt>Last build</dt> + <dd> <i class="icon-ok-sign success"></i> <a href="{% url 'projectbuilds' project.id%}">{{last_build.completed_on|date:"d/m/y H:i"}}</a> - </dd> - {% endif %} - <dt>Recipe file</dt> - <dd> + </dd> + {% endif %} + <dt>Recipe file</dt> + <dd> <code>{{recipe.file_path|cut_path_prefix:recipe.layer_version.local_path}}</code> <a href="{{recipe.get_vcs_recipe_file_link_url}}"><i class="glyphicon glyphicon-share" title="" data-original-title="View recipe file"></i></a> - </dd> - <dt>Layer</dt> - <dd><a href="{% url 'layerdetails' project.id recipe.layer_version.pk %}">{{recipe.layer_version.layer.name}}</a></dd> - <dt> + </dd> + <dt>Layer</dt> + <dd><a href="{% url 'layerdetails' project.id recipe.layer_version.pk %}">{{recipe.layer_version.layer.name}}</a></dd> + <dt> Summary - </dt> - <dd> + </dt> + <dd> {{recipe.summary}} - </dd> - <dt> + </dd> + <dt> Description - </dt> - <dd> + </dt> + <dd> {{recipe.description}} - </dd> - <dt>Version</dt> - <dd> + </dd> + <dt>Version</dt> + <dd> {{recipe.version}} - </dd> - <dt>Section</dt> - <dd> + </dd> + <dt>Section</dt> + <dd> {{recipe.section}} - </dd> - <dt>License</dt> - <dd> + </dd> + <dt>License</dt> + <dd> {{recipe.license}} - </dd> - </dl> + </dd> + </dl> + </div> </div> </div>
Signature · 1 line
1.9.1
PATCH 24/106 toaster: Fix layer details layout
In reply to Belen Barros PenaAdapt layout to Bootstrap 3 grid.
--- .../static/css/bootstrap3-transition.css | 17 ++++++++ .../toaster/toastergui/templates/layerdetails.html | 48 ++++++++++++---------- .../toastergui/templates/toastertable-simple.html | 4 +- 3 files changed, 46 insertions(+), 23 deletions(-)
bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +17 -0
@@ -18,6 +18,7 @@ margin-left: 50%; } + select[class^="pagesize-"]{ margin-bottom: 0; }
@@ -80,3 +81,19 @@ fieldset[disabled] .btn-primary:hover { .navbar-search .input-append input[type="text"] { width: 80%; } + +/* Definition lists in the layer details page */ + +#information .dl-horizontal dd { + margin-left: 220px; +} + +#information .dl-horizontal dt { + width: 200px; +} + +/* Table controls in layer details pages */ + +div[id^="table-chrome-"] .navbar-search { + margin-bottom: 20px; +}
bitbake/lib/toaster/toastergui/templates/layerdetails.html +27 -21
97 lines not on this page · raw message
bitbake/lib/toaster/toastergui/templates/toastertable-simple.html +2 -2
@@ -26,7 +26,7 @@ {% include 'toastertable-filter.html' %} -<div class="row" id="no-results-{{table_name}}" style="display:none"> +<div id="no-results-{{table_name}}" style="display:none"> <div class="alert"> <form class="no-results input-append"> <input class="input-xlarge" id="new-search-input-{{table_name}}" name="search" type="text" placeholder="Search {{title|lower}}" value="{% if request.GET.search %}{{request.GET.search}}{% endif %}"/>
@@ -41,7 +41,7 @@ </div> <div id="table-container-{{table_name}}" style="visibility: hidden"> <!-- control header --> - <div class="row" id="table-chrome-{{table_name}}"> + <div id="table-chrome-{{table_name}}"> <div class="navbar-search input-append pull-left"> <input class="input-xlarge" id="search-input-{{table_name}}" name="search" type="text" placeholder="Search {{title|lower}}" value="{% if request.GET.search %}{{request.GET.search}}{% endif %}"/>
Signature · 1 line
1.9.1
PATCH 25/106 toaster: Set correct margins for table search
In reply to Belen Barros PenaWe need 2 versions: one for main tables and another one for tables in details pages (like the recipes and machines tables in the layer details page). For the first, we need 0 bottom margin. For the second, we need 20px of bottom margin.
--- bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css | 4 ++++ 1 file changed, 4 insertions(+)
bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +4 -0
@@ -97,3 +97,7 @@ fieldset[disabled] .btn-primary:hover { div[id^="table-chrome-"] .navbar-search { margin-bottom: 20px; } + +div[id^="table-chrome-"] .navbar-inner > .navbar-search { + margin-bottom: 0px; +}
Signature · 1 line
1.9.1
PATCH 27/106 toaster: Fix breadcrumb in build data pages
In reply to Belen Barros PenaThe breadcrumb needs to be in its own row, to avoid the nested rows that so badly upset the Bootstrap 3 grid system.
--- bitbake/lib/toaster/toastergui/templates/basebuilddetailpage.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
bitbake/lib/toaster/toastergui/templates/basebuilddetailpage.html +1 -4
@@ -5,7 +5,6 @@ <div class="row"> <!-- Breadcrumbs --> - <div class="section"> <ul class="breadcrumb" id="breadcrumb"> <li><a href="{% project_url build.project %}">{{build.project.name}}</a></li> {% if not build.project.is_default %}
@@ -21,12 +20,10 @@ $('#breadcrumb > li:last > span').remove(); }); </script> - </div> <!--section--> +</div> <!-- Begin container --> {% block pagedetailinfomain %}{% endblock %} <!-- End container --> -</div> - {% endblock %}
Signature · 1 line
1.9.1
PATCH 28/106 toaster: indentation fixes
In reply to Belen Barros PenaJust tidying up the indentation.
--- .../toastergui/templates/basebuilddetailpage.html | 38 +++++++++++----------- 1 file changed, 19 insertions(+), 19 deletions(-)
bitbake/lib/toaster/toastergui/templates/basebuilddetailpage.html +19 -19
@@ -4,26 +4,26 @@ {% block pagecontent %} <div class="row"> -<!-- Breadcrumbs --> - <ul class="breadcrumb" id="breadcrumb"> - <li><a href="{% project_url build.project %}">{{build.project.name}}</a></li> - {% if not build.project.is_default %} - <li><a href="{% url 'projectbuilds' build.project.id %}">Builds</a></li> - {% endif %} - <li><a href="{%url 'builddashboard' build.pk%}">{{build.get_sorted_target_list.0.target}} {%if build.target_set.all.count > 1%}(+{{build.target_set.all.count|add:"-1"}}){%endif%} {{build.machine}} ({{build.completed_on|date:"d/m/y H:i"}})</a></li> - {% block localbreadcrumb %}{% endblock %} - </ul> - <script> - $( function () { - $('#breadcrumb > li').append('<span class="divider">→</span>'); - $('#breadcrumb > li:last').addClass("active"); - $('#breadcrumb > li:last > span').remove(); - }); - </script> + <!-- Breadcrumbs --> + <ul class="breadcrumb" id="breadcrumb"> + <li><a href="{% project_url build.project %}">{{build.project.name}}</a></li> + {% if not build.project.is_default %} + <li><a href="{% url 'projectbuilds' build.project.id %}">Builds</a></li> + {% endif %} + <li><a href="{%url 'builddashboard' build.pk%}">{{build.get_sorted_target_list.0.target}} {%if build.target_set.all.count > 1%}(+{{build.target_set.all.count|add:"-1"}}){%endif%} {{build.machine}} ({{build.completed_on|date:"d/m/y H:i"}})</a></li> + {% block localbreadcrumb %}{% endblock %} + </ul> + <script> +$( function () { + $('#breadcrumb > li').append('<span class="divider">→</span>'); + $('#breadcrumb > li:last').addClass("active"); + $('#breadcrumb > li:last > span').remove(); + }); + </script> </div> - <!-- Begin container --> - {% block pagedetailinfomain %}{% endblock %} - <!-- End container --> +<!-- Begin container --> +{% block pagedetailinfomain %}{% endblock %} +<!-- End container --> {% endblock %}
Signature · 1 line
1.9.1
PATCH 29/106 toaster: Fix layout in build dashboard page
In reply to Belen Barros PenaSet the layout as per the Bootstrap 3 grid rules.
--- .../toastergui/templates/builddashboard.html | 60 +++++++++++----------- 1 file changed, 31 insertions(+), 29 deletions(-)
bitbake/lib/toaster/toastergui/templates/builddashboard.html +31 -29
@@ -13,17 +13,15 @@ {% block buildinfomain %} <!-- page title --> -<div class="row col-md-10"> +<div class="col-md-10"> <div class="page-header"> <h1>{{build.target_set.all|dictsort:"target"|join:", "}} {{build.machine}}</h1> </div> -</div> <!-- build result bar --> -<div class="row col-md-10 pull-right"> <div class="alert {%if build.outcome == build.SUCCEEDED%}alert-success{%elif build.outcome == build.FAILED%}alert-error{%else%}alert-info{%endif%}"> - <div class="row lead"> - <span class="pull-left"><strong> + <div class="lead"> + <span><strong> {%if build.outcome == build.SUCCEEDED%}Completed{%elif build.outcome == build.FAILED%}Failed{%else%}{%endif%} </strong> on {{build.completed_on|date:"d/m/y H:i"}}
@@ -50,10 +48,9 @@ {%endif%} </div> </div> -</div> {% if build.errors.count %} -<div class="accordion col-md-10 pull-right" id="errors"> +<div class="accordion" id="errors"> <div class="accordion-group"> <div class="accordion-heading"> <a class="accordion-toggle error toggle-errors">
@@ -81,7 +78,6 @@ {%if build.outcome == build.SUCCEEDED%} <!-- built images --> {% if hasImages %} -<div class="row col-md-10 pull-right"> <h2>Images</h2> {% for target in targets %} {% if target.target.is_image %}
@@ -96,19 +92,21 @@ {% if target.targetHasNoImages %} </dl> <div class="row"> - <div class="alert alert-info col-md-7"> - <p> - <b>This build did not create any image files</b> - </p> - <p> - This is probably because valid image and license manifest - files from a previous build already exist in your - <code>.../poky/build/tmp/deploy</code> - directory. You can - also <a href="{% url 'targetpkg' build.pk target.target.pk %}">view the - license manifest information</a> in Toaster. - </p> + <div class="col-md-7"> + <div class="alert alert-info"> + <p> + <strong>This build did not create any image files</strong> + </p> + <p> + This is probably because valid image and license manifest + files from a previous build already exist in your + <code>.../poky/build/tmp/deploy</code> + directory. You can + also <a href="{% url 'targetpkg' build.pk target.target.pk %}">view the + license manifest information</a> in Toaster. + </p> </div> + </div> </div> {% else %} <dt>
@@ -140,7 +138,6 @@ </div> {% endif %} {% endfor %} -</div> {% endif %} {%else%}
@@ -149,7 +146,6 @@ <!-- other artifacts --> {% if build.buildartifact_set.all.count > 0 %} -<div class="row col-md-10 pull-right"> <h2>Other artifacts</h2> <div class="well dashboard-section">
@@ -170,20 +166,22 @@ </dl> </div> -</div> {% endif %} <!-- build summary --> -<div class="row col-md-10 pull-right"> <h2>Build summary</h2> - <div class="well col-md-4 dashboard-section" style="margin-left:0px;"> + <div class="row"> + <div class="col-md-4 dashboard-section"> + <div class="well well-transparent"> <h4><a href="{%url 'configuration' build.pk%}">Configuration</a></h4> <dl> <dt>Machine</dt><dd>{{build.machine}}</dd> <dt>Distro</dt><dd>{{build.distro}}</dd> <dt>Layers</dt>{% for i in build.layer_version_build.all|dictsort:"layer.name" %}<dd>{{i.layer.name}}</dd>{%endfor%} </dl> + </div> </div> - <div class="well col-md-4 dashboard-section"> + <div class="col-md-4 dashboard-section"> + <div class="well well-transparent"> <h4><a href="{%url 'tasks' build.pk%}">Tasks</a></h4> <dl> {% query build.task_build outcome=4 order__gt=0 as exectask%}
@@ -230,18 +228,20 @@ % </dd> </dl> + </div> </div> - <div class="well col-md-4 dashboard-section"> + <div class="col-md-4 dashboard-section"> + <div class="well well-transparent"> <h4><a href="{% url 'recipes' build.pk %}">Recipes</a> & <a href="{% url 'packages' build.pk %}">Packages</a></h4> <dl> <dt>Recipes built</dt><dd><a href="{% url 'recipes' build.pk %}">{{recipecount}}</a></dd> <dt>Packages built</dt><dd><a href="{% url 'packages' build.pk %}">{{packagecount}}</a></dd> </dl> </div> -</div> + </div> {% if build.warnings.count %} -<div class="accordion col-md-10 pull-right" id="warnings"> +<div class="accordion" id="warnings"> <div class="accordion-group"> <div class="accordion-heading"> <a class="accordion-toggle warning toggle-warnings">
@@ -266,6 +266,8 @@ </div> {% endif %} +</div> <!-- end 10 column row --> + <script type="text/javascript"> $(document).ready(function() { //show warnings section when requested from the previous page
Signature · 1 line
1.9.1
PATCH 30/106 toaster: Fix breadcrumb in Chrome
In reply to Belen Barros PenaBreadcrumb list items were wrapping because the content attribute was set to an empty string that added a space. The correct way to override the content property is setting it to 'none'. Removing the extra space required adjustments to the breadcrumb padding.
The commit also does a bit of reorg in the css declarations.
--- .../toaster/toastergui/static/css/bootstrap3-transition.css | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +6 -6
@@ -34,6 +34,10 @@ ul.configuration-list { margin-left: 0px; } +.configuration-list .checkbox { + margin-top: 0; +} + /* Breadcrumbs */ .breadcrumb {
@@ -41,16 +45,12 @@ ul.configuration-list { } .breadcrumb > li + li::before { - content: ""; + content: none; } .breadcrumb .divider { color: #999; - padding-left: 10px; -} - -.configuration-list .checkbox { - margin-top: 0; + padding: 0 5px; } /* Remove the hovering from the .btn-primary buttons when they are disabled */
Signature · 1 line
1.9.1
PATCH 31/106 toaster: Adjust width of non-toastertables search
In reply to Belen Barros PenaIn tables not using toaster tables (i.e. the ones in the build information pages), the search text field was too long. This patch reduces its width.
--- bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css | 4 ++++ bitbake/lib/toaster/toastergui/templates/basetable_top.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-)
bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +4 -0
@@ -82,6 +82,10 @@ fieldset[disabled] .btn-primary:hover { width: 80%; } +#search { + width: 60%; +} + /* Definition lists in the layer details page */ #information .dl-horizontal dd {
bitbake/lib/toaster/toastergui/templates/basetable_top.html +1 -1
@@ -161,7 +161,7 @@ <!-- control header --> <div class="navbar"> <div class="navbar-inner"> - <form class="navbar-search input-append pull-left col-md-6" id="searchform"> + <form class="navbar-search input-append" id="searchform"> <input id="search" name="search" type="text" placeholder="Search {%if object_search_display %}{{object_search_display}}{%else%}{{objectname}}{%endif%}" value="{%if request.GET.search %}{{request.GET.search}}{% endif %}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-append-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{%endif%} <input type="hidden" name="orderby" value="{{request.GET.orderby}}"> <input type="hidden" name="page" value="1">
Signature · 1 line
1.9.1
PATCH 32/106 toaster: Alignment of table controls
In reply to Belen Barros PenaBecause we have 3 different types of tables (toastertable, toastertable-simple and non-toastertable), making all the controls look the same required some fiddling with the mark up and the css rules.
--- .../toaster/toastergui/static/css/bootstrap3-transition.css | 10 +++++----- bitbake/lib/toaster/toastergui/templates/basetable_top.html | 4 +++- 2 files changed, 8 insertions(+), 6 deletions(-)
bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +5 -5
@@ -96,12 +96,12 @@ fieldset[disabled] .btn-primary:hover { width: 200px; } -/* Table controls in layer details pages */ +/* Table controls */ -div[id^="table-chrome-"] .navbar-search { - margin-bottom: 20px; +.navbar-inner > .navbar-search .input-append { + margin-bottom: 5px; } -div[id^="table-chrome-"] .navbar-inner > .navbar-search { - margin-bottom: 0px; +.navbar-search.input-append { + margin-bottom: 20px; }
bitbake/lib/toaster/toastergui/templates/basetable_top.html +3 -1
@@ -161,11 +161,13 @@ <!-- control header --> <div class="navbar"> <div class="navbar-inner"> - <form class="navbar-search input-append" id="searchform"> + <form class="navbar-search" id="searchform"> + <div class="input-append"> <input id="search" name="search" type="text" placeholder="Search {%if object_search_display %}{{object_search_display}}{%else%}{{objectname}}{%endif%}" value="{%if request.GET.search %}{{request.GET.search}}{% endif %}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-append-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{%endif%} <input type="hidden" name="orderby" value="{{request.GET.orderby}}"> <input type="hidden" name="page" value="1"> <button class="btn" id="search-button" type="submit" value="Search">Search</button> + </div> </form> <div class="pull-right"> {% if tablecols %}
Signature · 1 line
1.9.1
PATCH 33/106 toaster: Fix pagination in non-toastertables
In reply to Belen Barros PenaMatch the pagination controls in the non-toastertables tables to the pagination controls in the toastertables tables.
We really need to kill those non-toastertables tables.
--- .../toaster/toastergui/static/css/bootstrap3-transition.css | 2 +- .../lib/toaster/toastergui/templates/basetable_bottom.html | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-)
bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +1 -1
@@ -19,7 +19,7 @@ } -select[class^="pagesize-"]{ +select[class^="pagesize"] { margin-bottom: 0; }
bitbake/lib/toaster/toastergui/templates/basetable_bottom.html +5 -7
@@ -2,12 +2,10 @@ </table> <!-- Show pagination controls --> -<div class="pagination pagination-centered"> - <div class="pull-left"> - Showing {{objects.start_index}} to {{objects.end_index}} out of {{objects.paginator.count}} entries. - </div> +<div> + <!--span class="help-inline">Showing {{objects.start_index}} to {{objects.end_index}} out of {{objects.paginator.count}} entries.</span--> - <ul class="pagination" style="display: block-inline"> + <ul class="pagination pagination-centered"> {%if objects.has_previous %} <li><a href="javascript:reload_params({'page':{{objects.previous_page_number}}})">«</a></li> {%else%}
@@ -23,8 +21,8 @@ {%endif%} </ul> <div class="pull-right"> - <span class="help-inline" style="padding-top:5px;">Show rows:</span> - <select style="margin-top:5px;margin-bottom:0px;" class="pagesize"> + <span class="help-inline">Show rows:</span> + <select class="pagesize"> {% with "10 25 50 100 150" as list%} {% for i in list.split %} <option value="{{i}}">{{i}}</option>
Signature · 1 line
1.9.1
PATCH 34/106 toaster: Fix layout of packages installed page
In reply to Belen Barros PenaSet the layout as per the Bootstrap 3 grid rules.
--- bitbake/lib/toaster/toastergui/templates/target.html | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
bitbake/lib/toaster/toastergui/templates/target.html +4 -5
@@ -18,7 +18,8 @@ {% block buildinfomain %} -<div class="row col-md-10"> +<div class="col-md-10"> + <div class="page-header"> <h1> {% if request.GET.search and objects.paginator.count > 0 %}
@@ -30,9 +31,9 @@ {% endif %} </h1> </div> -</div> -<div class="row pull-right col-md-10" id="navTab"> + +<div id="navTab"> <ul class="nav nav-pills"> <li class="active"> <a href="#target">
@@ -51,7 +52,6 @@ <div id="image-packages" class="tab-pane"> {% if objects.paginator.count == 0 %} - <div class="row"> <div class="alert"> <form class="no-results input-append" id="searchform"> <input id="search" name="search" class="input-xxlarge" type="text" value="{% if request.GET.search %}{{request.GET.search}}{% endif %}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-append-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{% endif %}
@@ -59,7 +59,6 @@ <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all packages</button> </form> </div> - </div> {% else %}
Signature · 1 line
1.9.1
PATCH 35/106 toaster: Fix layout of configuration page
In reply to Belen Barros PenaSet the layout as per the Bootstrap 3 grid rules.
--- .../toastergui/templates/configuration.html | 45 ++++++++++++---------- 1 file changed, 24 insertions(+), 21 deletions(-)
bitbake/lib/toaster/toastergui/templates/configuration.html +24 -21
@@ -12,14 +12,14 @@ {% block buildinfomain %} <!-- page title --> -<div class="row col-md-10"> +<div class="col-md-10"> + <div class="page-header"> <h1>Configuration</h1> </div> -</div> <!-- configuration table --> -<div class="row pull-right col-md-10" id="navTab"> +<div id="navTab"> <ul class="nav nav-pills"> <li class="active"><a href="#">Summary</a></li> <li class=""><a href="{% url 'configvars' build.id %}">BitBake variables</a></li>
@@ -44,29 +44,32 @@ {% endfor %} </ul> </dd> {% endif %} </dl> <h3>Layers</h3> - <div class="col-md-9" style="margin-left:0px;"> - <table class="table table-bordered table-hover"> - <thead> - <tr> - <th>Layer</th> - <th>Layer branch</th> - <th>Layer commit</th> - </tr> - </thead> - <tbody>{% for lv in build.layer_version_build.all|dictsort:"layer.name" %} - <tr> + <div class="row"> + <div class="col-md-9"> + <table class="table table-bordered table-hover"> + <thead> + <tr> + <th>Layer</th> + <th>Layer branch</th> + <th>Layer commit</th> + </tr> + </thead> + <tbody>{% for lv in build.layer_version_build.all|dictsort:"layer.name" %} + <tr> <td>{{lv.layer.name}}</td> <td>{{lv.branch}}</td> <td> <a class="btn" data-content="<ul class='list-unstyled'> - <li>{{lv.commit}}</li> </ul>"> - {{lv.commit|truncatechars:13}} - </a></td> - </tr>{% endfor %} - </tbody> - </table> + <li>{{lv.commit}}</li> </ul>"> + {{lv.commit|truncatechars:13}} + </a></td> + </tr>{% endfor %} + </tbody> + </table> + </div> </div> </div> - </div> + +</div> <!-- end of 10-column section --> {% endblock %}
Signature · 1 line
1.9.1
PATCH 36/106 toaster: Fix layout of variable history page
In reply to Belen Barros PenaIncluding the modal dialogs. Setting everything as per the Bootstrap 3 grid rules.
--- .../toaster/toastergui/static/css/bootstrap3-transition.css | 11 +++++++++++ bitbake/lib/toaster/toastergui/templates/configvars.html | 13 +++++++------ 2 files changed, 18 insertions(+), 6 deletions(-)
bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +11 -0
@@ -105,3 +105,14 @@ fieldset[disabled] .btn-primary:hover { .navbar-search.input-append { margin-bottom: 20px; } + +/* Modal dialogs */ + +.modal-dialog { + width: 700px; +} + +.modal-body { + overflow-y: scroll; + max-height: 350px; +}
bitbake/lib/toaster/toastergui/templates/configvars.html +7 -6
@@ -12,7 +12,7 @@ {% block buildinfomain %} <!-- page title --> -<div class="row col-md-10"> +<div class="col-md-10"> <div class="page-header"> <h1> {% if request.GET.filter and objects.paginator.count > 0 or request.GET.search and objects.paginator.count > 0 %}
@@ -24,10 +24,9 @@ {%endif%} </h1> </div> -</div> <!-- configuration table --> -<div class="row pull-right col-md-10" id="navTab"> +<div id="navTab"> <ul class="nav nav-pills"> <li class=""><a href="{% url 'configuration' build.id %}">Summary</a></li> <li class="active"><a href="#" >BitBake variables</a></li>
@@ -78,7 +77,7 @@ <!-- file list popups --> {% for variable in objects %} {% if variable.vhistory.count %} - <div id="variable-{{variable.pk}}" class="modal hide fade" tabindex="-1" role="dialog"> + <div id="variable-{{variable.pk}}" class="modal in fade" tabindex="-1" role="dialog"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header">
@@ -98,10 +97,10 @@ <span>{{variable.variable_value|string_slice:':570'}} <span class="full"> {{variable.variable_value|string_slice:'570:'}} </span> - <a class="btn btn-xs full-show">...</a> + <a class="btn btn-mini full-show">...</a> </span> </p> - <a class="btn btn-xs full-hide">Collapse variable value <i class="icon-caret-up"></i> + <a class="btn btn-mini full-hide">Collapse variable value <i class="icon-caret-up"></i> </a> {% endif %} {% else %}
@@ -134,4 +133,6 @@ </div> <!-- buildinfomain --> +</div> <!-- end 10-column section --> + {% endblock %}
Signature · 1 line
1.9.1
PATCH 37/106 toaster: Fix layout in package details pages
In reply to Belen Barros PenaSet the layout as per Bootstrap 3 grid rules.
--- .../toastergui/templates/package_detail_base.html | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-)
bitbake/lib/toaster/toastergui/templates/package_detail_base.html +12 -6
@@ -43,21 +43,25 @@ {% endblock localbreadcrumb %} {% block pagedetailinfomain %} - <div class="row col-md-11"> + <div class="row"> + <div class="col-md-12"> <div class="page-header"> {% block mainheading %} <h1>{{package.fullpackagespec}}</h1> {% endblock %} </div> <!-- page-header --> - </div> <!-- row col-md-11 page-header --> + </div> <!-- col-md-12 page-header --> + </div> <!-- end row --> {% block twocolumns %} - <div class="row col-md-7 tabbable"> + <div class="row"> + <div class="col-md-8 tabbable"> {% block tabcontent %} {% endblock tabcontent %} - </div> <!-- row col-md-7 --> + </div> <!-- row col-md-8 --> - <div class="row col-md-4 well"> + <div class="col-md-4"> + <div class="well"> <h2>Package information</h2> <!-- info presented as definition list -->
@@ -144,6 +148,8 @@ <dd class="iscommit">{{package.recipe.layer_version.commit}}</dd> </dl> - </div> <!-- row4 well --> + <div> <!-- end well --> + </div> <!-- end 4-column section --> {% endblock twocolumns %} + </div> <!-- end row --> {% endblock pagedetailinfomain %}
Signature · 1 line
1.9.1
PATCH 38/106 toaster: Fix layout in recipe details page
In reply to Belen Barros PenaSet the layout as per the Bootstrap 3 grid rules.
--- bitbake/lib/toaster/toastergui/static/css/default.css | 2 +- .../toastergui/templates/detail_pagination_bottom.html | 6 +++--- .../toastergui/templates/detail_search_header.html | 4 ++-- bitbake/lib/toaster/toastergui/templates/recipe.html | 13 ++++++++++--- .../lib/toaster/toastergui/templates/recipe_packages.html | 15 +++++++++++---- 5 files changed, 27 insertions(+), 13 deletions(-)
bitbake/lib/toaster/toastergui/static/css/default.css +1 -1
@@ -100,7 +100,7 @@ td > .success:hover { text-decoration: underline; } th > a, th > span { font-weight: normal; } /* Force long strings like commit hashes to wrap */ -.iscommit { white-space: pre-wrap; word-break: break-all; word-wrap: break-word;} +.iscommit { word-break: break-all; word-wrap: break-word;} /* Make the popovers scrollable if they are too long */ .popover-content { max-height: 30em; overflow-y: scroll; }
bitbake/lib/toaster/toastergui/templates/detail_pagination_bottom.html +3 -3
@@ -6,8 +6,8 @@ {# only paginate if 10 or more rows unfiltered, all pages #} {% if object_count >= 10 %} -<div class="pagination"> - <ul> +<div> + <ul class="pagination pagination-centered"> {%if objects.has_previous %} <li><a href="javascript:reload_params({'page':{{objects.previous_page_number}}})">«</a></li> {%else%}
@@ -24,7 +24,7 @@ </ul> <div class="pull-right"> - <span class="help-inline" style="padding-bottom:10px;">Show rows:</span> + <span class="help-inline">Show rows:</span> <select class="pagesize"> {% with "10 25 50 100 150" as list%} {% for i in list.split %}
bitbake/lib/toaster/toastergui/templates/detail_search_header.html +2 -2
@@ -18,7 +18,7 @@ $(document).ready(function() { }); }); </script> -<div class="row"> + {% if objects.paginator.count > 10 or request.GET.search %} {% if objects.paginator.count == 0 %} <div class="alert">
@@ -65,4 +65,4 @@ $(document).ready(function() { </div> {% endif %} {% endif %} -</div> {# row #} +
bitbake/lib/toaster/toastergui/templates/recipe.html +10 -3
@@ -12,13 +12,16 @@ <!-- Begin container --> -<div class="row col-md-11"> +<div class="row"> + <div class="col-md-12"> <div class="page-header"> <h1>{{object.name}}_{{object.version}}</h1> </div> + </div> </div> -<div class="row col-md-7 tabbable"> +<div class="row"> + <div class="col-md-8 tabbable"> <ul class="nav nav-pills"> <li class="{{tab_states.1}}"> <a href="#information" data-toggle="tab">
@@ -231,7 +234,8 @@ </div> </div> -<div class="row col-md-4 well"> +<div class="col-md-4"> + <div class="well"> <h2>About {{object.name}}</h2> <dl class="item-info"> {% if object.summary %}
@@ -262,6 +266,9 @@ <dd>{{object.license}}</dd> {% endif %} </dl> + </div> </div> +</div> <!-- end row --> + {% endblock %}
bitbake/lib/toaster/toastergui/templates/recipe_packages.html +11 -4
@@ -11,13 +11,16 @@ <!-- Begin container --> -<div class="row col-md-11"> +<div class="row"> + <div class="col-md-12"> <div class="page-header"> <h1>{{recipe.name}}_{{recipe.version}}</h1> </div> + </div> </div> -<div class="row col-md-7 tabbable"> +<div class="row"> + <div class="col-md-8 tabbable"> <ul class="nav nav-pills"> <li> <a href="{% url "recipe" build.pk recipe.id "1" %}">
@@ -86,9 +89,10 @@ {% endif %} </div> {# tab-pane #} </div> {# tab-content #} -</div> {# col-md-7 #} +</div> {# col-md-8 #} -<div class="row col-md-4 well"> +<div class="col-md-4"> + <div class="well"> <h2>About {{recipe.name}}</h2> <dl class="item-info"> {% if recipe.summary %}
@@ -119,5 +123,8 @@ <dd>{{recipe.license}}</dd> {% endif %} </dl> + </div> </div> + +</div> <!-- end row --> {% endblock pagedetailinfomain %}
Signature · 1 line
1.9.1
PATCH 39/106 toaster: Fix layout in task details page
In reply to Belen Barros PenaSet the layout as per the Bootstrap 3 grid rules and apply new definition list styles to this page as well.
--- bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css | 4 ++-- bitbake/lib/toaster/toastergui/templates/task.html | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-)
bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +2 -2
@@ -88,11 +88,11 @@ fieldset[disabled] .btn-primary:hover { /* Definition lists in the layer details page */ -#information .dl-horizontal dd { +.dl-horizontal dd { margin-left: 220px; } -#information .dl-horizontal dt { +.dl-horizontal dt { width: 200px; }
bitbake/lib/toaster/toastergui/templates/task.html +4 -2
@@ -11,7 +11,8 @@ {% block pagedetailinfomain %} -<div class="row col-md-11"> +<div class="row"> + <div class="col-md-12"> <div class="page-header"> <h1><a href="{%url 'recipe' build.pk task.recipe.pk %}">{{task.recipe.name}}_{{task.recipe.version}}</a> {{task.task_name}}</h1> </div>
@@ -153,8 +154,8 @@ <dd> {{task.sstate_checksum}} </dd> -</dl> {% if task.sstate_result != task.SSTATE_NA %} + </dl> <div class="alert alert-info">Attempting to restore output from sstate cache <i class="icon-question-sign get-help get-help-blue" title="The build system is searching for the task output in your <code>sstate-cache</code> directory and mirrors. If the build system finds the task output, it will reuse it instead of building it from scratch by running the real task. Reusing the task output makes the build faster"></i> </div>
@@ -273,5 +274,6 @@ </dl> </div> + {% endblock %}
Signature · 1 line
1.9.1
PATCH 40/106 toaster: revert auto change to icon class for spinner
In reply to Belen Barros PenaFrom: Michael Wood <[email protected]>
Revert the change to the spinner class that was done by the auto convert tool for bootstrap as this was a falsely matched.
--- bitbake/lib/toaster/toastergui/templates/base.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/toaster/toastergui/templates/base.html +1 -1
@@ -65,7 +65,7 @@ {% csrf_token %} <div id="loading-notification" class="alert lead text-center" style="display:none"> - Loading <i class="fa-pulse glyphicon glyphicon-spinner"></i> + Loading <i class="fa-pulse icon-spinner"></i> </div> <div id="change-notification" class="alert lead alert-info" style="display:none">
Signature · 1 line
1.9.1
PATCH 41/106 toaster: Remove the pagination-centered class
In reply to Belen Barros PenaIt didn't do a very good job in centering the pagination controls across our different types of tables. Removing this class left-aligns the pagination to the table. It should still work fine, and makes things easier.
--- bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css | 5 ----- bitbake/lib/toaster/toastergui/templates/basetable_bottom.html | 2 +- .../lib/toaster/toastergui/templates/detail_pagination_bottom.html | 2 +- bitbake/lib/toaster/toastergui/templates/toastertable-simple.html | 2 +- bitbake/lib/toaster/toastergui/templates/toastertable.html | 2 +- 5 files changed, 4 insertions(+), 9 deletions(-)
bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +0 -5
@@ -14,11 +14,6 @@ margin: 0 0 40px 0; } -.pagination-centered { - margin-left: 50%; -} - - select[class^="pagesize"] { margin-bottom: 0; }
bitbake/lib/toaster/toastergui/templates/basetable_bottom.html +1 -1
@@ -5,7 +5,7 @@ <div> <!--span class="help-inline">Showing {{objects.start_index}} to {{objects.end_index}} out of {{objects.paginator.count}} entries.</span--> - <ul class="pagination pagination-centered"> + <ul class="pagination"> {%if objects.has_previous %} <li><a href="javascript:reload_params({'page':{{objects.previous_page_number}}})">«</a></li> {%else%}
bitbake/lib/toaster/toastergui/templates/detail_pagination_bottom.html +1 -1
@@ -7,7 +7,7 @@ {# only paginate if 10 or more rows unfiltered, all pages #} {% if object_count >= 10 %} <div> - <ul class="pagination pagination-centered"> + <ul class="pagination"> {%if objects.has_previous %} <li><a href="javascript:reload_params({'page':{{objects.previous_page_number}}})">«</a></li> {%else%}
bitbake/lib/toaster/toastergui/templates/toastertable-simple.html +1 -1
@@ -77,7 +77,7 @@ <!-- Pagination controls --> <div id="pagination-{{table_name}}"> - <ul class="pagination pagination-centered"> + <ul class="pagination"> </ul> <div class="pull-right">
bitbake/lib/toaster/toastergui/templates/toastertable.html +1 -1
@@ -91,7 +91,7 @@ <!-- Pagination controls --> <div id="pagination-{{table_name}}"> - <ul class="pagination pagination-centered"> + <ul class="pagination"> </ul> <div class="pull-right">
Signature · 1 line
1.9.1
PATCH 42/106 toaster: Style typeaheads
In reply to Belen Barros PenaOur suggestions needed some padding, hovering states and a bit more space to display.
--- .../static/css/bootstrap3-transition.css | 27 ++++++++++++++++++++++ .../lib/toaster/toastergui/templates/project.html | 2 +- .../toastergui/templates/projecttopbar.html | 2 +- 3 files changed, 29 insertions(+), 2 deletions(-)
bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +27 -0
@@ -111,3 +111,30 @@ fieldset[disabled] .btn-primary:hover { overflow-y: scroll; max-height: 350px; } + +/* Typeahead */ + +.tt-menu { + width: 120%; + padding: 10px 8px; +} + +.tt-suggestion { + padding: 3px 8px; + cursor: pointer; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; +} + +.tt-suggestion.active, +.tt-suggestion:hover { + background-color: #0081c2; + color: white; +} + +/* Build form */ + +#build-input { + width: 20em; +}
bitbake/lib/toaster/toastergui/templates/project.html +1 -1
@@ -123,7 +123,7 @@ <div class="col-lg-ff6"> <div class="input-append"> - <input id="layer-add-input" autocomplete="off" placeholder="Type a layer name" data-minlength="1" data-autocomplete="off" data-provide="typeahead" data-source="" type="text"> + <input id="layer-add-input" class="input-xlarge" autocomplete="off" placeholder="Type a layer name" data-minlength="1" data-autocomplete="off" data-provide="typeahead" data-source="" type="text"> <button id="add-layer-btn" class="btn" disabled>Add</button> </div> </div>
bitbake/lib/toaster/toastergui/templates/projecttopbar.html +1 -1
@@ -70,7 +70,7 @@ <form class="form-inline" style="margin-bottom:0px;"> <i class="icon-question-sign get-help heading-help" data-placement="left" title="" data-original-title="Type the name of one or more recipes you want to build, separated by a space. You can also specify a task by appending a colon and a task name to the recipe name, like so: <code>busybox:clean</code>"></i> <div class="input-append"> - <input id="build-input" type="text" class="huge input-xlarge build-target-input" placeholder="Type the recipe you want to build" autocomplete="off" disabled> + <input id="build-input" type="text" class="huge build-target-input" placeholder="Type the recipe you want to build" autocomplete="off" disabled> <button id="build-button" class="btn btn-primary btn-large build-button" data-project-id="{{project.id}}" disabled>Build</button> </div> </form>
Signature · 1 line
1.9.1
PATCH 43/106 toaster: Fix filters
In reply to Belen Barros PenaSet the correct size for the filter buttons, and give some white space to the 'clear filter' buttons in the toastertables.
--- bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css | 6 ++++++ bitbake/lib/toaster/toastergui/static/js/table.js | 4 ++-- bitbake/lib/toaster/toastergui/templates/basetable_top.html | 2 +- bitbake/lib/toaster/toastergui/templates/detail_sorted_header.html | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-)
bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +6 -0
@@ -138,3 +138,9 @@ fieldset[disabled] .btn-primary:hover { #build-input { width: 20em; } + +/* Clear filter tooltips in toastertables */ + +.tooltip .btn-small { + margin: 10px; +}
bitbake/lib/toaster/toastergui/static/js/table.js +2 -2
@@ -232,7 +232,7 @@ function tableInit(ctx){ /* Setup the filter button */ if (col.filter_name){ - var filterBtn = $('<a href="#" role="button" data-filter-on="' + col.filter_name + '" class="pull-right btn btn-xs" data-toggle="modal"><i class="glyphicon glyphicon-filter filtered"></i></a>'); + var filterBtn = $('<a href="#" role="button" data-filter-on="' + col.filter_name + '" class="pull-right btn btn-mini" data-toggle="modal"><i class="glyphicon glyphicon-filter filtered"></i></a>'); filterBtn.data('filter-name', col.filter_name); filterBtn.prop('id', col.filter_name);
@@ -282,7 +282,7 @@ function tableInit(ctx){ filterBtn.tooltip({ html: true, - title: '<button class="btn btn-sm btn-primary" onClick=\'$("#clear-filter-btn-'+ ctx.tableName +'").click();\'>Clear filter</button>', + title: '<button class="btn btn-small btn-primary" onClick=\'$("#clear-filter-btn-'+ ctx.tableName +'").click();\'>Clear filter</button>', placement: 'bottom', delay: { hide: 1500,
bitbake/lib/toaster/toastergui/templates/basetable_top.html +1 -1
@@ -232,7 +232,7 @@ {%if tc.orderfield%}<a {%if tc.ordericon%} class="sorted" {%endif%}href="javascript:reload_params({'page': 1, 'orderby' : '{{tc.orderfield}}' })">{{tc.name}}</a>{%else%}<span class="muted">{{tc.name}}</span>{%endif%} {%if tc.ordericon%} <i class="icon-caret-{{tc.ordericon}}"></i>{%endif%} {%if tc.filter%}<div class="btn-group pull-right"> - <a href="#filter_{{tc.filter.class}}" role="button" class="btn btn-xs {%if request.GET.filter%}{{tc.filter.options|filtered_icon:request.GET.filter}} {%endif%}" {%if request.GET.filter and tc.filter.options|filtered_tooltip:request.GET.filter %} title="<p>{{tc.filter.options|filtered_tooltip:request.GET.filter}}</p><p><a class='btn btn-sm btn-primary' href=javascript:reload_params({'filter':''})>Show all {% if filter_search_display %}{{filter_search_display}}{% else %}{{objectname}}{% endif %}</a></p>" {%endif%} data-toggle="modal"> <i class="glyphicon glyphicon-filter filtered"></i> </a> + <a href="#filter_{{tc.filter.class}}" role="button" class="btn btn-mini {%if request.GET.filter%}{{tc.filter.options|filtered_icon:request.GET.filter}} {%endif%}" {%if request.GET.filter and tc.filter.options|filtered_tooltip:request.GET.filter %} title="<p>{{tc.filter.options|filtered_tooltip:request.GET.filter}}</p><p><a class='btn btn-sm btn-primary' href=javascript:reload_params({'filter':''})>Show all {% if filter_search_display %}{{filter_search_display}}{% else %}{{objectname}}{% endif %}</a></p>" {%endif%} data-toggle="modal"> <i class="glyphicon glyphicon-filter filtered"></i> </a> </div>{%endif%} </th>{% endfor %} </tr>
bitbake/lib/toaster/toastergui/templates/detail_sorted_header.html +1 -1
@@ -17,7 +17,7 @@ <span class="badge badge-info">{{objects.paginator.count}}</span> {% endif %} {%if tc.filter%}<div class="btn-group pull-right"> - <a href="#filter_{{tc.filter.class}}" role="button" class="btn btn-xs {%if request.GET.filter%}{{tc.filter.options|filtered_icon:request.GET.filter}} {%endif%}" {%if request.GET.filter and tc.filter.options|filtered_tooltip:request.GET.filter %} title="<p>{{tc.filter.options|filtered_tooltip:request.GET.filter}}</p><p><a class='btn btn-sm btn-primary' href=javascript:reload_params({'filter':''})>Show all {% if filter_search_display %}{{filter_search_display}}{% else %}{{objectname}}{% endif %}</a></p>" {%endif%} data-toggle="modal"> <i class="glyphicon glyphicon-filter filtered"></i> </a> + <a href="#filter_{{tc.filter.class}}" role="button" class="btn btn-mini {%if request.GET.filter%}{{tc.filter.options|filtered_icon:request.GET.filter}} {%endif%}" {%if request.GET.filter and tc.filter.options|filtered_tooltip:request.GET.filter %} title="<p>{{tc.filter.options|filtered_tooltip:request.GET.filter}}</p><p><a class='btn btn-sm btn-primary' href=javascript:reload_params({'filter':''})>Show all {% if filter_search_display %}{{filter_search_display}}{% else %}{{objectname}}{% endif %}</a></p>" {%endif%} data-toggle="modal"> <i class="glyphicon glyphicon-filter filtered"></i> </a> </div>{%endif%} </th>{% endfor %} </tr>
Signature · 1 line
1.9.1
PATCH 44/106 toaster: Fix no results pages
In reply to Belen Barros PenaThe alerts we display when your search query returns no results were incorrectly aligned because of nested 'row' divs. Remove the additional rows to tidy up.
--- bitbake/lib/toaster/toastergui/templates/bpackage.html | 14 ++++++-------- bitbake/lib/toaster/toastergui/templates/configvars.html | 16 +++++++--------- bitbake/lib/toaster/toastergui/templates/recipes.html | 16 +++++++--------- bitbake/lib/toaster/toastergui/templates/tasks.html | 14 ++++++-------- .../lib/toaster/toastergui/templates/toastertable.html | 4 ++-- 5 files changed, 28 insertions(+), 36 deletions(-)
bitbake/lib/toaster/toastergui/templates/bpackage.html +6 -8
@@ -43,14 +43,12 @@ </div> {% if objects.paginator.count == 0 %} - <div class="row"> - <div class="alert"> - <form class="no-results input-append" id="searchform"> - <input id="search" name="search" class="input-xxlarge" type="text" value="{{request.GET.search}}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-append-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{% endif %} - <button class="btn" type="submit" value="Search">Search</button> - <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all packages</button> - </form> - </div> + <div class="alert"> + <form class="no-results input-append" id="searchform"> + <input id="search" name="search" class="input-xxlarge" type="text" value="{{request.GET.search}}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-append-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{% endif %} + <button class="btn" type="submit" value="Search">Search</button> + <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all packages</button> + </form> </div> {% else %}
bitbake/lib/toaster/toastergui/templates/configvars.html +7 -9
@@ -36,15 +36,13 @@ <div id="variables" class="tab-pane"> {% if objects.paginator.count == 0 %} - <div class="row"> - <div class="alert"> - <form class="no-results input-append" id="searchform"> - <input id="search" name="search" class="input-xxlarge" type="text" value="{% if request.GET.search %}{{request.GET.search}}{% endif %}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-append-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{% endif %} - <button class="btn" type="submit" value="Search">Search</button> - <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all variables</button> - </form> - </div> - </div> + <div class="alert"> + <form class="no-results input-append" id="searchform"> + <input id="search" name="search" class="input-xxlarge" type="text" value="{% if request.GET.search %}{{request.GET.search}}{% endif %}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-append-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{% endif %} + <button class="btn" type="submit" value="Search">Search</button> + <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all variables</button> + </form> + </div> {% else %} {% include "basetable_top.html" %}
bitbake/lib/toaster/toastergui/templates/recipes.html +7 -9
@@ -26,15 +26,13 @@ </div> {% if objects.paginator.count == 0 %} - <div class="row"> - <div class="alert"> - <form class="no-results input-append" id="searchform"> - <input id="search" name="search" class="input-xxlarge" type="text" value="{%if request.GET.search%}{{request.GET.search}}{%endif%}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-append-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{% endif %} - <button class="btn" type="submit" value="Search">Search</button> - <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all recipes</button> - </form> - </div> - </div> +<div class="alert"> + <form class="no-results input-append" id="searchform"> + <input id="search" name="search" class="input-xxlarge" type="text" value="{%if request.GET.search%}{{request.GET.search}}{%endif%}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-append-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{% endif %} + <button class="btn" type="submit" value="Search">Search</button> + <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all recipes</button> + </form> +</div> {% else %} {% include "basetable_top.html" %}
bitbake/lib/toaster/toastergui/templates/tasks.html +6 -8
@@ -64,14 +64,12 @@ </div> {% if objects.paginator.count == 0 %} - <div class="row"> - <div class="alert"> - <form class="no-results input-append" id="searchform"> - <input id="search" name="search" class="input-xxlarge" type="text" value="{{request.GET.search}}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-append-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{% endif %} - <button class="btn" type="submit" value="Search">Search</button> - <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all tasks</button> - </form> - </div> + <div class="alert"> + <form class="no-results input-append" id="searchform"> + <input id="search" name="search" class="input-xxlarge" type="text" value="{{request.GET.search}}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-append-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{% endif %} + <button class="btn" type="submit" value="Search">Search</button> + <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all tasks</button> + </form> </div>
bitbake/lib/toaster/toastergui/templates/toastertable.html +2 -2
@@ -25,10 +25,10 @@ {% include 'toastertable-filter.html' %} -<div class="row" id="no-results-{{table_name}}" style="display:none"> +<div id="no-results-{{table_name}}" style="display:none"> <div class="alert"> <form class="no-results input-append"> - <input id="new-search-input-{{table_name}}" name="search" type="text" placeholder="Search {{title|lower}}" value="{%if request.GET.search %}{{request.GET.search}}{%endif%}"/> + <input class="input-xlarge" id="new-search-input-{{table_name}}" name="search" type="text" placeholder="Search {{title|lower}}" value="{%if request.GET.search %}{{request.GET.search}}{%endif%}"/> <a href="#" class="input-append-addon btn remove-search-btn-{{table_name}}" tabindex="-1"> <i class="glyphicon glyphicon-remove"></i> </a>
Signature · 1 line
1.9.1
PATCH 45/106 toaster: Edit inaccurate comment
In reply to Belen Barros PenaThe changes to the definition lists applies to all pages in Toaster, and not just to the layer details page.
--- bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +1 -1
@@ -81,7 +81,7 @@ fieldset[disabled] .btn-primary:hover { width: 60%; } -/* Definition lists in the layer details page */ +/* Definition lists */ .dl-horizontal dd { margin-left: 220px;
Signature · 1 line
1.9.1
PATCH 46/106 toaster: fix buttons in tables
In reply to Belen Barros PenaBootstrap sets the white-space property in buttons to nowrap, and that made our 'remove' buttons inside table cells look funny, with the label shooting out of the button frame.
Set the white-space property for such buttons to normal, so that labels wrap when there is no sufficient horizontal space available. Also, give the button column a bit more width to minimise button wrapping, which looks rather ugly.
--- .../toaster/toastergui/static/css/bootstrap3-transition.css | 10 ++++++++++ 1 file changed, 10 insertions(+)
bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +10 -0
@@ -144,3 +144,13 @@ fieldset[disabled] .btn-primary:hover { .tooltip .btn-small { margin: 10px; } + +/* Table buttons */ + +td > .btn { + white-space: normal; +} + +th.add-del-layers { + width: 18%; +}
Signature · 1 line
1.9.1
PATCH 47/106 toaster: Fix popover content
In reply to Belen Barros PenaLists had the wrong margins, and popovers were too narrow to fit commit hashes.
--- .../toastergui/static/css/bootstrap3-transition.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +14 -0
@@ -154,3 +154,17 @@ td > .btn { th.add-del-layers { width: 18%; } + +/* Popover content */ + +.popover-content > ul { + margin-left: 0; +} + +h3.popover-title { + line-height: 20px; +} + +.popover { + max-width: 400px; +}
Signature · 1 line
1.9.1
PATCH 48/106 toaster: Tweaking modal dialogs
In reply to Belen Barros PenaGive them a nice, consistent look across pages.
--- .../toastergui/static/css/bootstrap3-transition.css | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-)
bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +12 -5
@@ -18,11 +18,6 @@ select[class^="pagesize"] { margin-bottom: 0; } -/* Modal dialog */ -.modal-footer { - background-color: #f5f5f5; -} - /* Project configuration page */ ul.configuration-list {
@@ -112,6 +107,18 @@ fieldset[disabled] .btn-primary:hover { max-height: 350px; } +.modal-body ul.list-unstyled { + margin-left: 0; +} + +.modal-footer { + background-color: #f5f5f5; +} + +.modal-content form { + margin-bottom: 0; +} + /* Typeahead */ .tt-menu {
Signature · 1 line
1.9.1
PATCH 49/106 toaster: Fix buttons in custom image details page
In reply to Belen Barros PenaMake sure the button labels in the table of packages we show in the custom image details page wrap when there is not enough space.
Also, give the add | remove packages column a bit more room.
--- bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +5 -1
@@ -154,7 +154,7 @@ fieldset[disabled] .btn-primary:hover { /* Table buttons */ -td > .btn { +td .btn { white-space: normal; }
@@ -162,6 +162,10 @@ th.add-del-layers { width: 18%; } +th.add_rm_pkg_btn { + width: 20%; +} + /* Popover content */ .popover-content > ul {
Signature · 1 line
1.9.1
PATCH 50/106 toaster: More width to the "Edit columns" menu
In reply to Belen Barros PenaIncrease the minimum width to give more space to show the menu options.
--- bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css | 6 ++++++ 1 file changed, 6 insertions(+)
bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +6 -0
@@ -166,6 +166,12 @@ th.add_rm_pkg_btn { width: 20%; } +/* Edit columsn menu */ + +.dropdown-menu { + min-width: 200px; +} + /* Popover content */ .popover-content > ul {
Signature · 1 line
1.9.1
PATCH 51/106 toaster: Adjust labels in modal dialogs
In reply to Belen Barros PenaThey had a bit too much padding.
--- bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css | 5 +++++ 1 file changed, 5 insertions(+)
bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +5 -0
@@ -119,6 +119,11 @@ fieldset[disabled] .btn-primary:hover { margin-bottom: 0; } +.modal-dialog .checkbox label, +.modal-dialog .radio label { + padding-left: 0; +} + /* Typeahead */ .tt-menu {
Signature · 1 line
1.9.1
PATCH 52/106 toaster: Fix 'New project' page
In reply to Belen Barros PenaApply Bootstrap 3 grid.
--- .../toaster/toastergui/templates/newproject.html | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-)
bitbake/lib/toaster/toastergui/templates/newproject.html +13 -13
@@ -6,17 +6,14 @@ {% block pagecontent %} <div class="row"> + <div class="col-md-12"> <div class="page-header"> <h1>Create a new project</h1> </div> - <div class="container"> {% if alert %} - <div class="alert alert-error row" role="alert">{{alert}}</div> + <div class="alert alert-error" role="alert">{{alert}}</div> {% endif %} - </div> - <div class="row"> - <div class="col-md-6"> <form method="POST">{% csrf_token %} <fieldset id="validate-project-name">
@@ -53,23 +50,26 @@ >{{release.description}}</option> {% endfor %} </select> + <div class="row"> + <div class="col-md-4"> {% for release in releases %} - <div class="row helptext" id="description-{{release.id}}" style="display: none"> - <span class="help-block col-md-5">{{release.helptext|safe}}</span> - </div> + <div class="helptext" id="description-{{release.id}}" style="display: none"> + <span class="help-block">{{release.helptext|safe}}</span> + </div> {% endfor %} {% else %} <input type="hidden" name="projectversion" value="{{releases.0.id}}"/> {% endif %} + </div> + </div> </fieldset> {% endif %} - - <div class="form-actions"> - <input type="submit" id="create-project-button" class="btn btn-primary btn-lg" value="Create project"/> + <div class="air"> + <input type="submit" id="create-project-button" class="btn btn-primary btn-large" value="Create project"/> <span class="help-inline" style="vertical-align:middle;">To create a project, you need to enter a project name</span> </div> + </form> - </div> <!-- <div class="col-md-5 well"> <span class="help-block">
@@ -84,7 +84,7 @@ <p>If you create a <strong>build project</strong>, you will need to select a <strong>release</strong>, which is the version of the build system you want to use to run your builds.</p> </div> --> - </div> + </div> </div> <script type="text/javascript">
Signature · 1 line
1.9.1
PATCH 53/106 toaster: Fix the project created notification
In reply to Belen Barros PenaIt was outside the page main column.
--- bitbake/lib/toaster/toastergui/templates/projecttopbar.html | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
bitbake/lib/toaster/toastergui/templates/projecttopbar.html +5 -6
@@ -16,13 +16,12 @@ }); </script> -<div class="alert alert-success lead" id="project-created-notification" style="margin-top:15px; display:none"> - <button type="button" class="close" data-dismiss="alert">×</button> - Your project <strong>{{project.name}}</strong> has been created. You can now <a href="{% url 'projectmachines' project.id %}">select your target machine</a> and <a href="{% url 'projectimagerecipes' project.id %}">choose image recipes</a> to build. -</div> - -<!-- project name --> <div class="col-md-12"> + <div class="alert alert-success lead" id="project-created-notification" style="margin-top:15px; display:none"> + <button type="button" class="close" data-dismiss="alert">×</button> + Your project <strong>{{project.name}}</strong> has been created. You can now <a href="{% url 'projectmachines' project.id %}">select your target machine</a> and <a href="{% url 'projectimagerecipes' project.id %}">choose image recipes</a> to build. + </div> + <!-- project name --> <div class="page-header"> <h1 id="project-name-container"> <span id="project-name">{{project.name}}</span>
Signature · 1 line
1.9.1
PATCH 54/106 toaster: Fix errors and warnings info
In reply to Belen Barros PenaBootstrap 3 changed all classes used for the accordions, which broke our presentation of errors and warnings.
--- .../static/css/bootstrap3-transition.css | 18 ++++++++++++++++ .../toastergui/templates/builddashboard.html | 25 +++++++++++----------- 2 files changed, 31 insertions(+), 12 deletions(-)
bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +18 -0
@@ -190,3 +190,21 @@ h3.popover-title { .popover { max-width: 400px; } + +/* Errors and warnings accordions */ + +#errors .panel-heading, +#warnings .panel-heading { + background-color: transparent; +} + +a.toggle-errors:hover, +a.toggle-warnings:hover, +a.warning:focus { + text-decoration: none; +} + +a.toggle-errors:focus, +a.toggle-warnings:focus { + outline: none; +}
bitbake/lib/toaster/toastergui/templates/builddashboard.html +13 -12
@@ -50,18 +50,18 @@ </div> {% if build.errors.count %} -<div class="accordion" id="errors"> - <div class="accordion-group"> - <div class="accordion-heading"> - <a class="accordion-toggle error toggle-errors"> +<div class="panel-group" id="errors"> + <div class="panel panel-default"> + <div class="panel-heading"> + <a class="panel-title error toggle-errors" href="#"> <h2 id="error-toggle"> <i class="icon-minus-sign"></i> {{build.errors.count}} error{{build.errors.count|pluralize}} </h2> </a> </div> - <div class="accordion-body collapse in" id="collapse-errors"> - <div class="accordion-inner"> + <div class="panel-collapse collapse in" id="collapse-errors"> + <div class="panel-body"> <div class="col-md-10"> {% for error in build.errors %} <div class="alert alert-error" data-error="{{ error.id }}">
@@ -239,20 +239,21 @@ </dl> </div> </div> +</div> {% if build.warnings.count %} -<div class="accordion" id="warnings"> - <div class="accordion-group"> - <div class="accordion-heading"> - <a class="accordion-toggle warning toggle-warnings"> +<div class="panel-group" id="warnings"> + <div class="panel panel-default"> + <div class="panel-heading"> + <a class="panel-title warning toggle-warnings" href="#"> <h2 id="warning-toggle"> <i class="icon-warning-sign"></i> {{build.warnings.count}} warning{{build.warnings.count|pluralize}} </h2> </a> </div> - <div class="accordion-body collapse" id="collapse-warnings"> - <div class="accordion-inner"> + <div class="panel-collapse collapse" id="collapse-warnings"> + <div class="panel-body"> <div class="col-md-10"> {% for warning in logmessages %}{% if warning.level == 1 %} <div class="alert alert-warning">
Signature · 1 line
1.9.1
PATCH 55/106 toaster: Fix landing page
In reply to Belen Barros PenaLayout was messed up due to changes in Bootstrap 3.
--- .../toastergui/static/css/bootstrap3-transition.css | 21 +++++++++++++++++++++ .../lib/toaster/toastergui/templates/landing.html | 11 ++++------- 2 files changed, 25 insertions(+), 7 deletions(-)
bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +21 -0
@@ -208,3 +208,24 @@ a.toggle-errors:focus, a.toggle-warnings:focus { outline: none; } + +/* Landing page */ + +.jumbotron p { + margin-top: 20px; + margin-bottom: 30px; +} + +.jumbotron ul { + margin-left: 10px; + font-size: 21px; + font-weight: 200; +} + +.jumbotron ul > li { + line-height: 30px; +} + +.jumbotron .img-thumbnail { + padding: 0; +}
bitbake/lib/toaster/toastergui/templates/landing.html +4 -7
@@ -6,10 +6,8 @@ {% block title %} Welcome to Toaster {% endblock %} {% block pagecontent %} - <div class="container"> <div class="row"> - <div class="jumbotron col-md-12 well-transparent"> - <div class="row"> + <div class="jumbotron well-transparent"> <div class="col-md-6"> <h1>This is Toaster</h1>
@@ -17,8 +15,8 @@ <p>A web interface to <a href="http://www.openembedded.org">OpenEmbedded</a> and <a href="http://www.yoctoproject.org/tools-resources/projects/bitbake">BitBake</a>, the <a href="http://www.yoctoproject.org">Yocto Project</a> build system.</p> {% if lvs_nos %} - <p class="hero-actions"> - <a class="btn btn-primary btn-lg" href="{% url 'newproject' %}"> + <p> + <a class="btn btn-primary btn-large" href="{% url 'newproject' %}"> To start building, create your first Toaster project </a> </p>
@@ -55,8 +53,7 @@ <img alt="Yocto Project" class="img-thumbnail" src="{% static 'img/toaster_bw.png' %}"/> </div> - </div> </div> </div> - </div> + {% endblock %}
Signature · 1 line
1.9.1
PATCH 56/106 toaster: Fix reverse dependencies modal dialogs
In reply to Belen Barros PenaIn the custom image details page, the modal dialogs we show you when you remove a package with reverse dependencies were not displaying. This patch removes the class causing the problem.
--- bitbake/lib/toaster/toastergui/templates/customrecipe.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/toaster/toastergui/templates/customrecipe.html +1 -1
@@ -66,7 +66,7 @@ <!-- end package dependencies modal --> <!-- package reverse dependencies modal --> -<div style="display:none" id="package-reverse-deps-modal" class="modal hide fade in" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false"> +<div style="display:none" id="package-reverse-deps-modal" class="modal fade in" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header">
Signature · 1 line
1.9.1
PATCH 57/106 toaster: Table cell notifications style
In reply to Belen Barros PenaMake sure they all look the same across Toaster.
--- .../lib/toaster/toastergui/static/css/bootstrap3-transition.css | 7 +++++++ 1 file changed, 7 insertions(+)
bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css +7 -0
@@ -157,6 +157,13 @@ fieldset[disabled] .btn-primary:hover { margin: 10px; } +/* Table cell notifications */ + +.inline-notification, +#temp-inline-notify { + padding: 10px; +} + /* Table buttons */ td .btn {
Signature · 1 line
1.9.1
PATCH 58/106 toaster: importlayer Make sure we eat the default event on submit
In reply to Belen Barros PenaFrom: Michael Wood <[email protected]>
Make sure the default event is consumed to stop the event being further processed and breaking out of the function to import layer.
--- bitbake/lib/toaster/toastergui/static/js/importlayer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
bitbake/lib/toaster/toastergui/static/js/importlayer.js +2 -1
@@ -105,7 +105,8 @@ function importLayerPageInit (ctx) { }, null); }); - importAndAddBtn.click(function(){ + importAndAddBtn.click(function(e){ + e.preventDefault(); /* This is a list of the names from layerDeps for the layer deps * modal dialog body */
Signature · 1 line
1.9.1
PATCH 59/106 toaster: Update OE json file
In reply to Belen Barros PenaUpdate the OpenEmbedded Toaster configuration file to include the krogoth branch. Also, make sure the DISTRO default value is set to "nodistro".
--- meta/conf/toasterconf.json | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-)
meta/conf/toasterconf.json +19 -4
@@ -1,7 +1,7 @@ { "config": { "MACHINE" : "qemux86", - "DISTRO" : "poky", + "DISTRO" : "nodistro", "DL_DIR" : "${TOPDIR}/../downloads", "IMAGE_FSTYPES": "ext3 jffs2 tar.bz2", "IMAGE_INSTALL_append": "",
@@ -13,7 +13,7 @@ "name": "Local OpenEmbedded", "sourcetype": "local", "apiurl": "../../", - "branches": ["HEAD", "master", "jethro"], + "branches": ["HEAD", "master", "jethro", "krogoth"], "layers": [ { "name": "openembedded-core",
@@ -27,13 +27,13 @@ "name": "OpenEmbedded", "sourcetype": "layerindex", "apiurl": "http://layers.openembedded.org/layerindex/api/", - "branches": ["master", "jethro"] + "branches": ["master", "jethro", "krogoth"] }, { "name": "Imported layers", "sourcetype": "imported", "apiurl": "", - "branches": ["master", "jethro", "HEAD"] + "branches": ["master", "jethro", "krogoth", "HEAD"] } ],
@@ -51,6 +51,12 @@ "dirpath": "" }, { + "name": "krogoth", + "giturl": "git://git.openembedded.org/bitbake", + "branch": "1.30", + "dirpath": "" + }, + { "name": "HEAD", "giturl": "git://git.openembedded.org/bitbake", "branch": "HEAD",
@@ -80,6 +86,15 @@ "helptext": "Toaster will run your builds with the tip of the <a href=\"http://cgit.openembedded.org/openembedded-core/log/?h=jethro\">OpenEmbedded \"Jethro\"</a> branch" }, { + "name": "krogoth", + "description": "OpenEmbedded Krogoth", + "bitbake": "krogoth", + "branch": "krogoth", + "defaultlayers": [ "openembedded-core" ], + "layersourcepriority": { "Imported layers": 99, "Local OpenEmbedded" : 10, "OpenEmbedded" : 0 }, + "helptext": "Toaster will run your builds with the tip of the <a href=\"http://cgit.openembedded.org/openembedded-core/log/?h=krogoth\">OpenEmbedded \"Krogoth\"</a> branch" + }, + { "name": "local", "description": "Local OpenEmbedded", "bitbake": "HEAD",
Signature · 1 line
1.9.1
Re: [PATCH 059/106] toaster: Update OE json file
Should be able to drop this one as it appears upstream already
Michael
Quoted 76 lines · Belen Barros Pena
Update the OpenEmbedded Toaster configuration file to include the krogoth branch. Also, make sure the DISTRO default value is set to "nodistro".
Signed-off-by Belen Barros Pena <[email protected]>--- meta/conf/toasterconf.json | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-)meta/conf/toasterconf.json +19
-4@@ -1,7 +1,7 @@ { "config": { "MACHINE" : "qemux86", - "DISTRO" : "poky", + "DISTRO" : "nodistro", "DL_DIR" : "${TOPDIR}/../downloads", "IMAGE_FSTYPES": "ext3 jffs2 tar.bz2", "IMAGE_INSTALL_append": "",@@ -13,7 +13,7 @@ "name": "Local OpenEmbedded", "sourcetype": "local", "apiurl": "../../", - "branches": ["HEAD", "master", "jethro"], + "branches": ["HEAD", "master", "jethro", "krogoth"], "layers": [ { "name": "openembedded-core",@@ -27,13 +27,13 @@ "name": "OpenEmbedded", "sourcetype": "layerindex", "apiurl": "http://layers.openembedded.org/layerindex/api/", - "branches": ["master", "jethro"] + "branches": ["master", "jethro", "krogoth"] }, { "name": "Imported layers", "sourcetype": "imported", "apiurl": "", - "branches": ["master", "jethro", "HEAD"] + "branches": ["master", "jethro", "krogoth", "HEAD"] } ],@@ -51,6 +51,12 @@ "dirpath": "" }, { + "name": "krogoth", + "giturl": "git://git.openembedded.org/bitbake", + "branch": "1.30", + "dirpath": "" + }, + { "name": "HEAD", "giturl": "git://git.openembedded.org/bitbake", "branch": "HEAD",@@ -80,6 +86,15 @@ "helptext": "Toaster will run your builds with the tip of the <a href=\"http://cgit.openembedded.org/openembedded-core/log/?h=jethro\">OpenEmbedded \"Jethro\"</a> branch" }, { + "name": "krogoth", + "description": "OpenEmbedded Krogoth", + "bitbake": "krogoth", + "branch": "krogoth", + "defaultlayers": [ "openembedded-core" ], + "layersourcepriority": { "Imported layers": 99, "Local OpenEmbedded" : 10, "OpenEmbedded" : 0 }, + "helptext": "Toaster will run your builds with the tip of the <a href=\"http://cgit.openembedded.org/openembedded-core/log/?h=krogoth\">OpenEmbedded \"Krogoth\"</a> branch" + }, + { "name": "local", "description": "Local OpenEmbedded", "bitbake": "HEAD",
PATCH 60/106 toaster: work-around our lack of a synchronous fetch for typeaheads
In reply to Belen Barros PenaFrom: Elliot Smith <[email protected]>
The Twitter typeahead.js library expects the developer to use a source which does a local search for matching suggestions, then falls back to a remote search if that doesn't return enough results.
However, in Toaster, we don't do any caching of the suggestions for a typeahead, so our source only works in asynchronous mode.
Consequently, we see fewer than the expected number of suggestions if the typeahead has already shown suggestions matching a query. For example, searching for "meta-n" in the layers typeahead will show the results for this query; but when the query changes to "meta-ne", a new set of results is fetched, which mostly overlaps with the results for "meta-n". The typeahead assumes that the overlapping items are locally cached and have been delivered synchronously, and just appends the new results which don't overlap with the previous query. But because we don't provide any results synchronously, we just end up with the single non-overlapping result in the drop-down.
This can be fixed by hacking typeahead.js so that instead of appending asynchronous results, we always overwrite and redraw the whole typeahead menu.
This is a temporary fix, and should be properly fixed (when we have time), perhaps by using typeahead.js's associated Bloodhound library.
Added a note about the hack to the license file as an explanation of why the unminified JS file is included in Toaster.
--- bitbake/LICENSE | 2 +- .../toastergui/static/js/typeahead.jquery.js | 1551 ++++++++++++++++++++ .../toastergui/static/js/typeahead.jquery.min.js | 7 - bitbake/lib/toaster/toastergui/templates/base.html | 2 +- 4 files changed, 1553 insertions(+), 9 deletions(-) create mode 100644 bitbake/lib/toaster/toastergui/static/js/typeahead.jquery.js delete mode 100644 bitbake/lib/toaster/toastergui/static/js/typeahead.jquery.min.js
bitbake/LICENSE +1 -1
@@ -8,6 +8,6 @@ Foundation and individual contributors. * Twitter Bootstrap (including Glyphicons), redistributed under the MIT license * jQuery is redistributed under the MIT license. -* Twitter typeahead.js redistributed under the MIT license. +* Twitter typeahead.js redistributed under the MIT license. Note that the JS source has one small modification, so the full unminified file is currently included to make it obvious where this is. * QUnit is redistributed under the MIT license.
bitbake/lib/toaster/toastergui/static/js/typeahead.jquery.js new file +1551 -0
1,552 lines not on this page · raw message
bitbake/lib/toaster/toastergui/static/js/typeahead.jquery.min.js deleted +0 -7
@@ -1,7 +0,0 @@ -/*! - * typeahead.js 0.11.1 - * https://github.com/twitter/typeahead.js - * Copyright 2013-2015 Twitter, Inc. and other contributors; Licensed MIT - */ - -!function(a,b){"function"==typeof define&&define.amd?define("typeahead.js",["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){var b=function(){"use strict";return{isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]:!1},isBlankString:function(a){return!a||/^\s*$/.test(a)},escapeRegExChars:function(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(a){return"string"==typeof a},isNumber:function(a){return"number"==typeof a},isArray:a.isArray,isFunction:a.isFunction,isObject:a.isPlainObject,isUndefined:function(a){return"undefined"==typeof a},isElement:function(a){return!(!a||1!==a.nodeType)},isJQuery:function(b){return b instanceof a},toStr:function(a){return b.isUndefined(a)||null===a?"":a+""},bind:a.proxy,each:function(b,c){function d(a,b){return c(b,a)}a.each(b,d)},map:a.map,filter:a.grep,every:function(b,c){var d=!0;return b?(a.each(b,function(a,e){return(d=c.call(null,e,a,b))?void 0:!1}),!!d):d},some:function(b,c){var d=!1;return b?(a.each(b,function(a,e){return(d=c.call(null,e,a,b))?!1:void 0}),!!d):d},mixin:a.extend,identity:function(a){return a},clone:function(b){return a.extend(!0,{},b)},getIdGenerator:function(){var a=0;return function(){return a++}},templatify:function(b){function c(){return String(b)}return a.isFunction(b)?b:c},defer:function(a){setTimeout(a,0)},debounce:function(a,b,c){var d,e;return function(){var f,g,h=this,i=arguments;return f=function(){d=null,c||(e=a.apply(h,i))},g=c&&!d,clearTimeout(d),d=setTimeout(f,b),g&&(e=a.apply(h,i)),e}},throttle:function(a,b){var c,d,e,f,g,h;return g=0,h=function(){g=new Date,e=null,f=a.apply(c,d)},function(){var i=new Date,j=b-(i-g);return c=this,d=arguments,0>=j?(clearTimeout(e),e=null,g=i,f=a.apply(c,d)):e||(e=setTimeout(h,j)),f}},stringify:function(a){return b.isString(a)?a:JSON.stringify(a)},noop:function(){}}}(),c=function(){"use strict";function a(a){var g,h;return h=b.mixin({},f,a),g={css:e(),classes:h,html:c(h),selectors:d(h)},{css:g.css,html:g.html,classes:g.classes,selectors:g.selectors,mixin:function(a){b.mixin(a,g)}}}function c(a){return{wrapper:'<span class="'+a.wrapper+'"></span>',menu:'<div class="'+a.menu+'"></div>'}}function d(a){var c={};return b.each(a,function(a,b){c[b]="."+a}),c}function e(){var a={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},menu:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};return b.isMsie()&&b.mixin(a.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),a}var f={wrapper:"twitter-typeahead",input:"tt-input",hint:"tt-hint",menu:"tt-menu",dataset:"tt-dataset",suggestion:"tt-suggestion",selectable:"tt-selectable",empty:"tt-empty",open:"tt-open",cursor:"tt-cursor",highlight:"tt-highlight"};return a}(),d=function(){"use strict";function c(b){b&&b.el||a.error("EventBus initialized without el"),this.$el=a(b.el)}var d,e;return d="typeahead:",e={render:"rendered",cursorchange:"cursorchanged",select:"selected",autocomplete:"autocompleted"},b.mixin(c.prototype,{_trigger:function(b,c){var e;return e=a.Event(d+b),(c=c||[]).unshift(e),this.$el.trigger.apply(this.$el,c),e},before:function(a){var b,c;return b=[].slice.call(arguments,1),c=this._trigger("before"+a,b),c.isDefaultPrevented()},trigger:function(a){var b;this._trigger(a,[].slice.call(arguments,1)),(b=e[a])&&this._trigger(b,[].slice.call(arguments,1))}}),c}(),e=function(){"use strict";function a(a,b,c,d){var e;if(!c)return this;for(b=b.split(i),c=d?h(c,d):c,this._callbacks=this._callbacks||{};e=b.shift();)this._callbacks[e]=this._callbacks[e]||{sync:[],async:[]},this._callbacks[e][a].push(c);return this}function b(b,c,d){return a.call(this,"async",b,c,d)}function c(b,c,d){return a.call(this,"sync",b,c,d)}function d(a){var b;if(!this._callbacks)return this;for(a=a.split(i);b=a.shift();)delete this._callbacks[b];return this}function e(a){var b,c,d,e,g;if(!this._callbacks)return this;for(a=a.split(i),d=[].slice.call(arguments,1);(b=a.shift())&&(c=this._callbacks[b]);)e=f(c.sync,this,[b].concat(d)),g=f(c.async,this,[b].concat(d)),e()&&j(g);return this}function f(a,b,c){function d(){for(var d,e=0,f=a.length;!d&&f>e;e+=1)d=a[e].apply(b,c)===!1;return!d}return d}function g(){var a;return a=window.setImmediate?function(a){setImmediate(function(){a()})}:function(a){setTimeout(function(){a()},0)}}function h(a,b){return a.bind?a.bind(b):function(){a.apply(b,[].slice.call(arguments,0))}}var i=/\s+/,j=g();return{onSync:c,onAsync:b,off:d,trigger:e}}(),f=function(a){"use strict";function c(a,c,d){for(var e,f=[],g=0,h=a.length;h>g;g++)f.push(b.escapeRegExChars(a[g]));return e=d?"\\b("+f.join("|")+")\\b":"("+f.join("|")+")",c?new RegExp(e):new RegExp(e,"i")}var d={node:null,pattern:null,tagName:"strong",className:null,wordsOnly:!1,caseSensitive:!1};return function(e){function f(b){var c,d,f;return(c=h.exec(b.data))&&(f=a.createElement(e.tagName),e.className&&(f.className=e.className),d=b.splitText(c.index),d.splitText(c[0].length),f.appendChild(d.cloneNode(!0)),b.parentNode.replaceChild(f,d)),!!c}function g(a,b){for(var c,d=3,e=0;e<a.childNodes.length;e++)c=a.childNodes[e],c.nodeType===d?e+=b(c)?1:0:g(c,b)}var h;e=b.mixin({},d,e),e.node&&e.pattern&&(e.pattern=b.isArray(e.pattern)?e.pattern:[e.pattern],h=c(e.pattern,e.caseSensitive,e.wordsOnly),g(e.node,f))}}(window.document),g=function(){"use strict";function c(c,e){c=c||{},c.input||a.error("input is missing"),e.mixin(this),this.$hint=a(c.hint),this.$input=a(c.input),this.query=this.$input.val(),this.queryWhenFocused=this.hasFocus()?this.query:null,this.$overflowHelper=d(this.$input),this._checkLanguageDirection(),0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=b.noop)}function d(b){return a('<pre aria-hidden="true"></pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:b.css("font-family"),fontSize:b.css("font-size"),fontStyle:b.css("font-style"),fontVariant:b.css("font-variant"),fontWeight:b.css("font-weight"),wordSpacing:b.css("word-spacing"),letterSpacing:b.css("letter-spacing"),textIndent:b.css("text-indent"),textRendering:b.css("text-rendering"),textTransform:b.css("text-transform")}).insertAfter(b)}function f(a,b){return c.normalizeQuery(a)===c.normalizeQuery(b)}function g(a){return a.altKey||a.ctrlKey||a.metaKey||a.shiftKey}var h;return h={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"},c.normalizeQuery=function(a){return b.toStr(a).replace(/^\s*/g,"").replace(/\s{2,}/g," ")},b.mixin(c.prototype,e,{_onBlur:function(){this.resetInputValue(),this.trigger("blurred")},_onFocus:function(){this.queryWhenFocused=this.query,this.trigger("focused")},_onKeydown:function(a){var b=h[a.which||a.keyCode];this._managePreventDefault(b,a),b&&this._shouldTrigger(b,a)&&this.trigger(b+"Keyed",a)},_onInput:function(){this._setQuery(this.getInputValue()),this.clearHintIfInvalid(),this._checkLanguageDirection()},_managePreventDefault:function(a,b){var c;switch(a){case"up":case"down":c=!g(b);break;default:c=!1}c&&b.preventDefault()},_shouldTrigger:function(a,b){var c;switch(a){case"tab":c=!g(b);break;default:c=!0}return c},_checkLanguageDirection:function(){var a=(this.$input.css("direction")||"ltr").toLowerCase();this.dir!==a&&(this.dir=a,this.$hint.attr("dir",a),this.trigger("langDirChanged",a))},_setQuery:function(a,b){var c,d;c=f(a,this.query),d=c?this.query.length!==a.length:!1,this.query=a,b||c?!b&&d&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},bind:function(){var a,c,d,e,f=this;return a=b.bind(this._onBlur,this),c=b.bind(this._onFocus,this),d=b.bind(this._onKeydown,this),e=b.bind(this._onInput,this),this.$input.on("blur.tt",a).on("focus.tt",c).on("keydown.tt",d),!b.isMsie()||b.isMsie()>9?this.$input.on("input.tt",e):this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",function(a){h[a.which||a.keyCode]||b.defer(b.bind(f._onInput,f,a))}),this},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getLangDir:function(){return this.dir},getQuery:function(){return this.query||""},setQuery:function(a,b){this.setInputValue(a),this._setQuery(a,b)},hasQueryChangedSinceLastFocus:function(){return this.query!==this.queryWhenFocused},getInputValue:function(){return this.$input.val()},setInputValue:function(a){this.$input.val(a),this.clearHintIfInvalid(),this._checkLanguageDirection()},resetInputValue:function(){this.setInputValue(this.query)},getHint:function(){return this.$hint.val()},setHint:function(a){this.$hint.val(a)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var a,b,c,d;a=this.getInputValue(),b=this.getHint(),c=a!==b&&0===b.indexOf(a),d=""!==a&&c&&!this.hasOverflow(),!d&&this.clearHint()},hasFocus:function(){return this.$input.is(":focus")},hasOverflow:function(){var a=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=a},isCursorAtEnd:function(){var a,c,d;return a=this.$input.val().length,c=this.$input[0].selectionStart,b.isNumber(c)?c===a:document.selection?(d=document.selection.createRange(),d.moveStart("character",-a),a===d.text.length):!0},destroy:function(){this.$hint.off(".tt"),this.$input.off(".tt"),this.$overflowHelper.remove(),this.$hint=this.$input=this.$overflowHelper=a("<div>")}}),c}(),h=function(){"use strict";function c(c,e){c=c||{},c.templates=c.templates||{},c.templates.notFound=c.templates.notFound||c.templates.empty,c.source||a.error("missing source"),c.node||a.error("missing node"),c.name&&!h(c.name)&&a.error("invalid dataset name: "+c.name),e.mixin(this),this.highlight=!!c.highlight,this.name=c.name||j(),this.limit=c.limit||5,this.displayFn=d(c.display||c.displayKey),this.templates=g(c.templates,this.displayFn),this.source=c.source.__ttAdapter?c.source.__ttAdapter():c.source,this.async=b.isUndefined(c.async)?this.source.length>2:!!c.async,this._resetLastSuggestion(),this.$el=a(c.node).addClass(this.classes.dataset).addClass(this.classes.dataset+"-"+this.name)}function d(a){function c(b){return b[a]}return a=a||b.stringify,b.isFunction(a)?a:c}function g(c,d){function e(b){return a("<div>").text(d(b))}return{notFound:c.notFound&&b.templatify(c.notFound),pending:c.pending&&b.templatify(c.pending),header:c.header&&b.templatify(c.header),footer:c.footer&&b.templatify(c.footer),suggestion:c.suggestion||e}}function h(a){return/^[_a-zA-Z0-9-]+$/.test(a)}var i,j;return i={val:"tt-selectable-display",obj:"tt-selectable-object"},j=b.getIdGenerator(),c.extractData=function(b){var c=a(b);return c.data(i.obj)?{val:c.data(i.val)||"",obj:c.data(i.obj)||null}:null},b.mixin(c.prototype,e,{_overwrite:function(a,b){b=b||[],b.length?this._renderSuggestions(a,b):this.async&&this.templates.pending?this._renderPending(a):!this.async&&this.templates.notFound?this._renderNotFound(a):this._empty(),this.trigger("rendered",this.name,b,!1)},_append:function(a,b){b=b||[],b.length&&this.$lastSuggestion.length?this._appendSuggestions(a,b):b.length?this._renderSuggestions(a,b):!this.$lastSuggestion.length&&this.templates.notFound&&this._renderNotFound(a),this.trigger("rendered",this.name,b,!0)},_renderSuggestions:function(a,b){var c;c=this._getSuggestionsFragment(a,b),this.$lastSuggestion=c.children().last(),this.$el.html(c).prepend(this._getHeader(a,b)).append(this._getFooter(a,b))},_appendSuggestions:function(a,b){var c,d;c=this._getSuggestionsFragment(a,b),d=c.children().last(),this.$lastSuggestion.after(c),this.$lastSuggestion=d},_renderPending:function(a){var b=this.templates.pending;this._resetLastSuggestion(),b&&this.$el.html(b({query:a,dataset:this.name}))},_renderNotFound:function(a){var b=this.templates.notFound;this._resetLastSuggestion(),b&&this.$el.html(b({query:a,dataset:this.name}))},_empty:function(){this.$el.empty(),this._resetLastSuggestion()},_getSuggestionsFragment:function(c,d){var e,g=this;return e=document.createDocumentFragment(),b.each(d,function(b){var d,f;f=g._injectQuery(c,b),d=a(g.templates.suggestion(f)).data(i.obj,b).data(i.val,g.displayFn(b)).addClass(g.classes.suggestion+" "+g.classes.selectable),e.appendChild(d[0])}),this.highlight&&f({className:this.classes.highlight,node:e,pattern:c}),a(e)},_getFooter:function(a,b){return this.templates.footer?this.templates.footer({query:a,suggestions:b,dataset:this.name}):null},_getHeader:function(a,b){return this.templates.header?this.templates.header({query:a,suggestions:b,dataset:this.name}):null},_resetLastSuggestion:function(){this.$lastSuggestion=a()},_injectQuery:function(a,c){return b.isObject(c)?b.mixin({_query:a},c):c},update:function(b){function c(a){g||(g=!0,a=(a||[]).slice(0,e.limit),h=a.length,e._overwrite(b,a),h<e.limit&&e.async&&e.trigger("asyncRequested",b))}function d(c){c=c||[],!f&&h<e.limit&&(e.cancel=a.noop,h+=c.length,e._append(b,c.slice(0,e.limit-h)),e.async&&e.trigger("asyncReceived",b))}var e=this,f=!1,g=!1,h=0;this.cancel(),this.cancel=function(){f=!0,e.cancel=a.noop,e.async&&e.trigger("asyncCanceled",b)},this.source(b,c,d),!g&&c([])},cancel:a.noop,clear:function(){this._empty(),this.cancel(),this.trigger("cleared")},isEmpty:function(){return this.$el.is(":empty")},destroy:function(){this.$el=a("<div>")}}),c}(),i=function(){"use strict";function c(c,d){function e(b){var c=f.$node.find(b.node).first();return b.node=c.length?c:a("<div>").appendTo(f.$node),new h(b,d)}var f=this;c=c||{},c.node||a.error("node is required"),d.mixin(this),this.$node=a(c.node),this.query=null,this.datasets=b.map(c.datasets,e)}return b.mixin(c.prototype,e,{_onSelectableClick:function(b){this.trigger("selectableClicked",a(b.currentTarget))},_onRendered:function(a,b,c,d){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty()),this.trigger("datasetRendered",b,c,d)},_onCleared:function(){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty()),this.trigger("datasetCleared")},_propagate:function(){this.trigger.apply(this,arguments)},_allDatasetsEmpty:function(){function a(a){return a.isEmpty()}return b.every(this.datasets,a)},_getSelectables:function(){return this.$node.find(this.selectors.selectable)},_removeCursor:function(){var a=this.getActiveSelectable();a&&a.removeClass(this.classes.cursor)},_ensureVisible:function(a){var b,c,d,e;b=a.position().top,c=b+a.outerHeight(!0),d=this.$node.scrollTop(),e=this.$node.height()+parseInt(this.$node.css("paddingTop"),10)+parseInt(this.$node.css("paddingBottom"),10),0>b?this.$node.scrollTop(d+b):c>e&&this.$node.scrollTop(d+(c-e))},bind:function(){var a,c=this;return a=b.bind(this._onSelectableClick,this),this.$node.on("click.tt",this.selectors.selectable,a),b.each(this.datasets,function(a){a.onSync("asyncRequested",c._propagate,c).onSync("asyncCanceled",c._propagate,c).onSync("asyncReceived",c._propagate,c).onSync("rendered",c._onRendered,c).onSync("cleared",c._onCleared,c)}),this},isOpen:function(){return this.$node.hasClass(this.classes.open)},open:function(){this.$node.addClass(this.classes.open)},close:function(){this.$node.removeClass(this.classes.open),this._removeCursor()},setLanguageDirection:function(a){this.$node.attr("dir",a)},selectableRelativeToCursor:function(a){var b,c,d,e;return c=this.getActiveSelectable(),b=this._getSelectables(),d=c?b.index(c):-1,e=d+a,e=(e+1)%(b.length+1)-1,e=-1>e?b.length-1:e,-1===e?null:b.eq(e)},setCursor:function(a){this._removeCursor(),(a=a&&a.first())&&(a.addClass(this.classes.cursor),this._ensureVisible(a))},getSelectableData:function(a){return a&&a.length?h.extractData(a):null},getActiveSelectable:function(){var a=this._getSelectables().filter(this.selectors.cursor).first();return a.length?a:null},getTopSelectable:function(){var a=this._getSelectables().first();return a.length?a:null},update:function(a){function c(b){b.update(a)}var d=a!==this.query;return d&&(this.query=a,b.each(this.datasets,c)),d},empty:function(){function a(a){a.clear()}b.each(this.datasets,a),this.query=null,this.$node.addClass(this.classes.empty)},destroy:function(){function c(a){a.destroy()}this.$node.off(".tt"),this.$node=a("<div>"),b.each(this.datasets,c)}}),c}(),j=function(){"use strict";function a(){i.apply(this,[].slice.call(arguments,0))}var c=i.prototype;return b.mixin(a.prototype,i.prototype,{open:function(){return!this._allDatasetsEmpty()&&this._show(),c.open.apply(this,[].slice.call(arguments,0))},close:function(){return this._hide(),c.close.apply(this,[].slice.call(arguments,0))},_onRendered:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),c._onRendered.apply(this,[].slice.call(arguments,0))},_onCleared:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),c._onCleared.apply(this,[].slice.call(arguments,0))},setLanguageDirection:function(a){return this.$node.css("ltr"===a?this.css.ltr:this.css.rtl),c.setLanguageDirection.apply(this,[].slice.call(arguments,0))},_hide:function(){this.$node.hide()},_show:function(){this.$node.css("display","block")}}),a}(),k=function(){"use strict";function c(c,e){var f,g,h,i,j,k,l,m,n,o,p;c=c||{},c.input||a.error("missing input"),c.menu||a.error("missing menu"),c.eventBus||a.error("missing event bus"),e.mixin(this),this.eventBus=c.eventBus,this.minLength=b.isNumber(c.minLength)?c.minLength:1,this.input=c.input,this.menu=c.menu,this.enabled=!0,this.active=!1,this.input.hasFocus()&&this.activate(),this.dir=this.input.getLangDir(),this._hacks(),this.menu.bind().onSync("selectableClicked",this._onSelectableClicked,this).onSync("asyncRequested",this._onAsyncRequested,this).onSync("asyncCanceled",this._onAsyncCanceled,this).onSync("asyncReceived",this._onAsyncReceived,this).onSync("datasetRendered",this._onDatasetRendered,this).onSync("datasetCleared",this._onDatasetCleared,this),f=d(this,"activate","open","_onFocused"),g=d(this,"deactivate","_onBlurred"),h=d(this,"isActive","isOpen","_onEnterKeyed"),i=d(this,"isActive","isOpen","_onTabKeyed"),j=d(this,"isActive","_onEscKeyed"),k=d(this,"isActive","open","_onUpKeyed"),l=d(this,"isActive","open","_onDownKeyed"),m=d(this,"isActive","isOpen","_onLeftKeyed"),n=d(this,"isActive","isOpen","_onRightKeyed"),o=d(this,"_openIfActive","_onQueryChanged"),p=d(this,"_openIfActive","_onWhitespaceChanged"),this.input.bind().onSync("focused",f,this).onSync("blurred",g,this).onSync("enterKeyed",h,this).onSync("tabKeyed",i,this).onSync("escKeyed",j,this).onSync("upKeyed",k,this).onSync("downKeyed",l,this).onSync("leftKeyed",m,this).onSync("rightKeyed",n,this).onSync("queryChanged",o,this).onSync("whitespaceChanged",p,this).onSync("langDirChanged",this._onLangDirChanged,this)}function d(a){var c=[].slice.call(arguments,1);return function(){var d=[].slice.call(arguments);b.each(c,function(b){return a[b].apply(a,d)})}}return b.mixin(c.prototype,{_hacks:function(){var c,d;c=this.input.$input||a("<div>"),d=this.menu.$node||a("<div>"),c.on("blur.tt",function(a){var e,f,g;e=document.activeElement,f=d.is(e),g=d.has(e).length>0,b.isMsie()&&(f||g)&&(a.preventDefault(),a.stopImmediatePropagation(),b.defer(function(){c.focus()}))}),d.on("mousedown.tt",function(a){a.preventDefault()})},_onSelectableClicked:function(a,b){this.select(b)},_onDatasetCleared:function(){this._updateHint()},_onDatasetRendered:function(a,b,c,d){this._updateHint(),this.eventBus.trigger("render",c,d,b)},_onAsyncRequested:function(a,b,c){this.eventBus.trigger("asyncrequest",c,b)},_onAsyncCanceled:function(a,b,c){this.eventBus.trigger("asynccancel",c,b)},_onAsyncReceived:function(a,b,c){this.eventBus.trigger("asyncreceive",c,b)},_onFocused:function(){this._minLengthMet()&&this.menu.update(this.input.getQuery())},_onBlurred:function(){this.input.hasQueryChangedSinceLastFocus()&&this.eventBus.trigger("change",this.input.getQuery())},_onEnterKeyed:function(a,b){var c;(c=this.menu.getActiveSelectable())&&this.select(c)&&b.preventDefault()},_onTabKeyed:function(a,b){var c;(c=this.menu.getActiveSelectable())?this.select(c)&&b.preventDefault():(c=this.menu.getTopSelectable())&&this.autocomplete(c)&&b.preventDefault()},_onEscKeyed:function(){this.close()},_onUpKeyed:function(){this.moveCursor(-1)},_onDownKeyed:function(){this.moveCursor(1)},_onLeftKeyed:function(){"rtl"===this.dir&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onRightKeyed:function(){"ltr"===this.dir&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onQueryChanged:function(a,b){this._minLengthMet(b)?this.menu.update(b):this.menu.empty()},_onWhitespaceChanged:function(){this._updateHint()},_onLangDirChanged:function(a,b){this.dir!==b&&(this.dir=b,this.menu.setLanguageDirection(b))},_openIfActive:function(){this.isActive()&&this.open()},_minLengthMet:function(a){return a=b.isString(a)?a:this.input.getQuery()||"",a.length>=this.minLength},_updateHint:function(){var a,c,d,e,f,h,i;a=this.menu.getTopSelectable(),c=this.menu.getSelectableData(a),d=this.input.getInputValue(),!c||b.isBlankString(d)||this.input.hasOverflow()?this.input.clearHint():(e=g.normalizeQuery(d),f=b.escapeRegExChars(e),h=new RegExp("^(?:"+f+")(.+$)","i"),i=h.exec(c.val),i&&this.input.setHint(d+i[1]))},isEnabled:function(){return this.enabled},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},isActive:function(){return this.active},activate:function(){return this.isActive()?!0:!this.isEnabled()||this.eventBus.before("active")?!1:(this.active=!0,this.eventBus.trigger("active"),!0)},deactivate:function(){return this.isActive()?this.eventBus.before("idle")?!1:(this.active=!1,this.close(),this.eventBus.trigger("idle"),!0):!0},isOpen:function(){return this.menu.isOpen()},open:function(){return this.isOpen()||this.eventBus.before("open")||(this.menu.open(),this._updateHint(),this.eventBus.trigger("open")),this.isOpen()},close:function(){return this.isOpen()&&!this.eventBus.before("close")&&(this.menu.close(),this.input.clearHint(),this.input.resetInputValue(),this.eventBus.trigger("close")),!this.isOpen()},setVal:function(a){this.input.setQuery(b.toStr(a))},getVal:function(){return this.input.getQuery()},select:function(a){var b=this.menu.getSelectableData(a);return b&&!this.eventBus.before("select",b.obj)?(this.input.setQuery(b.val,!0),this.eventBus.trigger("select",b.obj),this.close(),!0):!1},autocomplete:function(a){var b,c,d;return b=this.input.getQuery(),c=this.menu.getSelectableData(a),d=c&&b!==c.val,d&&!this.eventBus.before("autocomplete",c.obj)?(this.input.setQuery(c.val),this.eventBus.trigger("autocomplete",c.obj),!0):!1},moveCursor:function(a){var b,c,d,e,f;return b=this.input.getQuery(),c=this.menu.selectableRelativeToCursor(a),d=this.menu.getSelectableData(c),e=d?d.obj:null,f=this._minLengthMet()&&this.menu.update(b),f||this.eventBus.before("cursorchange",e)?!1:(this.menu.setCursor(c),d?this.input.setInputValue(d.val):(this.input.resetInputValue(),this._updateHint()),this.eventBus.trigger("cursorchange",e),!0)},destroy:function(){this.input.destroy(),this.menu.destroy()}}),c}();!function(){"use strict";function e(b,c){b.each(function(){var b,d=a(this);(b=d.data(p.typeahead))&&c(b,d)})}function f(a,b){return a.clone().addClass(b.classes.hint).removeData().css(b.css.hint).css(l(a)).prop("readonly",!0).removeAttr("id name placeholder required").attr({autocomplete:"off",spellcheck:"false",tabindex:-1})}function h(a,b){a.data(p.attrs,{dir:a.attr("dir"),autocomplete:a.attr("autocomplete"),spellcheck:a.attr("spellcheck"),style:a.attr("style")}),a.addClass(b.classes.input).attr({autocomplete:"off",spellcheck:!1});try{!a.attr("dir")&&a.attr("dir","auto")}catch(c){}return a}function l(a){return{backgroundAttachment:a.css("background-attachment"),backgroundClip:a.css("background-clip"),backgroundColor:a.css("background-color"),backgroundImage:a.css("background-image"),backgroundOrigin:a.css("background-origin"),backgroundPosition:a.css("background-position"),backgroundRepeat:a.css("background-repeat"),backgroundSize:a.css("background-size")}}function m(a){var c,d;c=a.data(p.www),d=a.parent().filter(c.selectors.wrapper),b.each(a.data(p.attrs),function(c,d){b.isUndefined(c)?a.removeAttr(d):a.attr(d,c)}),a.removeData(p.typeahead).removeData(p.www).removeData(p.attr).removeClass(c.classes.input),d.length&&(a.detach().insertAfter(d),d.remove())}function n(c){var d,e;return d=b.isJQuery(c)||b.isElement(c),e=d?a(c).first():[],e.length?e:null}var o,p,q;o=a.fn.typeahead,p={www:"tt-www",attrs:"tt-attrs",typeahead:"tt-typeahead"},q={initialize:function(e,l){function m(){var c,m,q,r,s,t,u,v,w,x,y;b.each(l,function(a){a.highlight=!!e.highlight}),c=a(this),m=a(o.html.wrapper),q=n(e.hint),r=n(e.menu),s=e.hint!==!1&&!q,t=e.menu!==!1&&!r,s&&(q=f(c,o)),t&&(r=a(o.html.menu).css(o.css.menu)),q&&q.val(""),c=h(c,o),(s||t)&&(m.css(o.css.wrapper),c.css(s?o.css.input:o.css.inputWithNoHint),c.wrap(m).parent().prepend(s?q:null).append(t?r:null)),y=t?j:i,u=new d({el:c}),v=new g({hint:q,input:c},o),w=new y({node:r,datasets:l},o),x=new k({input:v,menu:w,eventBus:u,minLength:e.minLength},o),c.data(p.www,o),c.data(p.typeahead,x)}var o;return l=b.isArray(l)?l:[].slice.call(arguments,1),e=e||{},o=c(e.classNames),this.each(m)},isEnabled:function(){var a;return e(this.first(),function(b){a=b.isEnabled()}),a},enable:function(){return e(this,function(a){a.enable()}),this},disable:function(){return e(this,function(a){a.disable()}),this},isActive:function(){var a;return e(this.first(),function(b){a=b.isActive()}),a},activate:function(){return e(this,function(a){a.activate()}),this},deactivate:function(){return e(this,function(a){a.deactivate()}),this},isOpen:function(){var a;return e(this.first(),function(b){a=b.isOpen()}),a},open:function(){return e(this,function(a){a.open()}),this},close:function(){return e(this,function(a){a.close()}),this},select:function(b){var c=!1,d=a(b);return e(this.first(),function(a){c=a.select(d)}),c},autocomplete:function(b){var c=!1,d=a(b);return e(this.first(),function(a){c=a.autocomplete(d)}),c},moveCursor:function(a){var b=!1;return e(this.first(),function(c){b=c.moveCursor(a)}),b},val:function(a){var b;return arguments.length?(e(this,function(b){b.setVal(a)}),this):(e(this.first(),function(a){b=a.getVal()}),b)},destroy:function(){return e(this,function(a,b){m(b),a.destroy()}),this}},a.fn.typeahead=function(a){return q[a]?q[a].apply(this,[].slice.call(arguments,1)):q.initialize.apply(this,arguments)},a.fn.typeahead.noConflict=function(){return a.fn.typeahead=o,this}}()});
bitbake/lib/toaster/toastergui/templates/base.html +1 -1
@@ -22,7 +22,7 @@ </script> <script src="{% static 'js/bootstrap.min.js' %}"> </script> - <script src="{% static 'js/typeahead.jquery.min.js' %}"> + <script src="{% static 'js/typeahead.jquery.js' %}"> </script> <script src="{% static 'js/prettify.js' %}"> </script>
Signature · 1 line
1.9.1
PATCH 61/106 toaster: Remove old bootstrap files left behind
In reply to Belen Barros PenaFrom: Michael Wood <[email protected]>
--- .../static/img/glyphicons-halflings-white.png | Bin 8777 -> 0 bytes .../toastergui/static/img/glyphicons-halflings.png | Bin 12799 -> 0 bytes 2 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 bitbake/lib/toaster/toastergui/static/img/glyphicons-halflings-white.png delete mode 100644 bitbake/lib/toaster/toastergui/static/img/glyphicons-halflings.png
bitbake/lib/toaster/toastergui/static/img/glyphicons-halflings-white.png deleted binary +0 -0
bitbake/lib/toaster/toastergui/static/img/glyphicons-halflings.png deleted binary +0 -0
Signature · 1 line
1.9.1
PATCH 62/106 toaster: Fix the custom image modal dialogs
In reply to Belen Barros PenaThe markup for modal dialogs has changed in Bootstrap 3, so had to be changed accordingly in the custom image modal dialogs.
--- .../toastergui/templates/newcustomimage_modal.html | 50 ++++++++++++---------- 1 file changed, 27 insertions(+), 23 deletions(-)
bitbake/lib/toaster/toastergui/templates/newcustomimage_modal.html +27 -23
@@ -13,36 +13,40 @@ </script> <div class="modal fade" id="new-custom-image-modal" aria-hidden="false"> - <div class="modal-header"> - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> - <h3>New custom image</h3> - </div> + <div class="modal-dialog"> + <div class="modal-content"> + <div class="modal-header"> + <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> + <h3>New custom image</h3> + </div> - <div class="modal-body"> - <!-- + <div class="modal-body"> + <!-- this container is visible if there are multiple image recipes which could be used as a basis for the new custom image; radio buttons are added to it via newCustomImageModalSetRecipes() as required --> - <div data-role="image-selector" style="display:none;"> - <h4>Which image do you want to customise?</h4> - <div data-role="image-selector-radios"></div> - <span class="help-block error" id="invalid-recipe-help" style="display:none"></span> - <div class="air"></div> - </div> + <div data-role="image-selector" style="display:none;"> + <h4>Which image do you want to customise?</h4> + <div data-role="image-selector-radios"></div> + <span class="help-block error" id="invalid-recipe-help" style="display:none"></span> + <div class="air"></div> + </div> - <h4>Name your custom image</h4> + <h4>Name your custom image</h4> - <div class="row"> - <span class="help-block col-md-8">Image names must be unique. They should not contain spaces or capital letters, and the only allowed special character is dash (-).<p></p> - </span></div> - <div class="control-group controls"> - <input type="text" class="huge" placeholder="Type the custom image name" required> - <span class="help-block error" id="invalid-name-help" style="display:none"></span> - </div> - </div> + <div class="row"> + <span class="help-block col-md-8">Image names must be unique. They should not contain spaces or capital letters, and the only allowed special character is dash (-).<p></p> + </span></div> + <div class="control-group controls"> + <input type="text" class="huge" placeholder="Type the custom image name" required> + <span class="help-block error" id="invalid-name-help" style="display:none"></span> + </div> + </div> - <div class="modal-footer"> - <button id="create-new-custom-image-btn" class="btn btn-primary btn-large" data-original-title="" title="" disabled>Create custom image</button> + <div class="modal-footer"> + <button id="create-new-custom-image-btn" class="btn btn-primary btn-large" data-original-title="" title="" disabled>Create custom image</button> + </div> + </div> </div> </div>
Signature · 1 line
1.9.1
PATCH 63/106 toaster: Comment out unnecessary css
In reply to Belen Barros PenaComment out the Bootstrap 2 theme, the prettify file (I don't think we need this), the css customisations made in preparation for the migration to Boostrap 3, and our current default.css. The idea is to start from the default Bootstrap 3 theme.
--- bitbake/lib/toaster/toastergui/templates/base.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
bitbake/lib/toaster/toastergui/templates/base.html +4 -4
@@ -8,11 +8,11 @@ {% block title %} Toaster {% endblock %} </title> <link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}" type="text/css"/> - <link rel="stylesheet" href="{% static 'css/bootstrap-toaster-theme.min.css' %}" type='text/css'/> + <!--link rel="stylesheet" href="{% static 'css/bootstrap-toaster-theme.min.css' %}" type='text/css'/--> <link rel="stylesheet" href="{% static 'css/font-awesome.min.css' %}" type='text/css'/> - <link rel="stylesheet" href="{% static 'css/prettify.css' %}" type='text/css'/> - <link rel="stylesheet" href="{% static 'css/default.css' %}" type='text/css'/> - <link rel="stylesheet" href="{% static 'css/bootstrap3-transition.css' %}" type='text/css' /> + <!--link rel="stylesheet" href="{% static 'css/prettify.css' %}" type='text/css'/--> + <!--link rel="stylesheet" href="{% static 'css/default.css' %}" type='text/css'/--> + <!--link rel="stylesheet" href="{% static 'css/bootstrap3-transition.css' %}" type='text/css' /--> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
Signature · 1 line
1.9.1
PATCH 64/106 toaster: Create new custom css file
In reply to Belen Barros PenaMost of our old default.css file will no longer apply to the Bootstrap 3 theme, so create a new one with the initial styles for our fixed top navigation bar.
--- .../lib/toaster/toastergui/static/css/default.css | 368 +-------------------- 1 file changed, 8 insertions(+), 360 deletions(-)
bitbake/lib/toaster/toastergui/static/css/default.css +8 -360
@@ -1,363 +1,11 @@ -/* Style the Yocto Project logo */ -.logo img { height: 30px; width: auto !important; } -.logo { padding-top: 4px !important; padding-bottom:0px !important; } - -/* style the version information */ -.brand > a { color: #777; } -.brand > a:hover { color: #999; text-decoration: none; } -.icon-info-sign { color: #777; font-size: 16px; margin-left: 5px;} -.icon-info-sign:hover { color: #999; cursor: pointer; } - -/* Style the breadcrumb */ -.breadcrumb { display: inline-block; background-color: transparent; } - -/* Styles for the help information */ -.get-help { color: #CCCCCC; } -.get-help:hover, .icon-plus-sign:hover { color: #999999; cursor: pointer; } -.get-help-green { color: #468847; } -.get-help-green:hover { color: #347132; cursor: pointer; } -.get-help-blue { color: #3A87AD; } -.get-help-blue:hover { color: #005580; cursor: pointer; } -.get-help-yellow { color: #C09853; } -.get-help-yellow:hover { color: #B38942; cursor: pointer; } -.get-help-red { color: #B94A48; font-size: 16px; padding-left: 2px; } -.get-help-red:hover { color: #943A38; cursor: pointer; } -.build-form>i:first-of-type { margin-left: 5px; } -.manual { margin: 11px 15px 0 11px;} -.heading-help { font-size: 14px; } - -/* Styles for the external link */ -.get-info { color: #0088CC; } -.get-info:hover { color: #005580; cursor: pointer; text-decoration: none; } - -/* Styles for code and pre tags */ -code { background-color: transparent; border: none; color: #333333; } -dd code, .alert code { white-space: pre-wrap; word-break: break-all; word-wrap: break-word; } -.alert-warning code, .alert-warning pre { background-color: transparent; border: none; color: #C09853; margin-bottom: 0px; } -.alert-error code { background-color: transparent; border: none; color: #B94A48; margin-bottom:0px; } -.alert-error pre { background-color: transparent; border: none; color: #B94A48; word-break: normal; margin-bottom: 0px; } -.alert-warning pre { word-break: normal; } -.alert-info a { font-weight: 300; } -.alert-info code { color: #3A87AD; } -.tooltip code { background-color: transparent; color: #FFFFFF; font-weight: normal; border: none; font-size: 1em; } - -/* Style for definition lists */ -dd ul { list-style-type: none; margin: 0px; } -dt, dd {line-height: 25px; } -dd li { line-height: 25px; } -.item-info dd { line-height: 20px; margin-bottom: 10px; } - -/* Style the filter modal dialogs */ -.modal-footer .btn { - float: left; - } - -.modal-body { max-height: 300px; } - -/* Hover style for the clear search icon */ -.icon-remove-sign:hover { color: #999999; cursor: pointer; } - -/* Some extra space before headings when needed */ -.details { margin-top: 30px; } -.air { margin-top: 30px; } - -/* Required classes for the highlight behaviour in tables */ -.highlight { -webkit-animation: target-fade 10s 1; -moz-animation: target-fade 10s 1; animation: target-fade 10s 1; } -@-webkit-keyframes target-fade { 0% { background-color: #D9EDF7; } 25% { background-color: #D9EDF7; } 100% { background-color: white; } } -@-moz-keyframes target-fade { 0% { background-color: #D9EDF7; } 25% { background-color: #D9EDF7; } 100% { background-color: white; } } -@keyframes target-fade { 0% { background-color: #D9EDF7; } 25% { background-color: #D9EDF7; } 100% { background-color: white; } } - -/* This makes tooltips work inside modal dialogs */ -.tooltip { z-index: 2000 !important; } - -/* Override default Twitter Boostrap styles for anchor tags inside tables */ -td a, td a > code { color: #333333; } -td code { white-space: normal; } -td a:hover, td a > code:hover { color: #000000; text-decoration: underline; } - -/* Override default Twitter Bootstrap styles for tr.error */ -.table tbody tr.error > td { background-color: transparent; } /* override default Bootstrap behaviour */ -.table-hover tbody tr.error:hover > td { background-color: #F5F5F5;} /* override default Bootstrap behaviour */ - -/* Right justify Bootstrap table columns for size fields */ -.table .sizecol { text-align: right; } - -/* Set error, warning, success and muted styles */ -.error, .red, td.error a, tr.error a { color: #b94a48; } -a.error:hover, a.error:focus, tr.error a:hover { color: #943A38; text-decoration: underline; } -.warning, .yellow { color: #c09853;} -a.warning { background-color: transparent; } -a.warning:hover, a.warning:focus { color: #B38942; text-decoration: underline; } -.success, .green { color: #468847;} -.success:hover { color: #347132; text-decoration: underline; } -td > .success:hover { text-decoration: underline; } -.muted a { color:#999999; } -.muted a:hover { color:#999999; } - -/* Sorting functionality styles for table headings */ -.sorted { color: #333333; font-weight: bold; } -.sorted:hover { color: #000000; text-decoration: underline; } -th > a, th > span { font-weight: normal; } - -/* Force long strings like commit hashes to wrap */ -.iscommit { word-break: break-all; word-wrap: break-word;} - -/* Make the popovers scrollable if they are too long */ -.popover-content { max-height: 30em; overflow-y: scroll; } - -/* Styles for the directory structure table. We'll probably won't use those in production */ -.one { padding-left: 18px !important; } -.two { padding-left: 36px !important; } -.three { padding-left: 54px !important; } -.content-directory a { color: #0088CC; } -.content-directory a:hover { color: #005580; text-decoration: underline; } -.symlink { color: #CCCCCC; } - -/* Styles for the navbar actions */ -.btn-group + .btn-group { margin-right: 10px; } -.navbar-inner > .btn-group { margin-top: 6px; } - -/* Styles for the parent item in the left navigation */ - -.nav > li > a.nav-parent { font-size: 18px; line-height: 25px; } - -/* Other styles */ -.dropdown-menu { padding: 10px; } -select { width: auto; } -.page-header { color: #5A5A5A; } -.top-air { margin-top: 40px;} -.progress { margin-bottom: 0px; } -.lead .badge { font-size: 18px; font-weight: normal; border-radius: 15px; padding: 9px; } -.lead ol, .lead ul { padding: 10px 0 0 20px; } -.lead ol > li, .lead ul > li { - line-height: 35px; -} -.well > .lead, .alert .lead { margin-bottom: 0px; } -.well-transparent { background-color: transparent; } -.no-results { margin: 10px 0; } -.task-name { margin-left: 7px; } -.icon-hand-right {color: #CCCCCC; } -.help-inline { margin: 5px; } -.dashboard-section { background-color: transparent; } +/* New Toaster custom css file for Bootstrap 3 */ -/* styles for landing page - analysis mode */ -.hero-unit { margin: 20px 0 30px; } -.hero-unit > .close { font-size:40px; } -.hero-actions { margin-top: 30px; } - -/* styles for landing page - build mode */ -.hero-unit p { line-height: 25px; } -.hero-unit p, .hero-unit .btn-large { margin-top: 15px; } -.hero-unit ul { margin-top: 20px; } -.hero-unit li { line-height: 30px; } -.hero-unit img { background-color: #eee; margin-top: 15px; } - -/* make tables Chrome-happy (me, not so much) */ -table { table-layout: fixed; word-wrap: break-word; } - -table p { margin-bottom: 0 } -.table td { vertical-align: middle; } - -/* styles for the new build button */ -.new-build .btn-primary { padding: 4px 30px; } -.new-build .alert { margin-top: 10px; } -.new-build .alert p { margin-top: 10px; } - -/* styles for showing the project name in build mode */ -.project-name { padding-top: 0; } -.project-name .label { font-weight: normal; margin-bottom: 5px; margin-left: -15px; padding: 5px; } -.project-name .label > a { color: #fff; font-weight: normal; } - -/* styles for showing help icons next to command-line builds */ -.build-result .get-help-green, .build-result .get-help-red, .build-result .get-help-blue { margin-right: 35px; margin-top: 8px; font-size: 16px; } - -/* Remove bottom margin for forms inside modal dialogs */ -#dependencies-modal-form { margin-bottom: 0px; } - -/* Custom column widths */ -.narrow-col { width: 8%; } -.medium-col { width: 12%; } - -/* Configuration styles */ -.icon-trash { color: #B94A48; font-size: 16px; padding-left: 5px; } -.icon-trash:hover { color: #943A38; text-decoration: none; cursor: pointer; } -.icon-pencil, .icon-download-alt, .icon-refresh, .icon-star-empty, .icon-star { font-size: 16px; color: #0088CC; padding-left: 2px; } -.icon-pencil:hover, .icon-download-alt:hover, .icon-refresh:hover, .icon-star-empty:hover, .icon-star:hover, .icon-tasks:hover { color: #005580; text-decoration: none; cursor: pointer; } -.icon-share { padding-left: 2px; } -.alert-success .icon-refresh, .alert-success .icon-tasks { color: #468847; } -.alert-success .icon-refresh:hover, .alert-success .icon-tasks:hover { color: #347132; } -.alert-error .icon-refresh, .alert-error .icon-tasks { color: #b94a48; } -.alert-error .icon-refresh:hover, .alert-error .icon-tasks:hover { color: #943A38; } -.configuration-list li, .configuration-list label { line-height: 35px; font-size: 21px; font-weight: 200; margin-bottom: 0px;} -.configuration-list { font-size: 16px; margin-bottom: 1.5em; } -.configuration-list i { font-size: 16px; } -/*.configuration-layers { height: 135px; overflow: scroll; }*/ -.counter { font-weight: normal; } -.well-alert { background-color: #FCF8E3; border: 1px solid #FBEED5; border-radius: 4px; } -.well-alert > .lead { color: #C09853; padding-bottom: .75em; } -.configuration-alert { margin-bottom: 0px; padding: 8px 14px; } -.configuration-alert p { margin-bottom: 0px; } -.project-form { margin-top: 10px; } -.add-layers .btn-block + .btn-block, .build .btn-block + .btn-block { margin-top: 0px; } -input.huge { font-size: 17.5px; padding: 11px; min-width: 60%; } -.build-form { margin-bottom: 0px; } -.build-form .input-append { margin-bottom: 0px; } -.build-form .btn-large { padding: 11px 35px; } -.build-form p { font-size:17.5px ;margin:12px 0 0 10px;} -#layer-container form, #target-container form { margin-bottom: 0px; } -.btn-primary .icon-question-sign, .btn-danger .icon-question-sign { color: #fff; } -.btn-primary .icon-question-sign:hover, .btn-danger .icon-question-sign:hover { color: #999; } -a code { color: #0088CC; } -a code:hover { color: #005580; } -.localconf { font-size: 17.5px; margin-top: 40px; } -.localconf code { font-size: 17.5px; } -#add-layer-dependencies { margin-top: 5px; } -.link-action { font-size: 17.5px; margin-top: 40px; } -.link-action code { font-size: 17.5px; } -.artifact { width: 9em; } -.control-group { margin-bottom: 0px; } -#project-details form { margin: 0px; } -dd form { margin: 10px 0 0 0; } -dl textarea { resize: vertical; } -.navbar-fixed-top { z-index: 1; } -.popover { z-index: 2; } -.btn-danger .icon-trash { color: #fff; } -.bbappends { list-style-type: none; margin-left: 0; } -.bbappends li { line-height: 25px; } -.configuration-list input[type="checkbox"] { margin-top:13px;margin-right:10px; } -.alert input[type="checkbox"] { margin-top: 0px; margin-right: 3px; } -.alert ol { padding: 10px 0px 0px 20px; } -.alert ol > li { line-height: 35px; } -.dl-vertical form { margin-top: 10px; } -.scrolling { border: 1px solid #dddddd; height: 154px; overflow: auto; padding: 8px; width: 27.5%; margin-bottom: 10px; } -.lead .help-block { font-size: 14px; line-height: 20px; font-weight: normal; } -.button-place .btn { margin: 0 0 20px 0; } -.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; } -.new-build .input-append { margin-bottom: 0; } -#build-selected { margin-top: 15px; } -div.add-deps { margin-top: 15px; } -.btn.log { margin-left: 20px; } - - -.animate-repeat { - list-style:none; - box-sizing:border-box; -} - -.animate-repeat.ng-move, -.animate-repeat.ng-enter, -.animate-repeat.ng-leave { - -webkit-transition:all linear 0.5s; - transition:all linear 0.5s; -} - -.animate-repeat.ng-leave.ng-leave-active, -.animate-repeat.ng-move, -.animate-repeat.ng-enter { - opacity:0; -} - -.animate-repeat.ng-leave, -.animate-repeat.ng-enter.ng-enter-active { - opacity:1; -} - -.tab-pane table { margin-top: 10px; } - -thead .description, .get_description_or_summary { width: 364px; } -thead .add-del-layers { width: 124px; } - -#loading-notification { - position: fixed; - z-index: 101; - top: 3%; - left: 40%; - right: 40%; - -webkit-box-shadow: 0 0 10px #c09853; - -moz-box-shadow: 0 0 10px #c09853; - box-shadow: 0 0 10px #c09853; -} - -#change-notification { - position: fixed; - z-index: 101; - top: 3%; - left: 20%; - right: 20%; - -webkit-box-shadow: 0 0 10px #3a87ad; - -moz-box-shadow: 0 0 10px #3a87ad; - box-shadow: 0 0 10px #3a87ad; -} - -/* Copied in from newer version of Font-Awesome 4.3.0 */ -.fa-spin { - -webkit-animation: fa-spin 2s infinite linear; - animation: fa-spin 2s infinite linear; - display: inline-block; -} -.fa-pulse { - -webkit-animation: fa-spin 1s infinite steps(8); - animation: fa-spin 1s infinite steps(8); - display: inline-block; -} - -@-webkit-keyframes fa-spin { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(359deg); - transform: rotate(359deg); - } -} - -@keyframes fa-spin { - 0% { - -webkit-transform: rotate(0deg); - -moz-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(359deg); - -moz-transform: rotate(359deg); - transform: rotate(359deg); - } -} -/* End copied in from newer version of Font-Awesome 4.3.0 */ - -.top-padded { - padding-top: 60px; -} - -input.input-lg { - font-size: 18px; - height: 22px; - line-height: 1.33333; - padding: 10px 16px; -} - -/* styling for standalone typeahead library */ -.tt-menu { - margin-top: 2px; - border-radius: 4px; - width: 100%; -} +/* Style the Yocto Project logo */ +img.logo { height: 30px; vertical-align: bottom; } -.tt-suggestion { - cursor: pointer; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; -} +/* Style the Toaster name in the top navbar */ +.navbar-brand { float: initial; } -.tt-suggestion.active { - background-color: #0081c2; - color: white; -} +/* Style the debugging information in the top navbar */ +.glyphicon-info-sign { color: #777; font-size: 16px; margin-top: 18px; margin-left: -5px; } +.glyphicon-info-sign:hover { color: #999; cursor: pointer; }
Signature · 1 line
1.9.1
PATCH 65/106 toaster: Base template to Bootstrap 3
In reply to Belen Barros PenaFix the base.html template to look proper with Bootstrap 3. The patch makes a few changes and improvements in the process:
* Renames the 'Manual' link to 'Documentation' and displays it together with the other navigation items.
* Implements the responsive layout for navbars, which collapses the navigation into a menu to better fit narrow viewports.
--- .../lib/toaster/toastergui/static/css/default.css | 18 +++++- .../lib/toaster/toastergui/static/js/libtoaster.js | 2 +- bitbake/lib/toaster/toastergui/templates/base.html | 71 +++++++++++----------- 3 files changed, 53 insertions(+), 38 deletions(-)
bitbake/lib/toaster/toastergui/static/css/default.css +15 -3
@@ -3,9 +3,21 @@ /* Style the Yocto Project logo */ img.logo { height: 30px; vertical-align: bottom; } -/* Style the Toaster name in the top navbar */ -.navbar-brand { float: initial; } +/* Style the Yocto Project logo and the Toaster name in the top navbar */ +.toaster-navbar-brand { float: left; margin: 7px 25px 0 0; } +.toaster-navbar-brand a.brand { color: #777; height: 50px; padding: 15px 5px 15px 15px; font-size: 20px; line-height: 25px; display: inline; } +.toaster-navbar-brand > a { text-decoration: none; } +.toaster-navbar-brand > a.brand:hover { color: #5e5e5e; } /* Style the debugging information in the top navbar */ -.glyphicon-info-sign { color: #777; font-size: 16px; margin-top: 18px; margin-left: -5px; } +.glyphicon-info-sign { color: #777; font-size: 16px; } .glyphicon-info-sign:hover { color: #999; cursor: pointer; } + +/* Override the negative right margin for the navbar-right class */ +#new-project-button { margin-right: 0; } + +/* Increase popovers width to fit commit SHAs */ +.popover { min-width: 350px; } + +/* Increase bottom margin of definition lists inside popovers for the Toaster version information in the top navbar */ +.popover-content dd { margin-bottom: 15px; }
bitbake/lib/toaster/toastergui/static/js/libtoaster.js +1 -1
@@ -564,7 +564,7 @@ $(document).ready(function() { $(".icon-download-alt").tooltip({ container: 'body', html: true, delay: { show: 200 } }); // initialise popover for debug information - $(".icon-info-sign").popover( { placement: 'bottom', html: true, container: 'body' }); + $(".glyphicon-info-sign").popover( { placement: 'bottom', html: true, container: 'body' }); // linking directly to tabs $(function(){
bitbake/lib/toaster/toastergui/templates/base.html +37 -34
99 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH 66/106 toaster: body styles for Bootstrap 3
In reply to Belen Barros PenaSet body top padding for correct layout when using the fixed top navbar, and remove unnecessary classes and inline css declarations.
--- bitbake/lib/toaster/toastergui/static/css/default.css | 3 +++ bitbake/lib/toaster/toastergui/templates/base.html | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-)
bitbake/lib/toaster/toastergui/static/css/default.css +3 -0
@@ -1,5 +1,8 @@ /* New Toaster custom css file for Bootstrap 3 */ +/* Set required top body padding for the fixed top navbard */ +body { padding-top: 50px; } + /* Style the Yocto Project logo */ img.logo { height: 30px; vertical-align: bottom; }
bitbake/lib/toaster/toastergui/templates/base.html +2 -2
@@ -59,7 +59,7 @@ {% endblock %} </head> - <body style="height: 100%"> + <body> {% csrf_token %} <div id="loading-notification" class="alert lead text-center" style="display:none">
@@ -122,7 +122,7 @@ </div> </nav> - <div class="container-fluid top-padded"> + <div class="container-fluid"> {% block pagecontent %} {% endblock %} </div>
Signature · 1 line
1.9.1
PATCH 67/106 toaster: Move latest builds to Bootstrap 3
In reply to Belen Barros PenaChanges to the "Latest builds" section in both the "All builds" and "Project builds" pages so that they display nicely with Bootstrap 3.
--- .../lib/toaster/toastergui/static/css/default.css | 15 +++ .../toaster/toastergui/templates/mrb_section.html | 111 ++++++++++----------- 2 files changed, 70 insertions(+), 56 deletions(-)
bitbake/lib/toaster/toastergui/static/css/default.css +15 -0
@@ -24,3 +24,18 @@ img.logo { height: 30px; vertical-align: bottom; } /* Increase bottom margin of definition lists inside popovers for the Toaster version information in the top navbar */ .popover-content dd { margin-bottom: 15px; } + +/* Style our build results */ +.build-result .progress { margin-bottom: 0; } +.alert-link.build-warnings, +.glyphicon-warning-sign.build-warnings { color: #8a6d3b; } +.build-result .project-name { margin-top: -10px; margin-bottom: 5px; } + +/* Styles for the help information */ +.get-help-green { color: #468847; } +.get-help-green:hover { color: #347132; cursor: pointer; } +.get-help-blue { color: #3A87AD; } +.get-help-blue:hover { color: #005580; cursor: pointer; } +.get-help-red { color: #B94A48; } +.get-help-red:hover { color: #943A38; cursor: pointer; } +
bitbake/lib/toaster/toastergui/templates/mrb_section.html +55 -56
187 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH 68/106 toaster: Fix the recipe file download
In reply to Belen Barros PenaIn the custom recipe details page, add the missing if statement in the right hand column so that recipe files are only shown if they exist.
--- bitbake/lib/toaster/toastergui/templates/customrecipe.html | 1 + 1 file changed, 1 insertion(+)
bitbake/lib/toaster/toastergui/templates/customrecipe.html +1 -0
@@ -193,6 +193,7 @@ </dd> {% endwith %} {% endif %} + {% if base_recipe_file %} <dt>Recipe file</dt> <dd> <code>{{recipe.name}}_{{recipe.version}}.bb</code>
Signature · 1 line
1.9.1
PATCH 69/106 toaster: Table controls to Bootstrap 3
In reply to Belen Barros PenaChanges to the controls above our tables to make them look nice with Bootstrap 3. This patch applies only to tables using toaster tables.
--- .../lib/toaster/toastergui/static/css/default.css | 11 ++++ bitbake/lib/toaster/toastergui/static/js/table.js | 5 +- .../toaster/toastergui/templates/toastertable.html | 60 ++++++++++++---------- 3 files changed, 47 insertions(+), 29 deletions(-)
bitbake/lib/toaster/toastergui/static/css/default.css +11 -0
@@ -39,3 +39,14 @@ img.logo { height: 30px; vertical-align: bottom; } .get-help-red { color: #B94A48; } .get-help-red:hover { color: #943A38; cursor: pointer; } +/* Styles for our table controls */ +.form-control[id^="search-input-"] { width: 30em; } +#edit-columns-button { margin-right: 30px; } +.navbar-default[id^="table-chrome-"] { background-color: transparent; } +[id^="table-chrome-collapse-"] .navbar-form { margin-left: -15px; } +.dropdown-menu.editcol { padding-left: 10px; min-width: 180px; } +span[class^="remove-search-btn-"] { position: absolute; right: 5px; top: 0; bottom: 0; height: 14px; margin: auto; font-size: 14px; cursor: pointer; color: #777;} +span[class^="remove-search-btn-"]:hover { color: #333; } + +/* Override the default font-weight for labels: it's a bit too much */ +label { font-weight: normal; }
bitbake/lib/toaster/toastergui/static/js/table.js +3 -2
@@ -251,7 +251,7 @@ function tableInit(ctx){ tableHeadRow.append(header); /* Now setup the checkbox state and click handler */ - var toggler = $('<li><label class="checkbox"><input type="checkbox" id="checkbox-'+ col.field_name +'" class="col-toggle" value="'+col.field_name+'" />'+col.title+'</label></li>'); + var toggler = $('<li><div class="checkbox"><label><input type="checkbox" id="checkbox-'+ col.field_name +'" class="col-toggle" value="'+col.field_name+'" />'+col.title+'</label></div></li>'); var togglerInput = toggler.find("input");
@@ -261,7 +261,8 @@ function tableInit(ctx){ if (col.hideable){ togglerInput.click(colToggleClicked); } else { - toggler.find("label").addClass("muted"); + toggler.find("label").addClass("text-muted"); + toggler.find("label").parent().addClass("disabled"); togglerInput.attr("disabled", "disabled"); }
bitbake/lib/toaster/toastergui/templates/toastertable.html +33 -27
72 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH 70/106 toaster: Fix the toastertable table headings
In reply to Belen Barros PenaFor tables implemented with toaster tables, make sure the table heading shows:
* Proper borders
* Different states for sortable, not sortable and sorted column headings
* Lighter help bubbles using the correct icon
* Correct selected / not selected states for filters
Also use the new responsive tables provided by Bootstrap 3.
--- bitbake/lib/toaster/toastergui/static/css/default.css | 15 +++++++++++++++ bitbake/lib/toaster/toastergui/static/js/table.js | 12 +++++++----- .../lib/toaster/toastergui/templates/toastertable.html | 14 ++++++++------ 3 files changed, 30 insertions(+), 11 deletions(-)
bitbake/lib/toaster/toastergui/static/css/default.css +15 -0
@@ -32,6 +32,8 @@ img.logo { height: 30px; vertical-align: bottom; } .build-result .project-name { margin-top: -10px; margin-bottom: 5px; } /* Styles for the help information */ +.get-help { color: #CCCCCC; } +.get-help:hover { color: #999999; cursor: pointer; } .get-help-green { color: #468847; } .get-help-green:hover { color: #347132; cursor: pointer; } .get-help-blue { color: #3A87AD; }
@@ -50,3 +52,16 @@ span[class^="remove-search-btn-"]:hover { color: #333; } /* Override the default font-weight for labels: it's a bit too much */ label { font-weight: normal; } + +/* Firefox workaround for awkward fieldset styling. See http://getbootstrap.com/css/#tables-responsive */ +@-moz-document url-prefix() { fieldset { display: table-cell; } } + +/* Table heading sortable / not sortable states */ +thead > tr > th > a { font-weight: normal; } +thead > tr > th > a.sorted { font-weight: bold; color: #333; } + +/* Give some extra space to the 'clear filter' buttons */ +.tooltip .btn { margin: 5px; } + +/* In table headings, separate the help bubble from the column heading */ +thead > tr > th > .glyphicon-question-sign { margin-right: 5px; }
bitbake/lib/toaster/toastergui/static/js/table.js +7 -5
@@ -169,7 +169,7 @@ function tableInit(ctx){ if (tableChromeDone === true) return; - var tableHeadRow = table.find("thead"); + var tableHeadRow = table.find("thead > tr"); var editColMenu = $("#table-chrome-"+ctx.tableName).find(".editcol"); tableHeadRow.html("");
@@ -190,7 +190,7 @@ function tableInit(ctx){ /* Setup the help text */ if (col.help_text.length > 0) { - var help_text = $('<i class="icon-question-sign get-help"> </i>'); + var help_text = $('<span class="glyphicon glyphicon-question-sign get-help"> </span>'); help_text.tooltip({title: col.help_text}); header.append(help_text); }
@@ -227,12 +227,12 @@ function tableInit(ctx){ } else { /* Not orderable */ header.css("font-weight", "normal"); - header.append('<span class="muted">' + col.title + '</span> '); + header.append('<span class="text-muted">' + col.title + '</span> '); } /* Setup the filter button */ if (col.filter_name){ - var filterBtn = $('<a href="#" role="button" data-filter-on="' + col.filter_name + '" class="pull-right btn btn-mini" data-toggle="modal"><i class="glyphicon glyphicon-filter filtered"></i></a>'); + var filterBtn = $('<a href="#" role="button" data-filter-on="' + col.filter_name + '" class="pull-right btn btn-link btn-xs" data-toggle="modal"><i class="glyphicon glyphicon-filter filtered"></i></a>'); filterBtn.data('filter-name', col.filter_name); filterBtn.prop('id', col.filter_name);
@@ -279,11 +279,12 @@ function tableInit(ctx){ /* Toggles the active state of the filter button */ function filterBtnActive(filterBtn, active){ if (active) { + filterBtn.removeClass("btn-link"); filterBtn.addClass("btn-primary"); filterBtn.tooltip({ html: true, - title: '<button class="btn btn-small btn-primary" onClick=\'$("#clear-filter-btn-'+ ctx.tableName +'").click();\'>Clear filter</button>', + title: '<button class="btn btn-sm btn-primary" onClick=\'$("#clear-filter-btn-'+ ctx.tableName +'").click();\'>Clear filter</button>', placement: 'bottom', delay: { hide: 1500,
@@ -292,6 +293,7 @@ function tableInit(ctx){ }); } else { filterBtn.removeClass("btn-primary"); + filterBtn.addClass("btn-link"); filterBtn.tooltip('destroy'); } }
bitbake/lib/toaster/toastergui/templates/toastertable.html +8 -6
@@ -88,12 +88,14 @@ </div> <!-- The actual table --> - <table class="table table-bordered table-hover tablesorter" id="{{table_name}}"> - <thead> - <tr><th></th></tr> - </thead> - <tbody></tbody> - </table> + <div class="table-responsive"> + <table class="table table-bordered table-hover" id="{{table_name}}"> + <thead> + <tr><th></th></tr> + </thead> + <tbody></tbody> + </table> + </div> <!-- Pagination controls --> <div id="pagination-{{table_name}}">
Signature · 1 line
1.9.1
PATCH 71/106 toaster: Remove spurious div
In reply to Belen Barros PenaAn extra closing div was causing layout troubles in the all builds and project builds pages.
--- bitbake/lib/toaster/toastergui/templates/mrb_section.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/toaster/toastergui/templates/mrb_section.html +1 -1
@@ -159,7 +159,7 @@ </a> </div> {% endif %} - </div> + {%endif%} {# end if in progress #} {% if build.outcome == build.CANCELLED %}
Signature · 1 line
1.9.1
PATCH 72/106 toaster: Fix 'all builds' table content
In reply to Belen Barros PenaSetting the Bootstrap 3 icons and colours, and removing some links from the table data so that we can make clickable items look clickable.
--- .../lib/toaster/toastergui/static/css/default.css | 14 +++++--- bitbake/lib/toaster/toastergui/tables.py | 42 +++++++++------------- 2 files changed, 26 insertions(+), 30 deletions(-)
bitbake/lib/toaster/toastergui/static/css/default.css +10 -4
@@ -34,12 +34,12 @@ img.logo { height: 30px; vertical-align: bottom; } /* Styles for the help information */ .get-help { color: #CCCCCC; } .get-help:hover { color: #999999; cursor: pointer; } -.get-help-green { color: #468847; } -.get-help-green:hover { color: #347132; cursor: pointer; } +.get-help-green { color: #3c763d; } +.get-help-green:hover { color: #2b542c; cursor: pointer; } .get-help-blue { color: #3A87AD; } .get-help-blue:hover { color: #005580; cursor: pointer; } -.get-help-red { color: #B94A48; } -.get-help-red:hover { color: #943A38; cursor: pointer; } +.get-help-red { color: #a94442; } +.get-help-red:hover { color: #843534; cursor: pointer; } /* Styles for our table controls */ .form-control[id^="search-input-"] { width: 30em; }
@@ -65,3 +65,9 @@ thead > tr > th > a.sorted { font-weight: bold; color: #333; } /* In table headings, separate the help bubble from the column heading */ thead > tr > th > .glyphicon-question-sign { margin-right: 5px; } + +/* Style build outcome and download icons */ +tbody > tr > td > .glyphicon-ok-circle { color: #3c763d; } +tbody > tr > td > .glyphicon-minus-sign { color: #a94442; } +.glyphicon-download-alt { color: #337ab7; } +.glyphicon-download-alt:hover { color: #23527c; }
bitbake/lib/toaster/toastergui/tables.py +16 -26
102 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH 73/106 toaster: Fix bottom table controls
In reply to Belen Barros PenaFor tables using toaster tables, make the bottom pagination and 'show rows' controls play nice with Bootstrap 3.
--- .../lib/toaster/toastergui/static/css/default.css | 2 ++ .../toaster/toastergui/templates/toastertable.html | 23 +++++++++++----------- 2 files changed, 14 insertions(+), 11 deletions(-)
bitbake/lib/toaster/toastergui/static/css/default.css +2 -0
@@ -49,6 +49,8 @@ img.logo { height: 30px; vertical-align: bottom; } .dropdown-menu.editcol { padding-left: 10px; min-width: 180px; } span[class^="remove-search-btn-"] { position: absolute; right: 5px; top: 0; bottom: 0; height: 14px; margin: auto; font-size: 14px; cursor: pointer; color: #777;} span[class^="remove-search-btn-"]:hover { color: #333; } +[id^="pagination-"] .pagination, +[id^="pagination-"] .navbar-form { margin-top: 0; } /* Override the default font-weight for labels: it's a bit too much */ label { font-weight: normal; }
bitbake/lib/toaster/toastergui/templates/toastertable.html +12 -11
@@ -102,15 +102,16 @@ <ul class="pagination"> </ul> - <div class="pull-right"> - <span class="help-inline">Show rows:</span> - <select class="pagesize-{{table_name}}"> - {% with "10 25 50 100 150" as list%} - {% for i in list.split %} - <option value="{{i}}">{{i}}</option> - {% endfor %} - {% endwith %} - </select> - </div> + <form class="navbar-form navbar-right"> + <div class="form-group"> + <label>Show rows:</label> + <select class="form-control pagesize-{{table_name}}"> + {% with "10 25 50 100 150" as list%} + {% for i in list.split %} + <option value="{{i}}">{{i}}</option> + {% endfor %} + {% endwith %} + </select> + </div> + </form> </div> -</div>
Signature · 1 line
1.9.1
PATCH 74/106 toaster: Fix 'all projects' table content
In reply to Belen Barros PenaApply the correct classes and remove unnecessary content links.
--- bitbake/lib/toaster/toastergui/tables.py | 50 ++++++++++++-------------------- 1 file changed, 19 insertions(+), 31 deletions(-)
bitbake/lib/toaster/toastergui/tables.py +19 -31
@@ -848,26 +848,22 @@ class ProjectsTable(ToasterTable): last_activity_on_template = ''' {% load project_url_tag %} <span data-project-field="updated"> - <a href="{% project_url data %}"> {{data.updated | date:"d/m/y H:i"}} - </a> </span> ''' release_template = ''' <span data-project-field="release"> {% if data.release %} - <a href="{% url 'project' data.id %}#project-details"> - {{data.release.name}} - </a> + {{data.release.name}} {% elif data.is_default %} - <span class="muted">Not applicable</span> - <i class="icon-question-sign get-help hover-help" - data-original-title="This project does not have a release set. + <span class="text-muted">Not applicable</span> + <span class="glyphicon glyphicon-question-sign get-help hover-help" + title="This project does not have a release set. It simply collects information about the builds you start from the command line while Toaster is running" style="visibility: hidden;"> - </i> + </span> {% else %} No release available {% endif %}
@@ -877,16 +873,14 @@ class ProjectsTable(ToasterTable): machine_template = ''' <span data-project-field="machine"> {% if data.is_default %} - <span class="muted">Not applicable</span> - <i class="icon-question-sign get-help hover-help" - data-original-title="This project does not have a machine + <span class="text-muted">Not applicable</span> + <span class="glyphicon glyphicon-question-sign get-help hover-help" + title="This project does not have a machine set. It simply collects information about the builds you start from the command line while Toaster is running" - style="visibility: hidden;"></i> + style="visibility: hidden;"></span> {% else %} - <a href="{% url 'project' data.id %}#machine-distro"> - {{data.get_current_machine_name}} - </a> + {{data.get_current_machine_name}} {% endif %} </span> '''
@@ -896,20 +890,16 @@ class ProjectsTable(ToasterTable): <a href="{% url 'projectbuilds' data.id %}"> {{data.get_number_of_builds}} </a> - {% else %} - <span class="muted">0</span> {% endif %} ''' last_build_outcome_template = ''' {% if data.get_number_of_builds > 0 %} - <a href="{% url 'builddashboard' data.get_last_build_id %}"> - {% if data.get_last_outcome == extra.Build.SUCCEEDED %} - <i class="icon-ok-sign success"></i> - {% elif data.get_last_outcome == extra.Build.FAILED %} - <i class="icon-minus-sign error"></i> - {% endif %} - </a> + {% if data.get_last_outcome == extra.Build.SUCCEEDED %} + <span class="glyphicon glyphicon-ok-circle"></span> + {% elif data.get_last_outcome == extra.Build.FAILED %} + <span class="glyphicon glyphicon-minus-sign"></span> + {% endif %} {% endif %} '''
@@ -923,7 +913,7 @@ class ProjectsTable(ToasterTable): errors_template = ''' {% if data.get_number_of_builds > 0 and data.get_last_errors > 0 %} - <a class="errors.count error" + <a class="errors.count text-danger" href="{% url "builddashboard" data.get_last_build_id %}#errors"> {{data.get_last_errors}} error{{data.get_last_errors | pluralize}} </a>
@@ -932,7 +922,7 @@ class ProjectsTable(ToasterTable): warnings_template = ''' {% if data.get_number_of_builds > 0 and data.get_last_warnings > 0 %} - <a class="warnings.count warning" + <a class="warnings.count text-warning" href="{% url "builddashboard" data.get_last_build_id %}#warnings"> {{data.get_last_warnings}} warning{{data.get_last_warnings | pluralize}} </a>
@@ -941,9 +931,7 @@ class ProjectsTable(ToasterTable): image_files_template = ''' {% if data.get_number_of_builds > 0 and data.get_last_outcome == extra.Build.SUCCEEDED %} - <a href="{% url "builddashboard" data.get_last_build_id %}#images"> - {{data.get_last_build_extensions}} - </a> + {{data.get_last_build_extensions}} {% endif %} '''
@@ -979,7 +967,7 @@ class ProjectsTable(ToasterTable): static_data_name='machine', static_data_template=machine_template) - self.add_column(title='Number of builds', + self.add_column(title='Builds', help_text='The number of builds which have been run \ for the project', hideable=False,
Signature · 1 line
1.9.1
PATCH 75/106 toaster: Configuration page to Bootstrap 3
In reply to Belen Barros PenaMake sure the project configuration page looks nice with Bootstrap 3.
--- .../lib/toaster/toastergui/static/css/default.css | 54 ++++++++++++++++++-- .../lib/toaster/toastergui/static/js/libtoaster.js | 4 +- .../toaster/toastergui/static/js/projectpage.js | 4 +- .../toastergui/templates/baseprojectpage.html | 2 +- .../lib/toaster/toastergui/templates/project.html | 59 +++++++++------------- .../toastergui/templates/projecttopbar.html | 43 ++++++++-------- 6 files changed, 102 insertions(+), 64 deletions(-)
bitbake/lib/toaster/toastergui/static/css/default.css +51 -3
@@ -68,8 +68,56 @@ thead > tr > th > a.sorted { font-weight: bold; color: #333; } /* In table headings, separate the help bubble from the column heading */ thead > tr > th > .glyphicon-question-sign { margin-right: 5px; } -/* Style build outcome and download icons */ +/* Style build outcome in tables, download, remove and change icons */ tbody > tr > td > .glyphicon-ok-circle { color: #3c763d; } tbody > tr > td > .glyphicon-minus-sign { color: #a94442; } -.glyphicon-download-alt { color: #337ab7; } -.glyphicon-download-alt:hover { color: #23527c; } +.glyphicon-download-alt, +.glyphicon-edit { color: #337ab7; } +.glyphicon-download-alt:hover, +.glyphicon-edit:hover { color: #23527c; cursor: pointer } +.glyphicon-trash { color: #a94442; } +.glyphicon-trash:hover { color: #843534; cursor: pointer; } + +/* Set the font size for icons inside headings and lead paragraphs */ +h1 > .glyphicon-edit, +p.lead .glyphicon { font-size: 16px; } + +h3 > .glyphicon-question-sign { font-size: 14px; } + +/* Create a class for wells without background colour */ +.well-transparent { background-color: transparent; } + +/* Create a class for the left navigation headers */ +.nav-header { display: block; font-size: 12px; font-weight: bold; line-height: 20px; color: #999; text-transform: uppercase; margin-top: 20px !important; margin-bottom: 15px; padding-left: 15px; } + +/* Increase the tabs padding and margin in the project pages to fit the build form and the main content */ +#project-topbar .nav-tabs > li > a { padding: 15px; } +#project-topbar { margin-bottom: 20px; } + +/* Style the project name change form in the project pages */ +#project-name-change-input { width: 20em; } + +/* Style the build form in the project pages */ +#project-topbar .input-lg { width: 18em; } +#project-topbar form .glyphicon { top: 15px; right: 4px; } +#build-button { padding: 10px 30px; } + +/* Style the form links in the project page (all machines, all layers, etc) */ +.form-link { margin-top: 10px; } + +/* Style the most built recipes list in the project page */ +#freq-build-list .checkbox input[type="checkbox"] { position: relative; margin: 0 10px 0 0; vertical-align: middle; } +#freq-build-list { margin-top: 20px; } +#freq-build-list label { padding-left: 0; } +#freq-build-btn { margin-top: 10px; } +#no-most-built { margin-top: 20px; } + +/* Style the layers section in the project page */ +#layer-container .form-inline { margin-top: 20px; } +#layer-add-input { width: 17em; } +#layers-in-project-list { margin-top: 20px; } +#layers-in-project-list > li { line-height: 38px; } +#layers-in-project-list .glyphicon-trash { font-size: 16px; margin-left: 7px; } +#layers-in-project-list .tooltip-inner { max-width: 600px; } +#no-layers-in-project { margin-top: 20px; } +#no-layers-in-project ul { margin-top: 10px; }
bitbake/lib/toaster/toastergui/static/js/libtoaster.js +2 -2
@@ -557,8 +557,8 @@ $(document).ready(function() { // show task type and outcome in task details pages $(".task-info").tooltip({ container: 'body', html: true, delay: {show: 200}, placement: 'right' }); - // initialise the tooltips for the icon-pencil icons - $(".icon-pencil").tooltip({ container: 'body', html: true, delay: {show: 400}, title: "Change" }); + // initialise the tooltips for the edit icons + $(".glyphicon-edit").tooltip({ container: 'body', html: true, delay: {show: 400}, title: "Change" }); // initialise the tooltips for the download icons $(".icon-download-alt").tooltip({ container: 'body', html: true, delay: { show: 200 } });
bitbake/lib/toaster/toastergui/static/js/projectpage.js +2 -2
@@ -145,7 +145,7 @@ function projectPageInit(ctx) { for (var i in layers){ var layerObj = layers[i]; - var projectLayer = $("<li><a></a><span class=\"icon-trash\" data-toggle=\"tooltip\" title=\"Remove\"></span></li>"); + var projectLayer = $("<li><a></a><span class=\"glyphicon glyphicon-trash\" data-toggle=\"tooltip\" title=\"Remove\"></span></li>"); projectLayer.data('layer', layerObj); projectLayer.children("span").tooltip();
@@ -208,7 +208,7 @@ function projectPageInit(ctx) { } for (var i in recipes){ - var freqTargetCheck = $('<li><label class="checkbox"><input type="checkbox" /><span class="freq-target-name"></span></label></li>'); + var freqTargetCheck = $('<li><div class="checkbox"><label><input type="checkbox" /><span class="freq-target-name"></span></label></li>'); freqTargetCheck.find(".freq-target-name").text(recipes[i]); freqTargetCheck.find("input").val(recipes[i]); freqTargetCheck.click(function(){
bitbake/lib/toaster/toastergui/templates/baseprojectpage.html +1 -1
@@ -24,7 +24,7 @@ $(document).ready(function(){ <!-- only on config pages --> <div id="config-nav" class="col-md-2"> - <ul class="nav nav-list well"> + <ul class="nav nav-pills nav-stacked"> <li><a class="nav-parent" href="{% url 'project' project.id %}">Configuration</a></li> <li class="nav-header">Compatible metadata</li> <li><a href="{% url 'projectcustomimages' project.id %}">Custom images</a></li>
bitbake/lib/toaster/toastergui/templates/project.html +25 -34
99 lines not on this page · raw message
bitbake/lib/toaster/toastergui/templates/projecttopbar.html +21 -22
59 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH 76/106 toaster: 'Project builds' page to Bootstrap 3
In reply to Belen Barros PenaSome small changes to make sure the page displays properly with Bootstrap 3.
--- bitbake/lib/toaster/toastergui/static/css/default.css | 6 ++++++ bitbake/lib/toaster/toastergui/templates/mrb_section.html | 14 ++++++-------- .../toastergui/templates/projectbuilds-toastertable.html | 2 +- 3 files changed, 13 insertions(+), 9 deletions(-)
bitbake/lib/toaster/toastergui/static/css/default.css +6 -0
@@ -121,3 +121,9 @@ h3 > .glyphicon-question-sign { font-size: 14px; } #layers-in-project-list .tooltip-inner { max-width: 600px; } #no-layers-in-project { margin-top: 20px; } #no-layers-in-project ul { margin-top: 10px; } + +/* Create a class for additional top margin that we can use in headings */ +.top-air { margin-top: 40px; } + +/* Add some bottom margin to our h2's */ +h2 { margin-bottom: 25px; }
bitbake/lib/toaster/toastergui/templates/mrb_section.html +6 -8
@@ -21,15 +21,13 @@ {%if mru and mru.count > 0%} {%if mrb_type == 'project' %} - <div class="page-header"> - <h2> - Latest project builds + <h2> + Latest project builds - {% if project.is_default %} - <span class="glyphicon glyphicon-question-sign get-help heading-help" title="" data-original-title="Builds in this project cannot be started from Toaster: they are started from the command line"></span> - {% endif %} - </h2> - </div> + {% if project.is_default %} + <span class="glyphicon glyphicon-question-sign get-help heading-help" title="" data-original-title="Builds in this project cannot be started from Toaster: they are started from the command line"></span> + {% endif %} + </h2> {% else %} <div class="page-header"> <h1>
bitbake/lib/toaster/toastergui/templates/projectbuilds-toastertable.html +1 -1
@@ -22,7 +22,7 @@ {% include 'mrb_section.html' %} {% endwith %} - <h2 class="page-header top-air" data-role="page-title"></h2> + <h2 class="top-air" data-role="page-title"></h2> {% url 'projectbuilds' project.id as xhr_table_url %} {% include 'toastertable.html' %}
Signature · 1 line
1.9.1
PATCH 77/106 toaster: Project builds empty state
In reply to Belen Barros PenaCreate an empty state for the "Project builds" page.
--- bitbake/lib/toaster/toastergui/static/js/table.js | 24 ++++++++++++++-------- bitbake/lib/toaster/toastergui/tables.py | 8 ++++++++ .../templates/projectbuilds-toastertable.html | 15 +++++++++++--- .../toaster/toastergui/templates/toastertable.html | 4 ++++ bitbake/lib/toaster/toastergui/widgets.py | 3 ++- 5 files changed, 42 insertions(+), 12 deletions(-)
bitbake/lib/toaster/toastergui/static/js/table.js +16 -8
@@ -75,14 +75,21 @@ function tableInit(ctx){ if (tableData.total === 0){ tableContainer.hide(); - if ($("#no-results-special-"+ctx.tableName).length > 0) { - /* use this page's special no-results form instead of the default */ - $("#no-results-search-input-"+ctx.tableName).val(tableParams.search); - $("#no-results-special-"+ctx.tableName).show(); - $("#results-found-"+ctx.tableName).hide(); - } else { - $("#new-search-input-"+ctx.tableName).val(tableParams.search); - $("#no-results-"+ctx.tableName).show(); + /* No results caused by a search returning nothing */ + if (tableParams.search) { + if ($("#no-results-special-"+ctx.tableName).length > 0) { + /* use this page's special no-results form instead of the default */ + $("#no-results-search-input-"+ctx.tableName).val(tableParams.search); + $("#no-results-special-"+ctx.tableName).show(); + $("#results-found-"+ctx.tableName).hide(); + } else { + $("#new-search-input-"+ctx.tableName).val(tableParams.search); + $("#no-results-"+ctx.tableName).show(); + } + } + else { + /* No results caused by there being no data */ + $("#empty-state-"+ctx.tableName).show(); } table.trigger("table-done", [tableData.total, tableParams]);
@@ -90,6 +97,7 @@ function tableInit(ctx){ } else { tableContainer.show(); $("#no-results-"+ctx.tableName).hide(); + $("#empty-state-"+ctx.tableName).hide(); } setupTableChrome(tableData);
bitbake/lib/toaster/toastergui/tables.py +8 -0
@@ -1424,6 +1424,7 @@ class ProjectBuildsTable(BuildsTable): super(ProjectBuildsTable, self).__init__(*args, **kwargs) self.title = 'All project builds' self.mrb_type = 'project' + self.empty_state = "This project has no builds" # set from the querystring self.project_id = None
@@ -1466,4 +1467,11 @@ class ProjectBuildsTable(BuildsTable): context['mru'] = Build.get_recent(project) context['project'] = project + self.setup_queryset(**kwargs) + if self.queryset.count() == 0 and \ + project.build_set.filter(outcome=Build.IN_PROGRESS).count() > 0: + context['build_in_progress_none_completed'] = True + else: + context['build_in_progress_none_completed'] = False + return context
bitbake/lib/toaster/toastergui/templates/projectbuilds-toastertable.html +12 -3
@@ -24,8 +24,10 @@ <h2 class="top-air" data-role="page-title"></h2> - {% url 'projectbuilds' project.id as xhr_table_url %} - {% include 'toastertable.html' %} + {% if not build_in_progress_none_completed %} + {% url 'projectbuilds' project.id as xhr_table_url %} + {% include 'toastertable.html' %} + {% endif %} </div> <script>
@@ -46,7 +48,14 @@ } } - titleElt.text(title); + if (total === 0) { + titleElt.hide(); + } + else { + titleElt.show() + titleElt.text(title); + } + }); // highlight builds tab
bitbake/lib/toaster/toastergui/templates/toastertable.html +4 -0
@@ -25,6 +25,10 @@ {% include 'toastertable-filter.html' %} +<div class="row-fluid" id="empty-state-{{table_name}}" style="display:none"> + <div class="alert alert-info">{{empty_state}}</div> +</div> + <div id="no-results-{{table_name}}" style="display:none"> <div class="alert"> <form class="no-results input-append">
bitbake/lib/toaster/toastergui/widgets.py +2 -1
@@ -75,7 +75,8 @@ class ToasterTable(TemplateView): def get_context_data(self, **kwargs): context = super(ToasterTable, self).get_context_data(**kwargs) context['title'] = self.title - context['table_name'] = type(self).__name__.lower() + context['table_name'] = type(self).__name__.lower() + context['empty_state'] = self.empty_state return context
Signature · 1 line
1.9.1
PATCH 78/106 toaster: Style typeaheads
In reply to Belen Barros PenaMake them look proper with Bootstrap 3
--- bitbake/lib/toaster/toastergui/static/css/default.css | 7 +++++++ 1 file changed, 7 insertions(+)
bitbake/lib/toaster/toastergui/static/css/default.css +7 -0
@@ -127,3 +127,10 @@ h3 > .glyphicon-question-sign { font-size: 14px; } /* Add some bottom margin to our h2's */ h2 { margin-bottom: 25px; } + +/* Style the typeahead */ +.tt-menu { min-width: 400px; padding-bottom: 10px; } +.tt-suggestion { padding: 5px 10px; } +.tt-suggestion:hover, +.tt-suggestion:active { background-color: #f5f5f5; cursor: pointer; } +
Signature · 1 line
1.9.1
PATCH 79/106 toaster: Fix display of failed tasks
In reply to Belen Barros PenaIn the builds tables, apply the correct styles to the failed tasks and their download log icon.
--- bitbake/lib/toaster/toastergui/static/css/default.css | 1 + bitbake/lib/toaster/toastergui/tables.py | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-)
bitbake/lib/toaster/toastergui/static/css/default.css +1 -0
@@ -73,6 +73,7 @@ tbody > tr > td > .glyphicon-ok-circle { color: #3c763d; } tbody > tr > td > .glyphicon-minus-sign { color: #a94442; } .glyphicon-download-alt, .glyphicon-edit { color: #337ab7; } +.failed_tasks .glyphicon-download-alt { margin-left: 5px; } .glyphicon-download-alt:hover, .glyphicon-edit:hover { color: #23527c; cursor: pointer } .glyphicon-trash { color: #a94442; }
bitbake/lib/toaster/toastergui/tables.py +6 -6
@@ -1135,15 +1135,15 @@ class BuildsTable(ToasterTable): failed_tasks_template = ''' {% if data.failed_tasks.count == 1 %} - <a href="{% url "task" data.id data.failed_tasks.0.id %}"> - <span class="text-danger"> - {{data.failed_tasks.0.recipe.name}}.{{data.failed_tasks.0.task_name}} + <a class="text-danger" href="{% url "task" data.id data.failed_tasks.0.id %}"> + <span> + {{data.failed_tasks.0.recipe.name}} {{data.failed_tasks.0.task_name}} </span> </a> <a href="{% url "build_artifact" data.id "tasklogfile" data.failed_tasks.0.id %}"> - <i class="icon-download-alt" - data-original-title="Download task log file"> - </i> + <span class="glyphicon glyphicon-download-alt get-help" + title="Download task log file"> + </span> </a> {% elif data.failed_tasks.count > 1 %} <a href="{% url "tasks" data.id %}?filter=outcome%3A{{extra.Task.OUTCOME_FAILED}}">
Signature · 1 line
1.9.1
PATCH 80/106 toaster: Fix the import layer form
In reply to Belen Barros PenaStyle it for Bootstrap 3.
--- .../lib/toaster/toastergui/static/css/default.css | 27 +++- .../toaster/toastergui/static/js/importlayer.js | 8 +- .../toaster/toastergui/templates/importlayer.html | 136 ++++++++++----------- 3 files changed, 92 insertions(+), 79 deletions(-)
bitbake/lib/toaster/toastergui/static/css/default.css +21 -6
@@ -82,7 +82,7 @@ tbody > tr > td > .glyphicon-minus-sign { color: #a94442; } /* Set the font size for icons inside headings and lead paragraphs */ h1 > .glyphicon-edit, p.lead .glyphicon { font-size: 16px; } - +h2 > .glyphicon-question-sign, h3 > .glyphicon-question-sign { font-size: 14px; } /* Create a class for wells without background colour */
@@ -113,12 +113,15 @@ h3 > .glyphicon-question-sign { font-size: 14px; } #freq-build-btn { margin-top: 10px; } #no-most-built { margin-top: 20px; } -/* Style the layers section in the project page */ +/* Style the layers section in the project page and the layer dependencies in the import layer form */ #layer-container .form-inline { margin-top: 20px; } #layer-add-input { width: 17em; } -#layers-in-project-list { margin-top: 20px; } -#layers-in-project-list > li { line-height: 38px; } -#layers-in-project-list .glyphicon-trash { font-size: 16px; margin-left: 7px; } +#layers-in-project-list, +#layer-deps-list { margin-top: 20px; } +#layers-in-project-list > li, +#layer-deps-list > li { line-height: 38px; } +#layers-in-project-list .glyphicon-trash, +#layer-deps-list .glyphicon-trash { font-size: 16px; margin-left: 7px; } #layers-in-project-list .tooltip-inner { max-width: 600px; } #no-layers-in-project { margin-top: 20px; } #no-layers-in-project ul { margin-top: 10px; }
@@ -134,4 +137,16 @@ h2 { margin-bottom: 25px; } .tt-suggestion { padding: 5px 10px; } .tt-suggestion:hover, .tt-suggestion:active { background-color: #f5f5f5; cursor: pointer; } - + +/* Style the import layer form controls*/ +legend { border: none; } +#layer-name-ctrl { margin-top: 20px; } +#import-layer-name, +#layer-subdir { width: 20%; } +#layer-git-repo-url { width: 40%; } +#layer-git-ref { width: 32%; } +#layer-dependency { width: 16em; } +#form-actions { margin-bottom: 30px; } +#duplicate-layer-info dl { margin-top: 10px; } +#duplicate-layer-info dd { margin-bottom: 10px; } +.help-inline { color: #737373; margin-left: 10px; }
bitbake/lib/toaster/toastergui/static/js/importlayer.js +4 -4
@@ -46,7 +46,7 @@ function importLayerPageInit (ctx) { currentLayerDepSelection = choice; } else { - layerDepBtn.attr("disabled", "disabled"); + layerDepBtn.attr("disabled","disabled"); currentLayerDepSelection = undefined; } });
@@ -70,7 +70,7 @@ function importLayerPageInit (ctx) { layerDeps[currentLayerDepSelection.id] = currentLayerDepSelection; /* Make a list item for the new layer dependency */ - var newLayerDep = $("<li><a></a><span class=\"icon-trash\" data-toggle=\"tooltip\" title=\"Delete\"></span></li>"); + var newLayerDep = $("<li><a></a><span class=\"glyphicon glyphicon-trash\" data-toggle=\"tooltip\" title=\"Remove\"></span></li>"); newLayerDep.data('layer-id', currentLayerDepSelection.id); newLayerDep.children("span").tooltip();
@@ -263,7 +263,7 @@ function importLayerPageInit (ctx) { layerNameInput.on('input', function() { if ($(this).val() && !validLayerName.test($(this).val())){ - layerNameCtrl.addClass("error") + layerNameCtrl.addClass("has-error") $("#invalid-layer-name-hint").show(); enable_import_btn(false); return;
@@ -280,7 +280,7 @@ function importLayerPageInit (ctx) { * reason. */ if (!duplicatedLayerName.is(":visible")) - layerNameCtrl.removeClass("error") + layerNameCtrl.removeClass("has-error") $("#invalid-layer-name-hint").hide(); check_form();
bitbake/lib/toaster/toastergui/templates/importlayer.html +67 -69
163 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH 81/106 toaster: Fix the toaster tables no results
In reply to Belen Barros PenaFix the alert we show when you search for something and your search returns no results. This patch only applies to tables using toaster tables.
--- bitbake/lib/toaster/toastergui/static/css/default.css | 3 ++- .../lib/toaster/toastergui/templates/toastertable.html | 16 +++++++++------- 2 files changed, 11 insertions(+), 8 deletions(-)
bitbake/lib/toaster/toastergui/static/css/default.css +2 -1
@@ -42,7 +42,8 @@ img.logo { height: 30px; vertical-align: bottom; } .get-help-red:hover { color: #843534; cursor: pointer; } /* Styles for our table controls */ -.form-control[id^="search-input-"] { width: 30em; } +.form-control[id^="search-input-"], +.form-control[id^="new-search-input-"] { width: 30em; } #edit-columns-button { margin-right: 30px; } .navbar-default[id^="table-chrome-"] { background-color: transparent; } [id^="table-chrome-collapse-"] .navbar-form { margin-left: -15px; }
bitbake/lib/toaster/toastergui/templates/toastertable.html +9 -7
@@ -30,13 +30,15 @@ </div> <div id="no-results-{{table_name}}" style="display:none"> - <div class="alert"> - <form class="no-results input-append"> - <input class="input-xlarge" id="new-search-input-{{table_name}}" name="search" type="text" placeholder="Search {{title|lower}}" value="{%if request.GET.search %}{{request.GET.search}}{%endif%}"/> - <a href="#" class="input-append-addon btn remove-search-btn-{{table_name}}" tabindex="-1"> - <i class="glyphicon glyphicon-remove"></i> - </a> - <button class="btn search-submit-{{table_name}}"> + <div class="alert alert-warning"> + <form class="form-inline"> + <div class="form-group"> + <div class="btn-group"> + <input class="form-control" id="new-search-input-{{table_name}}" name="search" type="text" placeholder="Search {{title|lower}}" value="{%if request.GET.search %}{{request.GET.search}}{%endif%}"/> + <span class="remove-search-btn-{{table_name}} glyphicon glyphicon-remove-circle" tabindex="-1"></a> + </div> + </div> + <button class="btn btn-default search-submit-{{table_name}}"> Search </button> <button class="btn btn-link show-all-{{table_name}} remove-search-btn-{{table_name}}">
Signature · 1 line
1.9.1
PATCH 82/106 toaster: Show heading in no results page
In reply to Belen Barros PenaIn the project builds table, make sure the table heading displays when a search query returns no results.
--- .../templates/projectbuilds-toastertable.html | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-)
bitbake/lib/toaster/toastergui/templates/projectbuilds-toastertable.html +10 -7
@@ -38,6 +38,14 @@ tableElt.on("table-done", function (e, total, tableParams) { var title = "All project builds"; + + if (total === 0) { + titleElt.hide(); + } + else { + titleElt.show() + titleElt.text(title); + } if (tableParams.search || tableParams.filter) { if (total === 0) {
@@ -46,15 +54,10 @@ else if (total > 0) { title = total + " project build" + (total > 1 ? 's' : '') + " found"; } - } - if (total === 0) { - titleElt.hide(); - } - else { - titleElt.show() + titleElt.show(); titleElt.text(title); - } + } });
Signature · 1 line
1.9.1
PATCH 83/106 toaster: Fix new custom image page
In reply to Belen Barros PenaMake display properly with Bootstrap 3
--- bitbake/lib/toaster/toastergui/static/css/default.css | 6 ++++++ bitbake/lib/toaster/toastergui/templates/customise_btn.html | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-)
bitbake/lib/toaster/toastergui/static/css/default.css +6 -0
@@ -151,3 +151,9 @@ legend { border: none; } #duplicate-layer-info dl { margin-top: 10px; } #duplicate-layer-info dd { margin-bottom: 10px; } .help-inline { color: #737373; margin-left: 10px; } + +/* Give some padding to the in-cell tooltips we use for notifications in tables */ +td > .tooltip-inner { padding: 10px; } + +/* Set sane widths for table columns */ +#newcustomimagestable .get_description_or_summary { width: 30%; }
bitbake/lib/toaster/toastergui/templates/customise_btn.html +2 -2
@@ -1,11 +1,11 @@ -<button class="btn btn-block layer-exists-{{data.layer_version.pk}} customise-btn" data-recipe="{{data.pk}}" +<button class="btn btn-default btn-block layer-exists-{{data.layer_version.pk}} customise-btn" data-recipe="{{data.pk}}" {% if data.layer_version.pk not in extra.current_layers %} style="display:none;" {% endif %} > Customise </button> -<button class="btn btn-block layer-add-{{data.layer_version.pk}} layerbtn" data-layer='{ "id": {{data.layer_version.pk}}, "name": "{{data.layer_version.layer.name}}", "layerdetailurl": "{%url 'layerdetails' extra.pid data.layer_version.pk%}"}' data-directive="add" +<button class="btn btn-default btn-block layer-add-{{data.layer_version.pk}} layerbtn" data-layer='{ "id": {{data.layer_version.pk}}, "name": "{{data.layer_version.layer.name}}", "layerdetailurl": "{%url 'layerdetails' extra.pid data.layer_version.pk%}"}' data-directive="add" {% if data.layer_version.pk in extra.current_layers %} style="display:none;" {% endif %}
Signature · 1 line
1.9.1
PATCH 84/106 toaster: toaster tables Enable complex empty states
In reply to Belen Barros PenaMake sure we can create empty states for toaster tables that include actions for users to get out of the empty state. Allows a template to be used as an empty state.
--- bitbake/lib/toaster/toastergui/tables.py | 9 +++++++++ bitbake/lib/toaster/toastergui/templates/toastertable.html | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-)
bitbake/lib/toaster/toastergui/tables.py +9 -0
@@ -470,7 +470,16 @@ class CustomImagesTable(ToasterTable): def get_context_data(self, **kwargs): context = super(CustomImagesTable, self).get_context_data(**kwargs) + + empty_state_template = ''' + You have not created any custom images yet. + <a href="{% url 'newcustomimage' data.pid %}"> + Create your first custom image</a> + ''' + context['empty_state'] = self.render_static_data(empty_state_template, + kwargs) project = Project.objects.get(pk=kwargs['pid']) + # TODO put project into the ToasterTable base class context['project'] = project return context
bitbake/lib/toaster/toastergui/templates/toastertable.html +1 -1
@@ -26,7 +26,7 @@ {% include 'toastertable-filter.html' %} <div class="row-fluid" id="empty-state-{{table_name}}" style="display:none"> - <div class="alert alert-info">{{empty_state}}</div> + <div class="alert alert-info">{{empty_state|safe}}</div> </div> <div id="no-results-{{table_name}}" style="display:none">
Signature · 1 line
1.9.1
PATCH 85/106 toaster: Custom images to Bootstrap 3
In reply to Belen Barros PenaMake sure the custom images page displays properly with Bootstrap 3.
--- bitbake/lib/toaster/toastergui/static/css/default.css | 5 ++++- bitbake/lib/toaster/toastergui/tables.py | 11 +++++++---- .../toastergui/templates/generic-toastertable-page.html | 2 +- 3 files changed, 12 insertions(+), 6 deletions(-)
bitbake/lib/toaster/toastergui/static/css/default.css +4 -1
@@ -76,7 +76,7 @@ tbody > tr > td > .glyphicon-minus-sign { color: #a94442; } .glyphicon-edit { color: #337ab7; } .failed_tasks .glyphicon-download-alt { margin-left: 5px; } .glyphicon-download-alt:hover, -.glyphicon-edit:hover { color: #23527c; cursor: pointer } +.glyphicon-edit:hover { color: #23527c; cursor: pointer; text-decoration: none; } .glyphicon-trash { color: #a94442; } .glyphicon-trash:hover { color: #843534; cursor: pointer; }
@@ -157,3 +157,6 @@ td > .tooltip-inner { padding: 10px; } /* Set sane widths for table columns */ #newcustomimagestable .get_description_or_summary { width: 30%; } + +/* Override the rather ugly default code styles */ +code { color: #333; background-color: transparent; }
bitbake/lib/toaster/toastergui/tables.py +7 -4
@@ -507,7 +507,8 @@ class CustomImagesTable(ToasterTable): recipe_file_template = ''' {% if data.get_base_recipe_file %} <code>{{data.name}}_{{data.version}}.bb</code> - <a href="{% url 'customrecipedownload' extra.pid data.pk %}" class="icon-download-alt get-help" title="Download recipe file"></a> + <a href="{% url 'customrecipedownload' extra.pid data.pk %}" + class="glyphicon glyphicon-download-alt get-help" title="Download recipe file"></a> {% endif %}''' self.add_column(title="Recipe file",
@@ -515,18 +516,20 @@ class CustomImagesTable(ToasterTable): static_data_template=recipe_file_template) approx_packages_template = ''' + {% if data.get_all_packages.count > 0 %} <a href="{% url 'customrecipe' extra.pid data.id %}"> {{data.get_all_packages.count}} - </a>''' + </a> + {% endif %}''' - self.add_column(title="Approx packages", + self.add_column(title="Packages", static_data_name='approx_packages', static_data_template=approx_packages_template) build_btn_template = ''' <button data-recipe-name="{{data.name}}" - class="btn btn-block build-recipe-btn" style="margin-top: 5px;" > + class="btn btn-default btn-block build-recipe-btn"> Build </button>'''
bitbake/lib/toaster/toastergui/templates/generic-toastertable-page.html +1 -1
@@ -7,7 +7,7 @@ <h2>{{title}} (<span class="table-count-{{table_name}}"></span>) {% if project.release %} - <i class="icon-question-sign get-help heading-help" title="This page lists {{title}} compatible with the release selected for this project, which is {{project.release.description}}"></i> + <i class="glyphicon glyphicon-question-sign get-help" title="This page lists {{title|lower}} compatible with the release selected for this project, which is {{project.release.description}}"></i> {% endif %} </h2>
Signature · 1 line
1.9.1
PATCH 86/106 toaster: project builds Improve empty state
In reply to Belen Barros PenaInclude an action in the 'Project builds' empty state, so that users have a explicit next step.
--- bitbake/lib/toaster/toastergui/tables.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
bitbake/lib/toaster/toastergui/tables.py +8 -2
@@ -1436,7 +1436,6 @@ class ProjectBuildsTable(BuildsTable): super(ProjectBuildsTable, self).__init__(*args, **kwargs) self.title = 'All project builds' self.mrb_type = 'project' - self.empty_state = "This project has no builds" # set from the querystring self.project_id = None
@@ -1461,7 +1460,6 @@ class ProjectBuildsTable(BuildsTable): """ self.project_id = kwargs['pid'] super(ProjectBuildsTable, self).setup_queryset(*args, **kwargs) - project = Project.objects.get(pk=self.project_id) self.queryset = self.queryset.filter(project=project)
@@ -1475,6 +1473,14 @@ class ProjectBuildsTable(BuildsTable): self.project_id = kwargs['pid'] context = super(ProjectBuildsTable, self).get_context_data(**kwargs) + empty_state_template = ''' + This project has no builds. + <a href="{% url 'projectimagerecipes' data.pid %}"> + Choose a recipe to build</a> + ''' + context['empty_state'] = self.render_static_data(empty_state_template, + kwargs) + project = Project.objects.get(pk=self.project_id) context['mru'] = Build.get_recent(project) context['project'] = project
Signature · 1 line
1.9.1
PATCH 87/106 toaster: recipes tables Tweaks for Bootstrap 3
In reply to Belen Barros PenaChanges to the image recipes and software recipes tables to make sure they display properly with Bootstrap 3.
--- bitbake/lib/toaster/toastergui/static/css/default.css | 4 +++- bitbake/lib/toaster/toastergui/tables.py | 6 +++--- bitbake/lib/toaster/toastergui/templates/recipe_btn.html | 13 +++++++------ 3 files changed, 13 insertions(+), 10 deletions(-)
bitbake/lib/toaster/toastergui/static/css/default.css +3 -1
@@ -156,7 +156,9 @@ legend { border: none; } td > .tooltip-inner { padding: 10px; } /* Set sane widths for table columns */ -#newcustomimagestable .get_description_or_summary { width: 30%; } +#newcustomimagestable .get_description_or_summary, +#imagerecipestable .get_description_or_summary, +#softwarerecipestable .get_description_or_summary { width: 30%; } /* Override the rather ugly default code styles */ code { color: #333; background-color: transparent; }
bitbake/lib/toaster/toastergui/tables.py +3 -3
@@ -319,10 +319,10 @@ class RecipesTable(ToasterTable): def __init__(self, *args, **kwargs): super(RecipesTable, self).__init__(*args, **kwargs) - self.empty_state = "Toaster has no recipe information. To generate recipe information you can configure a layer source then run a build." + self.empty_state = "Toaster has no recipe information. To generate recipe information you need to run a build." build_col = { 'title' : "Build", - 'help_text' : "Add or delete recipes to and from your project", + 'help_text' : "Before building a recipe, you might need to add the corresponding layer to your project", 'hideable' : False, 'filter_name' : "in_current_project", 'static_data_name' : "add-del-layers",
@@ -384,7 +384,7 @@ class RecipesTable(ToasterTable): recipe_file_template = ''' <code>{{data.file_path}}</code> <a href="{{data.get_vcs_recipe_file_link_url}}" target="_blank"> - <i class="icon-share get-info"></i> + <span class="glyphicon glyphicon-new-window"></i> </a> '''
bitbake/lib/toaster/toastergui/templates/recipe_btn.html +7 -6
@@ -1,16 +1,17 @@ -<button data-recipe-name="{{data.name}}" class="btn btn-block layer-exists-{{data.layer_version.pk}} build-recipe-btn" style="margin-top: 5px; +<a data-recipe-name="{{data.name}}" class="btn btn-default btn-block layer-exists-{{data.layer_version.pk}} build-recipe-btn" style="margin-top: 5px; {% if data.layer_version.pk not in extra.current_layers %} display:none; {% endif %}" > Build recipe -</button> -<button class="btn btn-block layerbtn layer-add-{{data.layer_version.pk}}" data-layer='{ "id": {{data.layer_version.pk}}, "name": "{{data.layer_version.layer.name}}", "layerdetailurl": "{%url 'layerdetails' extra.pid data.layer_version.pk%}"}' data-directive="add" +</a> +<a class="btn btn-default btn-block layerbtn layer-add-{{data.layer_version.pk}}" data-layer='{ "id": {{data.layer_version.pk}}, "name": "{{data.layer_version.layer.name}}", "layerdetailurl": "{%url 'layerdetails' extra.pid data.layer_version.pk%}"}' data-directive="add" {% if data.layer_version.pk in extra.current_layers %} style="display:none;" {% endif %} > - <i class="glyphicon glyphicon-plus"></i> + <span class="glyphicon glyphicon-plus"></span> Add layer - <i title="" class="icon-question-sign get-help" data-original-title="To build this target, you must first add the {{data.layer_version.layer.name}} layer to your project"></i> -</button> + <span class="glyphicon glyphicon-question-sign get-help" title="To build this + recipe you must first add the {{data.layer_version.layer.name}} layer to your project"></i> +</a>
Signature · 1 line
1.9.1
PATCH 88/106 toaster: machines table Changes for Bootstrap 3
In reply to Belen Barros PenaMake sure the machines table displays properly with Bootstrap 3.
--- bitbake/lib/toaster/toastergui/tables.py | 4 ++-- bitbake/lib/toaster/toastergui/templates/machine_btn.html | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-)
bitbake/lib/toaster/toastergui/tables.py +2 -2
@@ -196,7 +196,7 @@ class MachinesTable(ToasterTable): def __init__(self, *args, **kwargs): super(MachinesTable, self).__init__(*args, **kwargs) - self.empty_state = "No machines maybe you need to do a build?" + self.empty_state = "Toaster has no machine information for this project. Sadly, machine information cannot be obtained from builds, so this page will remain empty." self.title = "Compatible machines" self.default_orderby = "name"
@@ -264,7 +264,7 @@ class MachinesTable(ToasterTable): field_name="layer_version__get_vcs_reference") machine_file_template = '''<code>conf/machine/{{data.name}}.conf</code> - <a href="{{data.get_vcs_machine_file_link_url}}" target="_blank"><i class="icon-share get-info"></i></a>''' + <a href="{{data.get_vcs_machine_file_link_url}}" target="_blank"><span class="glyphicon glyphicon-new-window"></i></a>''' self.add_column(title="Machine file", hidden=True,
bitbake/lib/toaster/toastergui/templates/machine_btn.html +5 -5
@@ -1,16 +1,16 @@ -<a href="{% url 'project' extra.pid %}?setMachine={{data.name}}" class="btn btn-block layer-exists-{{data.layer_version.id}}" +<a href="{% url 'project' extra.pid %}?setMachine={{data.name}}" class="btn btn-default btn-block layer-exists-{{data.layer_version.id}}" {% if data.layer_version.pk not in extra.current_layers %} style="display:none;" {% endif %} > Select machine</a> -<button class="btn btn-block layerbtn layer-add-{{data.layer_version.id}}" data-layer='{ "id": {{data.layer_version.id}}, "name": "{{data.layer_version.layer.name}}", "layerdetailurl": "{%url 'layerdetails' extra.pid data.layer_version.id %}"}' data-directive="add" +<a class="btn btn-default btn-block layerbtn layer-add-{{data.layer_version.id}}" data-layer='{ "id": {{data.layer_version.id}}, "name": "{{data.layer_version.layer.name}}", "layerdetailurl": "{%url 'layerdetails' extra.pid data.layer_version.id %}"}' data-directive="add" {% if data.layer_version.pk in extra.current_layers %} style="display:none;" {% endif %} > - <i class="glyphicon glyphicon-plus"></i> + <span class="glyphicon glyphicon-plus"></span> Add layer - <i title="" class="icon-question-sign get-help" data-original-title="To enable this machine, you must first add the {{data.layer_version.layer.name}} layer to your project"></i> -</button> + <span class="glyphicon glyphicon-question-sign get-help" title="To select this machine, you must first add the {{data.layer_version.layer.name}} layer to your project"></i> +</a>
Signature · 1 line
1.9.1
PATCH 89/106 toaster: layers table Changes for Bootstrap 3
In reply to Belen Barros PenaMake sure the layers table displays properly with Bootstrap 3.
--- bitbake/lib/toaster/toastergui/static/css/default.css | 8 ++++++-- bitbake/lib/toaster/toastergui/tables.py | 8 ++++---- bitbake/lib/toaster/toastergui/templates/layer_btn.html | 12 ++++++------ 3 files changed, 16 insertions(+), 12 deletions(-)
bitbake/lib/toaster/toastergui/static/css/default.css +6 -2
@@ -20,7 +20,7 @@ img.logo { height: 30px; vertical-align: bottom; } #new-project-button { margin-right: 0; } /* Increase popovers width to fit commit SHAs */ -.popover { min-width: 350px; } +.popover { max-width: 350px; } /* Increase bottom margin of definition lists inside popovers for the Toaster version information in the top navbar */ .popover-content dd { margin-bottom: 15px; }
@@ -78,6 +78,8 @@ tbody > tr > td > .glyphicon-minus-sign { color: #a94442; } .glyphicon-download-alt:hover, .glyphicon-edit:hover { color: #23527c; cursor: pointer; text-decoration: none; } .glyphicon-trash { color: #a94442; } +.btn-danger > .glyphicon-trash, +.btn-danger > .glyphicon-trash:hover { color: #fff; } .glyphicon-trash:hover { color: #843534; cursor: pointer; } /* Set the font size for icons inside headings and lead paragraphs */
@@ -158,7 +160,9 @@ td > .tooltip-inner { padding: 10px; } /* Set sane widths for table columns */ #newcustomimagestable .get_description_or_summary, #imagerecipestable .get_description_or_summary, -#softwarerecipestable .get_description_or_summary { width: 30%; } +#softwarerecipestable .get_description_or_summary, +#machinestable .description, +#layerstable .layer__summary { width: 30%; } /* Override the rather ugly default code styles */ code { color: #333; background-color: transparent; }
bitbake/lib/toaster/toastergui/tables.py +4 -4
@@ -118,7 +118,7 @@ class LayersTable(ToasterTable): </a> {% if data.get_vcs_link_url %} <a target="_blank" href="{{ data.get_vcs_link_url }}"> - <i class="icon-share get-info"></i> + <span class="glyphicon glyphicon-new-window"></span> </a> {% endif %} '''
@@ -135,7 +135,7 @@ class LayersTable(ToasterTable): </a> {% if data.dirpath and data.get_vcs_dirpath_link_url %} <a target="_blank" href="{{ data.get_vcs_dirpath_link_url }}"> - <i class="icon-share get-info"></i> + <span class="glyphicon glyphicon-new-window"></span> </a> {% endif %}'''
@@ -166,8 +166,8 @@ class LayersTable(ToasterTable): deps_template = ''' {% with ods=data.dependencies.all%} {% if ods.count %} - <a class="btn" title="<a href='{% url "layerdetails" extra.pid data.id %}'>{{data.layer.name}}</a> dependencies" - data-content="<ul class='unstyled'> + <a class="btn btn-default" title="<a href='{% url "layerdetails" extra.pid data.id %}'>{{data.layer.name}}</a> dependencies" + data-content="<ul class='list-unstyled'> {% for i in ods%} <li><a href='{% url "layerdetails" extra.pid i.depends_on.pk %}'>{{i.depends_on.layer.name}}</a></li> {% endfor %}
bitbake/lib/toaster/toastergui/templates/layer_btn.html +6 -6
@@ -1,17 +1,17 @@ -<button class="btn btn-danger btn-block layer-exists-{{data.pk}} layerbtn" data-layer='{ "id": {{data.pk}}, "name": "{{data.layer.name}}", "layerdetailurl": "{%url 'layerdetails' extra.pid data.pk%}"}' data-directive="remove" +<a class="btn btn-danger btn-block layer-exists-{{data.pk}} layerbtn" data-layer='{ "id": {{data.pk}}, "name": "{{data.layer.name}}", "layerdetailurl": "{%url 'layerdetails' extra.pid data.pk%}"}' data-directive="remove" {% if data.pk not in extra.current_layers %} style="display:none;" {% endif %} > - <i class="icon-trash"></i> + <span class="glyphicon glyphicon-trash"></span> Remove layer -</button> -<button class="btn btn-block layer-add-{{data.pk}} layerbtn" data-layer='{ "id": {{data.pk}}, "name": "{{data.layer.name}}", "layerdetailurl": "{%url 'layerdetails' extra.pid data.pk%}"}' data-directive="add" +</a> +<a class="btn btn-default btn-block layer-add-{{data.pk}} layerbtn" data-layer='{ "id": {{data.pk}}, "name": "{{data.layer.name}}", "layerdetailurl": "{%url 'layerdetails' extra.pid data.pk%}"}' data-directive="add" {% if data.pk in extra.current_layers %} style="display:none;" {% endif %} > - <i class="glyphicon glyphicon-plus"></i> + <span class="glyphicon glyphicon-plus"></span> Add layer -</button> +</a>
Signature · 1 line
1.9.1
PATCH 90/106 toaster: breadcrumbs Fix for Bootstrap 3
In reply to Belen Barros PenaStyle our navigation breadcrumbs so that they display properly with Bootstrap 3.
--- bitbake/lib/toaster/toastergui/static/css/default.css | 5 +++++ 1 file changed, 5 insertions(+)
bitbake/lib/toaster/toastergui/static/css/default.css +5 -0
@@ -166,3 +166,8 @@ td > .tooltip-inner { padding: 10px; } /* Override the rather ugly default code styles */ code { color: #333; background-color: transparent; } + +/* Style our breadcrumbs */ +.breadcrumb > li + li::before { content: none; } +.breadcrumb { background-color: transparent; padding-left: 0; padding-top: 15px; } +.breadcrumb .divider { color: #777; margin: 0 5px; }
Signature · 1 line
1.9.1
PATCH 91/106 toaster: layerdetails Fix the layer details page
In reply to Belen Barros PenaMake sure that all information displays correctly, and all controls interact as designed, with Bootstrap 3.
--- .../lib/toaster/toastergui/static/css/default.css | 45 ++++- .../toaster/toastergui/static/js/layerdetails.js | 65 ++++--- bitbake/lib/toaster/toastergui/tables.py | 12 +- .../toaster/toastergui/templates/layerdetails.html | 204 +++++++++++---------- .../toastergui/templates/toastertable-simple.html | 104 ++++++----- 5 files changed, 243 insertions(+), 187 deletions(-)
bitbake/lib/toaster/toastergui/static/css/default.css +36 -9
@@ -22,8 +22,13 @@ img.logo { height: 30px; vertical-align: bottom; } /* Increase popovers width to fit commit SHAs */ .popover { max-width: 350px; } -/* Increase bottom margin of definition lists inside popovers for the Toaster version information in the top navbar */ -.popover-content dd { margin-bottom: 15px; } +/* Increase bottom margin of definition lists inside popovers for the Toaster version information in the top navbar, and also inside the right hand columns of our details pages */ +.popover-content dd, +.well dd { margin-bottom: 15px; } + +/* Style the horizonal definition lists */ +.dl-horizontal dt { width: 200px; line-height: 25px; } +.dl-horizontal dd { margin-left: 220px; line-height: 25px; } /* Style our build results */ .build-result .progress { margin-bottom: 0; }
@@ -52,6 +57,8 @@ span[class^="remove-search-btn-"] { position: absolute; right: 5px; top: 0; bott span[class^="remove-search-btn-"]:hover { color: #333; } [id^="pagination-"] .pagination, [id^="pagination-"] .navbar-form { margin-top: 0; } +[id^="table-chrome-"] .navbar-form { margin-left: -15px; margin-right: -15px; } +[id^="table-chrome-"] .detail-page-contols { padding-left: 0; padding-right: 0; } /* Override the default font-weight for labels: it's a bit too much */ label { font-weight: normal; }
@@ -111,6 +118,7 @@ h3 > .glyphicon-question-sign { font-size: 14px; } /* Style the most built recipes list in the project page */ #freq-build-list .checkbox input[type="checkbox"] { position: relative; margin: 0 10px 0 0; vertical-align: middle; } +#freq-build-list.lead > li { line-height: 25px; } #freq-build-list { margin-top: 20px; } #freq-build-list label { padding-left: 0; } #freq-build-btn { margin-top: 10px; }
@@ -119,16 +127,22 @@ h3 > .glyphicon-question-sign { font-size: 14px; } /* Style the layers section in the project page and the layer dependencies in the import layer form */ #layer-container .form-inline { margin-top: 20px; } #layer-add-input { width: 17em; } -#layers-in-project-list, -#layer-deps-list { margin-top: 20px; } -#layers-in-project-list > li, -#layer-deps-list > li { line-height: 38px; } -#layers-in-project-list .glyphicon-trash, -#layer-deps-list .glyphicon-trash { font-size: 16px; margin-left: 7px; } +ul.lead { margin-top: 20px; } +ul.lead > li { line-height: 38px; } +ul.lead .glyphicon-trash, +ul.lead .glyphicon-trash { font-size: 16px; margin-left: 7px; } #layers-in-project-list .tooltip-inner { max-width: 600px; } #no-layers-in-project { margin-top: 20px; } #no-layers-in-project ul { margin-top: 10px; } +/* Style the layer information icons in the layer details pages */ +dd .glyphicon-trash, +dd .glyphicon-edit { margin-left: 5px; } + +/* Style the forms and definition lists in the layer details pages */ +#change-repo-form .form-control { width: 17em; } +#information dd > form { margin-bottom: 5px; margin-top: 5px; } + /* Create a class for additional top margin that we can use in headings */ .top-air { margin-top: 40px; }
@@ -161,8 +175,10 @@ td > .tooltip-inner { padding: 10px; } #newcustomimagestable .get_description_or_summary, #imagerecipestable .get_description_or_summary, #softwarerecipestable .get_description_or_summary, -#machinestable .description, #layerstable .layer__summary { width: 30%; } +#recipestable .get_description_or_summary { width: 40%; } +#machinestable .name { white-space: nowrap; } +#machinestable .description { width: 45%; } /* Override the rather ugly default code styles */ code { color: #333; background-color: transparent; }
@@ -171,3 +187,14 @@ code { color: #333; background-color: transparent; } .breadcrumb > li + li::before { content: none; } .breadcrumb { background-color: transparent; padding-left: 0; padding-top: 15px; } .breadcrumb .divider { color: #777; margin: 0 5px; } + +/* Reduce top margin for the page-header class */ +.page-header { margin-top: 30px; } + +/* Set some space around the layer button in the layer details pages */ +.tab-content { margin-top: 20px; } +.tab-pane { margin-top: 20px; } + +/* Style the new window icons */ +.glyphicon-new-window:hover { text-decoration: none; } +.dl-horizontal > dd > .glyphicon-new-window { margin-left: 5px; }
bitbake/lib/toaster/toastergui/static/js/layerdetails.js +38 -27
195 lines not on this page · raw message
bitbake/lib/toaster/toastergui/tables.py +10 -2
@@ -307,7 +307,11 @@ class LayerMachinesTable(MachinesTable): self.add_column(title="Description", field_name="description") - select_btn_template = '<a href="{% url "project" extra.pid %}?setMachine={{data.name}}" class="btn btn-block select-machine-btn" {% if extra.in_prj == 0%}disabled="disabled"{%endif%}>Select machine</a>' + select_btn_template = ''' + <a href="{% url "project" extra.pid %}?setMachine={{data.name}}" + class="btn btn-default btn-block select-machine-btn + {% if extra.in_prj == 0%}disabled{%endif%}">Select machine</a> + ''' self.add_column(title="Select machine", static_data_name="add-del-layers",
@@ -455,7 +459,11 @@ class LayerRecipesTable(RecipesTable): self.add_column(title="Description", field_name="get_description_or_summary") - build_recipe_template ='<button class="btn btn-block build-recipe-btn" data-recipe-name="{{data.name}}" {%if extra.in_prj == 0 %}disabled="disabled"{%endif%}>Build recipe</button>' + build_recipe_template = ''' + <a class="btn btn-default btn-block build-recipe-btn + {%if extra.in_prj == 0 %}disabled{%endif%}" + data-recipe-name="{{data.name}}">Build recipe</a> + ''' self.add_column(title="Build recipe", static_data_name="add-del-layers",
bitbake/lib/toaster/toastergui/templates/layerdetails.html +104 -100
302 lines not on this page · raw message
bitbake/lib/toaster/toastergui/templates/toastertable-simple.html +55 -49
123 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH 92/106 toaster: custom recipe Fix the custom recipe details page
In reply to Belen Barros PenaMake sure the page displays correctly with Bootstrap 3, but when showing the table of packages and when showing no packages.
--- .../lib/toaster/toastergui/static/css/default.css | 12 ++- bitbake/lib/toaster/toastergui/tables.py | 3 +- .../toaster/toastergui/templates/customrecipe.html | 95 +++++++++++----------- .../toastergui/templates/pkg_add_rm_btn.html | 10 +-- .../snippets/pkg_dependencies_popover.html | 2 +- .../snippets/pkg_revdependencies_popover.html | 2 +- .../toaster/toastergui/templates/toastertable.html | 2 + 7 files changed, 67 insertions(+), 59 deletions(-)
bitbake/lib/toaster/toastergui/static/css/default.css +10 -2
@@ -49,12 +49,15 @@ img.logo { height: 30px; vertical-align: bottom; } /* Styles for our table controls */ .form-control[id^="search-input-"], .form-control[id^="new-search-input-"] { width: 30em; } +#search-input-selectpackagestable, +.form-control[id^="no-results-search-input-"]{ width: 20em; } #edit-columns-button { margin-right: 30px; } .navbar-default[id^="table-chrome-"] { background-color: transparent; } [id^="table-chrome-collapse-"] .navbar-form { margin-left: -15px; } .dropdown-menu.editcol { padding-left: 10px; min-width: 180px; } span[class^="remove-search-btn-"] { position: absolute; right: 5px; top: 0; bottom: 0; height: 14px; margin: auto; font-size: 14px; cursor: pointer; color: #777;} span[class^="remove-search-btn-"]:hover { color: #333; } +#no-results-special-selectpackagestable .form-inline { margin-top: 20px; } [id^="pagination-"] .pagination, [id^="pagination-"] .navbar-form { margin-top: 0; } [id^="table-chrome-"] .navbar-form { margin-left: -15px; margin-right: -15px; }
@@ -77,7 +80,8 @@ thead > tr > th > a.sorted { font-weight: bold; color: #333; } thead > tr > th > .glyphicon-question-sign { margin-right: 5px; } /* Style build outcome in tables, download, remove and change icons */ -tbody > tr > td > .glyphicon-ok-circle { color: #3c763d; } +tbody > tr > td > .glyphicon-ok-circle, +dd > .glyphicon-ok-circle { color: #3c763d; } tbody > tr > td > .glyphicon-minus-sign { color: #a94442; } .glyphicon-download-alt, .glyphicon-edit { color: #337ab7; }
@@ -169,7 +173,8 @@ legend { border: none; } .help-inline { color: #737373; margin-left: 10px; } /* Give some padding to the in-cell tooltips we use for notifications in tables */ -td > .tooltip-inner { padding: 10px; } +td > .tooltip-inner, +.inline-notification { padding: 10px; } /* Set sane widths for table columns */ #newcustomimagestable .get_description_or_summary,
@@ -198,3 +203,6 @@ code { color: #333; background-color: transparent; } /* Style the new window icons */ .glyphicon-new-window:hover { text-decoration: none; } .dl-horizontal > dd > .glyphicon-new-window { margin-left: 5px; } + +/* Style the special no results message in the custom image details page */ +[id^="no-results-special-"] > .alert-warning > ol { margin-top: 10px; }
bitbake/lib/toaster/toastergui/tables.py +2 -1
@@ -725,7 +725,8 @@ class PackagesTable(ToasterTable): self.add_column(title="License", field_name="license", - orderable=True) + orderable=True, + hidden=True) self.add_column(title="Dependencies",
bitbake/lib/toaster/toastergui/templates/customrecipe.html +46 -49
170 lines not on this page · raw message
bitbake/lib/toaster/toastergui/templates/pkg_add_rm_btn.html +5 -5
@@ -1,12 +1,12 @@ {# TODO move to snippets dir #} {% if data.is_locale_package %} <p class="text-center"> - <span class="muted">Locale package</span> - <i class="icon-question-sign get-help hover-help" title="" - data-original-title="This package is included in your image + <span class="text-muted">Locale package</span> + <span class="glyphicon glyphicon-question-sign get-help hover-help" + title="This package is included in your image based on the locale specified in the IMAGE_LINGUAS variable" style="visibility: hidden;"> - </i> + </span> </p> {% else %}
@@ -21,7 +21,7 @@ <i class="icon-trash no-tooltip"></i> Remove package </button> - <button class="btn btn-block add-rm-package-btn" data-directive="add" data-id="{{data.pk}}" data-package-url="{% url 'xhr_customrecipe_packages' extra.recipe_id data.pk %}" data-name="{{data.name}}" style=" + <button class="btn btn-default btn-block add-rm-package-btn" data-directive="add" data-id="{{data.pk}}" data-package-url="{% url 'xhr_customrecipe_packages' extra.recipe_id data.pk %}" data-name="{{data.name}}" style=" {% if data.pk in extra.current_packages %} display:none {% endif %}
bitbake/lib/toaster/toastergui/templates/snippets/pkg_dependencies_popover.html +1 -1
@@ -6,7 +6,7 @@ {% for dep in data.package_dependencies_source.all_depends %} <li>{{dep.depends_on.name}} {% if dep.depends_on.size > 0 %}({{dep.depends_on.size|filtered_filesizeformat}}){% endif %}</li> {% endfor %} - </ul>" title="" class="btn" data-original-title=" + </ul>" class="btn btn-default" title=" <strong>{{data.name}}</strong> dependencies - <strong>{{data.package_dependencies_source.get_total_source_deps_size.depends_on__size__sum|filtered_filesizeformat}}</strong>"> {{dep_count}} </a>
bitbake/lib/toaster/toastergui/templates/snippets/pkg_revdependencies_popover.html +1 -1
@@ -6,7 +6,7 @@ {% for dep in data.package_dependencies_target.all_depends|dictsort:'package.name' %} <li>{{dep.package.name}} {% if dep.package.size > 0 %}({{dep.package.size|filtered_filesizeformat}}){% endif %}</li> {% endfor %} - </ul>" title="" class="btn" data-original-title=" + </ul>" class="btn btn-default" title=" <strong>{{data.name}}</strong> reverse dependencies - <strong>{{data.package_dependencies_target.get_total_revdeps_size.package_id__size__sum|filtered_filesizeformat}}</strong>"> {{dep_count}} </a>
bitbake/lib/toaster/toastergui/templates/toastertable.html +2 -0
@@ -121,3 +121,5 @@ </div> </form> </div> + +</div> <!--end table container -->
Signature · 1 line
1.9.1