toaster: Removed unused 'disabled' css class in Filter dialog

Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
toaster: Filter Dialog fix to display filter options as radio buttons

- 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

Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
toaster: Fix builds view filter options to match changes in filter 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.

Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
toaster: Added sorting to other columns in All tasks table

Added sorting to recipe, time, cpu, disk i/o and log columns of
all tasks table

Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: Implementation of package detail views

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]

Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: Clean up default.css

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>
toaster: Clean up main.js

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>
toaster: Add clear filter button to filter tooltips

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>
toaster: fix javascript for table filters

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.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: Make "Edit columns" multiselect

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>
toaster: Apply error style to cell links

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>
toaster: Fix for task_color tag

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.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
toaster: Select a radio button by default in Filter Dialog

If none of the filter options in the filter dialog are active,
then select the first radio button.

Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
toaster: Make all targets links to the build dashboard

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.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
toaster: Make popovers scrollable

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>
toaster: Make popovers mutually exclusive

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>
toaster: implement recipe summary page

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]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
toaster: implement package summary page

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]

Signed-off-by: David Reyna <David.Reyna@windriver.com>