aboutsummaryrefslogtreecommitdiffstats
path: root/lib/toaster/toastergui/static
AgeCommit message (Collapse)Author
2014-07-23toaster: add project main edit pageAlexandru DAMIAN
This is the first commit on the project main edit page. At this point we have: * the default settings for a newly created project * the ability to add targets * the ability to trigger a build command, and have the build executed Project layers now have an optional field, allowing for removal. Default meta, meta-yocto and meta-yocto-bsp layers cannot be optional. We add XHR calls for interactivity in the main page. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-07-03toaster: fix no newline at end of fileRobert Yang
Add a '\n' to the last line of the file to fix: No newline at end of file Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-04-09toaster: sort on size in detail pagesDave Lerner
[YOCTO 5778] Implements the features described in the attachment to bugzilla 5778 - new global changes to the format of size data, and - adding sorts by selected columns to specific detail pages. Although new pagination and row search capabilities are shown on the screen shots for the 5778 attachment, those features are specified in a different bugzilla entry 5777 and are not implemented in this commit. Also, the 5778 spec includes table sorting for the recipe package detail page, but sorting for that page was not implemented in this commit due to complications with sorting then returning to a page that is only one URL fragment in a template. The scope of file changes are described below. Changes to support new 'size' field column formats... default.css - added sizecol class style (right justified) projecttags.py - changed filtered_filesizeformat to allow ".0" suffixes Changes that add class 'sizecol, span2(as spec'd) ' to <th> and/or <td> size columns were made to... dirinfo.py, package_built_dependencies.html, package_included_dependencies.html, recipe.html, bpackage.html, and target.html More significant changes to support detail page table sorting are: - tablesort.html: New created to implement the sort icons, directions, and table headings, and suppress sort handling if 'disable_sort' in context, without search or pagination elements ingrained in basetable_top. Confining the changes to this small file reduces the impact (testing and risk) on the larger set of files that arleady include basetable_top/bottom files. - view.py: Modified the following view functions with - trivial changes for size formatting to the views: target, - changes to package_built_detail, package_included_detail, package_included_reverse_dependencies to handle the sorting implementation as well as moving headings and size formatting for size columns from templates to the views. - Implementation of the detail sorting using above in: package_built_detail.html, package_included_detail.html, and package_included_reverse_dependencies.html to include the tablesort heading setup, format the size column, and iterate over the new sorted objects, suppressing sorts if table row count less than 2. Signed-off-by: Dave Lerner <dave.lerner@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-04-05toaster: Fixes to the build dashboardBelen Barros Pena
* Add "on" before the date in the build status * Get rid of the extra space before the "and" in the build status * Make the errors and warnings links in the build status show the message content * Make sure that the "Images" section in the left navigation appears only for successful builds * Link the number of packages installed to the "Packages included" tab in the image information page * Remove unnecessary inline styles in the dashboard template * Make sure target names in the h1 are listed in alphabetical order Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2014-04-05toaster: Make tables happy in ChromeBelen Barros Pena
There is a known layout issue with Bootstrap tables in Chrome. This change applies a css fix for it, and changes the span classes in the variables table to improve formatting. Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2014-04-05toaster: Remove html validation errors in tasks.htmlBelen Barros Pena
Remove the duplicated class attribute and the name attribute. Also, make sure that the row blue highlight works without the name attribute when you land on the tasks table after clicking the order link in a task details page. The commit also fixes a typo in default.css. [YOCTO #6033] Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2014-04-01toaster: Increase animation durationBelen Barros Pena
Increase the duration of the blue highlight animation from 7 to 10 seconds. Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2014-04-01toaster: Fix the fade out animationBelen Barros Pena
Apply the animation to any element with the class .highlight Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-03-28toaster: add support for empty states in pagesDavid Reyna
Add support for empty states in the top build page, the all packages page, and the all tasks page. [YOCTO #4865] Signed-off-by: David Reyna <David.Reyna@windriver.com>
2014-03-24toaster: combine ready functionsAmit Kumar Chaudhary
Merge the code into single ready function. [YOCTO #4283] Signed-off-by: Amit Kumar Chaudhary <amit@floatingpondtech.com>
2014-03-24toaster: warn new filter replaces existing filterDavid Reyna
If the user pop-ups a filter dialog when another filter is already active, warn the user that the new filter would replace the previous filter. [YOCTO #5960] Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-03-21toaster: image information viewsDave Lerner
[YOCTO # 4346] When a target image is selected, this commit adds to the toaster project a two-tabbed page that shows 1) 'packages included' a table of packages included in the image (see target.html), and 2) 'directory structure', the target image's file system directory and detailed information showing the source of each file in the directory table (see dirinfo.html). The directory structure tab relies on the open source jQuery plugin jtreetable which provides hierarchical table expansions and contractions of the directory entry tables as the user drills down into directories. A file of jtreetable styles that are compatible with other toaster styles is provided included as css/jquery.treetable.theme.toaster.css. The complete unaltered jtreetable plugin is added via a separate commit. This work was developed base on the bugzilla specification number 4346 and the document "Design 1.1 Image information" attached to that report. Whitespace and typo fixes from Alex Damian. Signed-off-by: Dave Lerner <dave.lerner@windriver.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-03-21toaster: add jquery treetable pluginDave Lerner
This commit includes the critical javascript and css files downloaded from http://plugins.jquery.com/treetable version 3.1.0. The following is from the author's README.md included with the license files in the directory static/jquery-treetable-license. "jQuery treetable is a plugin for jQuery, the 'Write Less, Do More, JavaScript Library'. With this plugin you can display a tree in an HTML table, e.g. a directory structure or a nested list... Download the latest release from the jQuery Plugin Registry or grab the source code from Github. Please report issues through Github issues. This plugin is released under both the MIT and the GPLv2 license by Ludo van den Boom... See index.html for technical documentation and examples. The most recent version of this document is also available online at http://ludo.cubicphuse.nl/jquery-treetable. An AJAX enabled example built with Ruby on Rails can be found at https://github.com/ludo/jquery-treetable-ajax-example." Author: Ludo van den Boom The relevant files were moved to the static/js and static/css directories to match the existing javascript and css toaster deployment model. The applicable licenses and the README are in static/jquery-treetable-license. Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
2014-03-14toaster: Presentation fixes for task.htmlBelen Barros Pena
Tidying up the presentation in the task.html template. The changes include: * Correct the markup for the help tooltips * Fix the help content for the outcome heading * Make sure <dt> tags do not show for empty log file, time, cpu and disk I/O values * Eliminate an extra <dl> for tasks with sstate attempts * Add <strong> tag to the sstate restored alert * Replace the .alert-info class with the .muted class for the no dependencies messages * Make sure the Executed heading does not inherit the .red class for failed tasks * Format time and cpu values to make sure they only show 2 decimal digits Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-03-14toaster: Small tweaks to the no results pageBelen Barros Pena
Correctly align the Search button to the text input field, add .btn class to the clear search button, replace the placeholder attribute with the value attribute so that you can edit your search query, remove the clear search button from the tab index so that you don't clear the search by mistake and edit the margins of the .no-results class. Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Conflicts: bitbake/lib/toaster/toastergui/templates/build.html
2014-03-14toaster: add errors and warnings listingAmit Kumar Chaudhary
Add the errors and warnings listing to the build dashboard page. Signed-off-by: Amit Kumar Chaudhary <amit@floatingpondtech.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-03-09toaster: Move long content toggle to main.jsBelen Barros Pena
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. Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2014-03-09toaster: Hide the applied filter tooltip on clickBelen Barros Pena
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. Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2014-03-09toaster: Set the right styles for definition listsBelen Barros Pena
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. Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2014-03-09toaster: Remove inline styles in h1Belen Barros Pena
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. Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2014-02-17toaster: Make popovers mutually exclusiveBelen Barros Pena
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). Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-02-17toaster: Make popovers scrollableBelen Barros Pena
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 Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2014-02-17toaster: Apply error style to cell linksBelen Barros Pena
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. Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2014-02-17toaster: Make "Edit columns" multiselectBelen Barros
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. Signed-off-by: Belen Barros <belen.barros.pena@intel.com>
2014-02-17toaster: Add clear filter button to filter tooltipsBelen Barros
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. Signed-off-by: Belen Barros <belen.barros.pena@intel.com>
2014-02-17toaster: Clean up main.jsBelen Barros
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. Signed-off-by: Belen Barros <belen.barros.pena@intel.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-02-17toaster: Clean up default.cssBelen Barros
Getting rid of all unused css declarations, grouping and annotating to make the file more readable. Signed-off-by: Belen Barros <belen.barros.pena@intel.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-01-27toaster: Set .error styles for tablesBarros Pena, Belen
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. Signed-off-by: Belen Barros <belen.barros.pena@intel.com>
2014-01-27toaster: Base table fixes for header text, sort icon and filter iconRavi Chintakunta
- 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 Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-01-27toaster: add jquery cookie pluginAlexandru DAMIAN
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. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-01-10toaster: Toaster GUI, generic search, filter and orderAlexandru DAMIAN
This patch implements table searching, filtering and ordering, in a generic mode reusable for all tables. The search operates list of fields defined in the corresponding class for each model, search_allowed_fields. The search expression and filters are sent through GET requests using a QuerySet-like input. The inputs are filtered and validated before usage to prevent inadvertent or malicious use. Filters and table headers are defined in the views for each table, and rendered by generic code which is easily modified for various tables. The Build table and Configuration table are implemented using this framework as an example of how it should be used. [YOCTO #4249] [YOCTO #4254] [YOCTO #4255] [YOCTO #4256] [YOCTO #4257] [YOCTO #4259] [YOCTO #4260] Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-01-10toaster: update static media for Toaster GUIAlexandru DAMIAN
In the process of making the GUI more usable, we bring in the static assets used during the design phase into the application. Licenses used: Bootstrap 2.3.2 under Apache License 2.0 Font Awesome under SIL OFL 1.1 (GPL compatible) and MIT licence GLYPHICONS Halflings released with Bootstrap, CC BY 3.0 jQuery 2.0.3 under MIT licence prettify.js under Apache Licence 2.0 Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-01-10toaster: clone Simple UI as base for Toaster GUIAlexandru DAMIAN
This patch clones the Simple UI to provide the base code for the development of the Toaster GUI. The clone takes the place of the application that was reserved for Javascript MVC code. The templates used for Simple UI are renamed to start with an "simple_" to prevent name resolution conflict with the Toaster GUI templates. Minor changes are made to the settings.py and urls.py in the toaster main section to account for the newly enabled application. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2013-10-18toaster: add toaster code to bitbakeAlexandru DAMIAN
This patch adds the Toaster component to Bitbake. Toaster is a module designed to record the progress of a Bitbake build, and data about the resultant artifacts. It contains a web-based interface and a REST API allowing post-facto inspection of the build process and artifacts. Features present in this build: * toaster start script * relational data model * Django boilerplate code * the REST API * the Simple UI web interface This patch has all the development history squashed together. Code portions contributed by Calin Dragomir <calindragomir@gmail.com>. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>