toaster: fix target file inode type information

This patches fixes the inode type saved when writing the
target file list information.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: improve recipe matching for native tasks

This patch improves the recipe matching algorithm for
for matching recipes for native tasks.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: Move <tbody> outside for statement

In the package details pages, the <tbody> tags where inside
the for statements, which caused multiple <tbody> tags to
be generated inside a single table.

To make sure only one <tbody> tag exists per table, moving
the <tbody> tag outside the for statement.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
toaster: Make Order column part of the minimum table

The Order column in the tasks table should be always shown and
be part of the minimum table (i.e. its checkbox should be
disabled in the Edit columns menu). Changing views.py to
make sure this is the case.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
toaster: Format package size in recipe.html

Package sizes in the recipe details page (recipe.html)
were displaying in bytes. Apply the filtered_filesizeformat
project tag to show the package size in a more human
readable format.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
toaster: Replace hyphens with underscores in package name

Package details pages were using hyphens to separate package
name from package version. Changing them to underscores.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
toaster: Small tweaks to the no results page

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
toaster: Amend help text in package_built_detail.html

Matching the help text in the tabs to the design specification.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
toaster: Fixing "Show all builds" link

Replacing the placeholder attribute with the value attribute
in the no search results page broke the "Show all builds" link.
This change applies the inline javacript used for the clear search
button for the "Show all builds" link, which fixes the problem.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
toaster: Add no search results page

Adding the no search results page to the built packages
(bpackage.html), variables (configvars.html), recipes
(recipes.html) and tasks (tasks.html) tables.

The change copies the code from the build.html template
into the other 4 templates. There is probably a smarter way
of doing this, though.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
toaster: Give an extra space to the caret

In the "Collapse variable value" button in configvars.html,
the caret was too close to the button label. Giving it
a bit of extra space.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
toaster: Shorten dependency labels

Changing "Task depends on" to "Dependencies" and
"Task reverse dependencies" to "Reverse dependencies".
This matches the labeling to recipe and package
information, with the additional advantage of
making the labels shorter.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
toaster: Presentation fixes for task.html

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>
toaster: Not using task_color tag for execution heading

The modifications to the task_color tag in commit
23a7c338d387ac2ba13a7a1114a4abc75228c960 broke the styling
of failed tasks in the tasks.html template. Undo the
changes to the task_color tag and use an if statement
instead to set the .muted class when the execution
heading says "Not executed".

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
toaster: Fix Recipe sorting in tasks table

In the tasks table and the other tables derived from it
(Time, CPU usage and Disk I/O) sorting by Recipe was not
working correctly. This change fixes the problem by
specifying use of the recipe name to sort.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
toaster: Don't show clear search button if text input field is empty

The clear search button should only show when the search text input
field is populated. If it is empty (as it happens when a filter
returns no results) the clear search button should not display.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
toaster: Remove the data-toggle attribute

Help icons with the .get-help class do not need the
data-toggle attribute. That attribute initialises the
Bootstrap tooltips, but they are already initialised
in main.js for any element with the .get-help class.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
toaster: Sort layers in alphabetical order

In the Summary tab of the Configuration page, make
sure that the table of layers is sorted by layer name
in ascending alphabetical order.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
toaster: added file types to the Outputs column in the build page

The file types are displayed in the Outputs column in the build page.
The file types are derived from the target image filenames.

[YOCTO #5947]

Signed-off-by: Farrell Wymore <farrell.wymore@windriver.com>
runqueue: Don't error if we never setup workers

If we didn't setup any workers (such as bitbake -S), this would error
since we're trying to set a signal handler to None. This patch
avoids that problem.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>