summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster
Commit message (Collapse)AuthorAgeFilesLines
...
* bitbake: toaster: update database schemaAlexandru DAMIAN2014-03-096-13/+341
| | | | | | | | | | | | | | | | | | | | | This patch updates the database schema to resolve a number of issues discovered while implementing the UI interface. We do not expect that all the data will come in valid at this point. [YOCTO #5453] [YOCTO #5833] [YOCTO #5836] [YOCTO #5811] [YOCTO #5812] [YOCTO #5820] (Bitbake rev: f8ad96d10a095e21fd2ce424c45e17f54642fb54) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Move long content toggle to main.jsBelen Barros Pena2014-03-093-55/+18
| | | | | | | | | | | | | | | | | | | | I have move all javascript needed for toggling very long values for bitbake variables to main.js. I have changed the names of the classes involved to make them more generic, since I hope we'll be able to reuse them in other parts of the Toaster interface. .full-variable is now .full .full-variable-hide is now full-hide .full-variable-show is now full-show I have also removed all the inline scripting in base.html, since it is no longer needed. (Bitbake rev: 73828f047385ced160c7900cad24535aa8d325cd) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: implement the configuration pagedreyna/configure-detail-viewDavid Reyna2014-03-095-44/+299
| | | | | | | | | | | Update the configuration page with the file list pop-up, implement the file and description filters. [YOCTO #4259] (Bitbake rev: 54a767809960b66b2fe2d3bc46aa9c7e040c4ae3) Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: View detailed information about a taskRavi Chintakunta2014-03-095-6/+315
| | | | | | | | | | | | | | | | | Information about a task is displayed depending on it's execution status and outcome status. Edited to iterate through all possible entries for related setscene tasks. [YOCTO #4282] (Bitbake rev: 62f502b1237d4060df6be1ee4f4865db5fa39a6a) Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Bug fix in reload page with parametersRavi Chintakunta2014-03-091-1/+5
| | | | | | | | | | Fix the bug in reload_params function that was failing when the page URL did not have any parameters. (Bitbake rev: 8cba40daf521d1740687f9a030f8472f980a4563) Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Fix breadcrumb date format in detail pagesBelen Barros Pena2014-03-091-1/+1
| | | | | | | | | | | | | The template basebuilddetailpage.html had the completed on date in the breadcrumb set to naturaltime. Changed to d/m/y H:i to match the date format in the basebuildpage.html template, so that breadcrumbs display the same date format across all pages. (Bitbake rev: 188c12901c9573285956cded76f27a0d6330c82e) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Sort packages and dependencies in recipe.htmlBelen Barros Pena2014-03-091-3/+3
| | | | | | | | | | | | | | The tables in the Packages, Build dependencies and Reverse build dependencies tabs in the recipe details pages (template recipe.html) should be sorted by package name and recipe name respectively. This change adds the sorting. (Bitbake rev: ff6c448c7b5bc7bf4fe75e15e66c4e02f07f7618) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Change popover headings in recipes tableBelen Barros Pena2014-03-091-2/+2
| | | | | | | | | | | | In the recipes table, dependencies and reverse dependencies are shown inside a popover. The popover headings did not match the table headings, so changed to "dependencies" and "reverse dependencies" as per the design spec. (Bitbake rev: 05f19e5cd8cca48e6e52f4b3ea1cd25d2ba4ac1c) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Change help text for SectionBelen Barros Pena2014-03-092-2/+2
| | | | | | | | | | | | | | | | The help text for the Section information in the recipes table and the recipe details page said "packages" instead of recipes, and it said there were 5 possible values for the SECTION variable (which is not true). Changed to "The section in which recipes should be categorised" (Bitbake rev: 984273e07126674c674ad8b400418117ae087860) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Hide the applied filter tooltip on clickBelen Barros Pena2014-03-091-0/+5
| | | | | | | | | | | | | | | | | When you apply a filter, we show you a tooltip on hover that tells you which filter you have applied and allows you to clear it quickly. That tooltip does not disappear straight away if you click on the filter button: it hangs in there because the tooltip has a delay specified on hide. The effect is quite annoying. This change to main.js makes sure the tooltip disappears when you click the filter button. (Bitbake rev: 5928d2f3cba4524966a34d8c845a04627b9b310b) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Add .muted class to disabled checkboxesBelen Barros Pena2014-03-091-2/+2
| | | | | | | | | | | | In the edit columns menu, the checkboxes for the columns in the minimum table are disabled. To better communicate visually the disabled state, this change applies the .muted class to the labels of those checkboxes. (Bitbake rev: 125a3da654ac7742a93ac93f4f23336ecd251a61) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Set the right styles for definition listsBelen Barros Pena2014-03-091-1/+1
| | | | | | | | | | | | | | | | In the task details page, our labels are quite long and the default width of the dt elements in the .dl-horizontal class is too small. Changing the width to 200px, and the left margin of the dd element to 220px. Changing the bootstrap.min.css file is not ideal (ok, is a pretty bad hack), but it is the only way to keep the nice responsive styles for those definition lists. (Bitbake rev: 1e655eb121173b4441a9a4e9005fe8c1f235dfbb) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Set correct string for missed sstate attemptsBelen Barros Pena2014-03-091-1/+1
| | | | | | | | | Replace 'Missed' with 'File not in cache'in models.py (Bitbake rev: cb76a1d39ce36a36dc398a0422bcfac1c72f9c2b) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Remove inline styles in h1Belen Barros Pena2014-03-094-4/+5
| | | | | | | | | | | | | | | | | The templates bpackage.html, recipes.html and build.html included an inline style declaration in the div containing the h1 tag to add a top margin of 40px. The extra top margin is unnecessary in bpackage.html and recipes.html, but nicely separates the Recent builds and All builds sections in build.html. The changes remove the inline style declaration and create a .top-air class in default.css to include the extra top margin when needed, i.e. in the build.html template. (Bitbake rev: 2841f0740024a8351606452a5f803b9b7f70c783) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: extend Tasks to include Time, Disk IO, and CPU UsageDavid Reyna2014-03-095-191/+235
| | | | | | | | | | | | | | Update the All Tasks page to also cover the Time, Disk I/O, and CPU Usage pages. Add filter count header support, and fix minor column enablements. [YOCTO #4387] (Bitbake rev: 7e78836ebbddf0240094fd79a18cb057d6c4f322) Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: array-assignment fix from ChomeAlexandru DAMIAN2014-03-092-2/+4
| | | | | | | | | | | Apparently the JS engine in Chrome can't handle assignments to an array, so I'm patching this up by using an intermediate array to hold the values. (Bitbake rev: 47f5fde1bd8cf2e6f7e5c4ec2534a2f9599c4ea2) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: mark dependency packagesAlexandru DAMIAN2014-03-091-2/+2
| | | | | | | | | | | | | | | | | We need to mark the package entries that are created solely for dependency tracking purposes. In order to avoid altering the database schema, we mark the dependency targets with size = -1, since this is not a valid size anyway and makes for easy filtering. [YOCTO #5803] (Bitbake rev: d11ed273dd6c520b16e9ccfe79476f340006a55d) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toasterui: adding new task outcome emptyAlexandru DAMIAN2014-03-091-2/+5
| | | | | | | | | | | | | | | | | | | In order to separate tasks with invalid states from the no exec tasks, we add a new value OUTCOME_EMPTY for the tasks. OUTCOME_EMPTY has the same value as OUTCOME_NA as to maintain compatibility with already existing builds. New value for OUTCOME_NA can be used to detect tasks with invalid states, i.e. it should never appear after finishing a build. Fixing noexec tasks outcomes. [YOCTO #5763] (Bitbake rev: 475643ad78796835bf2e731b9d0fa5794ec80dd1) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toastergui: fix task executed status displayAlexandru DAMIAN2014-03-093-12/+7
| | | | | | | | | | | | | The proper way to get a display-able value in Django is to use a model method instead of clutter the template with if/else. [YOCTO #5641] (Bitbake rev: bb21b71dab70db163b804c7ebf27b85c59a39112) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: implement package summary pageDavid Reyna2014-02-173-40/+131
| | | | | | | | | | | | | Implement the updated design for the package summay page, with pop-up boxes for the layer commit ids, column filtering, and column sorting support. [YOCTO #4318] (Bitbake rev: c39b99792547b642570ea5152070e7396e812390) Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: implement recipe summary pageDavid Reyna2014-02-173-39/+145
| | | | | | | | | | | | | Implement the updated design for the recipe summay page, with pop-up boxes for the dependecies and layer commit ids, column filtering, and column sorting support. [YOCTO #4294] (Bitbake rev: 92b71c8e6cfcd656866fbf9bd00bf184b223c5fa) Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Make popovers mutually exclusiveBelen Barros Pena2014-02-171-36/+19
| | | | | | | | | | | | | | | | | | | Table popovers should be mutually exclusive (only one of them should be open at any given time), and should close when you click outside their area. But this is not the default popover behaviour in Bootstrap, so some additional javascript is needed. The code in main.js taking care of this in the design prototype was quite ugly and didn't get on well with certain browsers. I have replaced it with a better solution (although still not ideal). (Bitbake rev: d56633c00f6730c053f355570211eba1bdc41b62) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Make popovers scrollableBelen Barros Pena2014-02-171-0/+3
| | | | | | | | | | | | | Some recipes and packages have a lot of dependencies. To stop their popovers from taking over the full height of the screen, I have given them a maximum height and made their content scrollable in default.css (Bitbake rev: b6416a98f441516100d2ce7baca30f09714a1d1d) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Make all targets links to the build dashboardBelen Barros Pena2014-02-171-1/+1
| | | | | | | | | | | | | | Change the build.html template to remove the conditional check that added links to the build dashboard only to those targets that are image recipes. All targets should be links to their corresponding build dashboard. (Bitbake rev: 05f52b9fad597173d813fa4305af65f1c9bb88a1) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Select a radio button by default in Filter DialogRavi Chintakunta2014-02-172-1/+13
| | | | | | | | | | If none of the filter options in the filter dialog are active, then select the first radio button. (Bitbake rev: 8aa63143cc446227c69f64688b314c65b74604d8) Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Fix for task_color tagBelen Barros Pena2014-02-171-1/+1
| | | | | | | | | | | | This patch changes the task_color tag in projecttags.py to make sure it adds the error class to the rows corresponding to failed tasks in the tasks table. (Bitbake rev: 44c5b3a93a93a464429e8d998aace25f840ae724) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Apply error style to cell linksBelen Barros Pena2014-02-171-1/+1
| | | | | | | | | | | | | This patch changes default.css so that any anchor tag inside a table cell with the error class applied inherits the class styles. This ensures that the failed tasks listed in the builds table look red like the failed tasks in the tasks table. (Bitbake rev: e5cbb190317dba2eddd933678474569563ec840b) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Make "Edit columns" multiselectBelen Barros2014-02-171-0/+5
| | | | | | | | | | | | | | | | | Twitter Boostrap elements with the dropdown-menu class close by default once a selection is performed. Such behaviour is not appropriate for our "Edit columns" menu, since users might want to check / uncheck several columns. This patch adds a call to the stopPropagation() jQuery function to main.js to stop the "Edit columns" menu from closing every time you change a checkbox. (Bitbake rev: c2e43750bf0913523a1abcb2c8bf97b764da2524) Signed-off-by: Belen Barros <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: fix javascript for table filtersAlexandru DAMIAN2014-02-172-1/+3
| | | | | | | | | | | | This patch adds javascript link for resetting page filters in the tool tip "Show all" button. Also fixes a JS bug for when the cookie is not set yet. (Bitbake rev: e123922274ea875105e6ed855b3368b8b77fca64) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Add clear filter button to filter tooltipsBelen Barros2014-02-172-2/+2
| | | | | | | | | | | | | | | | This patch modifies the basetable_top.html template to add the 'Show all' button to the applied filter tooltip. It also adds a delay in the tooltip dismissal in main.js to allow users to click the button comfortably. The patch does not add the functionality to the button (when you click on it nothing happens). Someone else will need to add that in. (Bitbake rev: e39857162b5d91cc2f92843a9a14599bab369849) Signed-off-by: Belen Barros <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Clean up main.jsBelen Barros2014-02-171-444/+32
| | | | | | | | | | | | | | | | Clean up main.js to leave only what is being used in the design prototype. Initialise the Bootstrap tooltips for any anchor tag inside a table heading with the btn-primary class applied. This effectively styles the title attribute of the applied filters to look like all other Toaster tooltips. (Bitbake rev: 71a07268c3a2e969c088ef9f6bcf4c54254b3600) Signed-off-by: Belen Barros <belen.barros.pena@intel.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Clean up default.cssBelen Barros2014-02-171-177/+114
| | | | | | | | | | | Getting rid of all unused css declarations, grouping and annotating to make the file more readable. (Bitbake rev: 90409869d49468d31daa60880f54774c4b24d5aa) Signed-off-by: Belen Barros <belen.barros.pena@intel.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Implementation of package detail viewsDave Lerner2014-02-1713-32/+777
| | | | | | | | | | | | | | | | | | | | | | | | Adds new package detail views. The views are based on specifications found in attachments to: https://bugzilla.yoctoproject.org/show_bug.cgi?id=4328 specifically: design-1.5.1-package-details.pdf, and design-1.1.1-included-package-details. This patch includes a redefinition of constant numbers for task dependency tasks. This is needed in order to achieve sorting criteria from the design. This change invalidates currently dependency information for currently existing builds, as it breaks compatibility. [YOCTO #4328] (Bitbake rev: 6855925c06e7e5bb15ae9d0c08d77f3a9a2574bc) Signed-off-by: Dave Lerner <dave.lerner@windriver.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Added sorting to other columns in All tasks tableRavi Chintakunta2014-02-171-1/+9
| | | | | | | | | | | Added sorting to recipe, time, cpu, disk i/o and log columns of all tasks table (Bitbake rev: 277d076d777f26f215f01cac59302bcf9cf44a9c) Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Fix builds view filter options to match changes in filter ↵Ravi Chintakunta2014-02-171-27/+44
| | | | | | | | | | | | dialog Filter dialog uses an array of tuples for filter options.Fixed the builds view by changing the filter options from a dictionary to a list of tuples. (Bitbake rev: bac1ca6e276b2e276b844d1009dba964810a2957) Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Filter Dialog fix to display filter options as radio buttonsRavi Chintakunta2014-02-171-10/+14
| | | | | | | | | | | | - Filter options are displayed as radio buttons in the filter dialog. - To preserve the order of the filter options, the options are passed as tuples inside a list, instead of key/value pairs of a dictionary. Changed the filter dialog code to use the tuple (Bitbake rev: 5e475b312348fa45312946b528648739c78da2ba) Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Removed unused 'disabled' css class in Filter dialogRavi Chintakunta2014-02-171-1/+1
| | | | | | | (Bitbake rev: 8cd978ec3cc56e3f30d58d17188e67296bdb120b) Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: fix package data gatheringAlexandru DAMIAN2014-01-272-0/+181
| | | | | | | | | | | | | | | | Under OE-Core, the name under which a package would be installed in a target may have been different than the name under it has been built or recorded in the dependencies listings. This patch addresses the way that Toaster records package names, and adds the field of "installed_name" to save the name under which a package have been installed in an image. (Bitbake rev: 24e0367429b248108b104ab5a2af05efcf7a8c39) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: fix builds page CSS and functionalityAlexandru DAMIAN2014-01-273-10/+12
| | | | | | | | | | | | | | | | | This patch fixes a set of CSS and functionality problems with the build list page: * Fix Recent Builds text styles * Added proper links from Failed Tasks entries. * Always Search returns to the first page of results. * Clear search button appears only if search is active. * Search shows the number of object, proper no objects found * Various smaller fixes. (Bitbake rev: 9164948e387a726f318f723f63e8d93435d7afe6) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Set .error styles for tablesBarros Pena, Belen2014-01-271-12/+17
| | | | | | | | | | | | Override the default styles of Twitter Bootstrap for table rows with the .error class applied, and ensure that table cells and anchor tags inherit the .error styles when their table row has that class applied. (Bitbake rev: 8b44955bb836ccad384718247ceb08d713ebc152) Signed-off-by: Belen Barros <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: All Tasks Feature with sorting and filteringRavi Chintakunta2014-01-273-80/+185
| | | | | | | | | | | | | | | | - Fixed the all tasks view and template to match the UI design and use the new basetable code. - Added a method to views to add sort order icon to the view context. - Default sort order when the page is loaded is displayed with the sort icon - Filtering of columns (Bitbake rev: b2f8de082c3ae41eb44e6ccdc283849b64d0b0f2) Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Implementation of recipe detail viewsDavid Reyna2014-01-273-45/+332
| | | | | | | | | | | | | | | | Add the new recipe detail page and update the view context accordingly. Rename the recipe summary page to 'recipes.html' and add the respective links to the recipe details page. The views are based on specifications found in attachments to https://bugzilla.yoctoproject.org/show_bug.cgi?id=4299 [YOCTO #4299] (Bitbake rev: d561000b6c4927ef6ec269e9ab7c70249b3c344a) Signed-off-by: David Reyna <david.reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Implementation of base build details pageDavid Reyna2014-01-271-0/+28
| | | | | | | | | | | | This page is the standard base page for 'details' views. It is based on 'basebuildpage.html' but does not include the build's quick-link sidebar. (Bitbake rev: 2d7e9a6f8464783e165804974a7d94b544c9a43f) Signed-off-by: David Reyna <david.reyna@windriver.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Added custom filter tags for use in templates.Ravi Chintakunta2014-01-271-0/+35
| | | | | | | | | | | | | | | | - custom filter tag to return the css class based on the task execution status and execution outcome - custom filters for active filter icon and tooltip text - custom filter for displaying blank for None, zero, '0' and 'Not Applicable' (Bitbake rev: 1e9253984e6f107c6eed1c3b9df3a444076e2989) Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Base table fixes for header text, sort icon and filter iconRavi Chintakunta2014-01-273-3/+5
| | | | | | | | | | | | | | | | | | | | - Display the table column header as a link only if it is sortable. Non-sortable column headers are displayed as plain text. - Display the sort order by an up / down arrow icon next to the column header - Add style for header in default.css - Set tooltip for the active filter icon - Pass the view name to the filter dialog (Bitbake rev: 53ede15926d45b555252d77919a0568a984c6d74) Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Base html fix to set the page titleRavi Chintakunta2014-01-271-1/+1
| | | | | | | | | | Set title of the page if the context includes objectname. (Bitbake rev: 8bfd140b93bcbfe8be4dd8a30268d3cc033e180f) Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: settings remove duplicate entryAlexandru DAMIAN2014-01-271-1/+0
| | | | | | | | | | | | The 'toastergui' application had duplicate entries, so this patch removes the duplicate ones. Based on an original patch from Ravi Chintakunta <ravi.chintakunta@timesys.com>. (Bitbake rev: 86d3a44e81aa3dbff947330dfaeff6040bbd625f) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Add initial testsAndreea Proca2014-01-274-5/+141185
| | | | | | | | | This adds the initial api tests for toaster, using Django's unittest modules. (Bitbake rev: daf9a61fbf69a46b7afd781a6175b05b05fd452f) Signed-off-by: Andreea Proca <andreea.b.proca@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: Toaster GUI Build and Dashboard pages fixesAlexandru DAMIAN2014-01-2711-46/+471
| | | | | | | | | | | | | | | | | | | | | | | THis is a large set of fixes for the generic table, Build and Dashboard pages. Among the fixes: * the table remembers which columns to show across refreshes, based on saving the settings in a cookie * added column timespent for a build which is a denormalization of the completed_on - started_on information due to limits in computing datetime differences in the SQL engine * fixed formatting of the time differences * various sorting header links fixed * correct error and warning CSS classes applied to the respective rows * fixes multiple divide-by-zero error in displaying duration estimations (Bitbake rev: 61e3dee55ac577fce1c0ae0fe7e0d3cf644e8ae6) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: toaster: add jquery cookie pluginAlexandru DAMIAN2014-01-272-0/+119
| | | | | | | | | | | | We add the jquery cookie plugin to allow us to save and read local client date in cookie. jquery-cookie using version 1.4.0 under MIT licence. (Bitbake rev: 8ce1668dd93269add878f8ea69deb8b53f3bca8b) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>