generic-poky/bitbake/lib/toaster/toastergui/templates/recipe.html

284 lines
11 KiB
HTML
Raw Normal View History

{% extends "basebuilddetailpage.html" %}
{% load projecttags %}
{% block localbreadcrumb %}
<li><a href="{% url 'recipes' build.pk %}">Recipes</a></li>
<li>{{object.name}}_{{object.version}} </li>
{% endblock %}
{% block pagedetailinfomain %}
<!-- Begin container -->
<div class="row span11">
<div class="page-header">
<h1>{{object.name}}_{{object.version}}</h1>
</div>
</div>
<div class="row span7 tabbable">
<ul class="nav nav-pills">
<li class="active">
<a href="#information" data-toggle="tab">
<i class="icon-question-sign get-help" title="Build-related information about the recipe"></i>
Recipe details
</a>
</li>
<li>
<a href="#packages-built" data-toggle="tab">
<i class="icon-question-sign get-help" title="The packaged output resulting from building the recipe"></i>
Packages ({{packages.count}})
</a>
</li>
<li>
<a href="#dependencies" data-toggle="tab">
<i class="icon-question-sign get-help" title="The recipe build-time dependencies (i.e. other recipes)"></i>
Build dependencies ({{object.r_dependencies_recipe.all.count}})
</a>
</li>
<li>
<a href="#brought-in-by" data-toggle="tab">
<i class="icon-question-sign get-help" title="The recipe build-time reverse dependencies (i.e. the recipes that depend on this recipe)"></i>
Reverse build dependencies ({{object.r_dependencies_depends.all.count}})
</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="information" name="information">
<dl class="dl-horizontal">
<dt>
<i class="icon-question-sign get-help" title="The name of the layer providing the recipe"></i>
Layer
</dt>
<dd>{{layer.name}}</dd>
{% if not MANAGED or not build.project %}
<dt>
<i class="icon-question-sign get-help" title="Path to the layer providing the recipe"></i>
Layer directory
</dt>
<dd><code>{{layer.local_path}}</code></dd>
{% endif %}
<dt>
<i class="icon-question-sign get-help" title="Path to the recipe .bb file"></i>
Recipe file
</dt>
<dd><code>{{object.get_local_path}}</code></dd>
{% if layer_version.branch %}
<dt>
<i class="icon-question-sign get-help" title="The Git branch of the layer providing the recipe"></i>
Layer branch
</dt>
<dd>{{layer_version.branch}}</dd>
{% endif %}
<dt>
<i class="icon-question-sign get-help" title="The Git commit of the layer providing the recipe"></i>
Layer commit
</dt>
<dd class="iscommit">{{layer_version.commit}}</dd>
</dl>
<h2 class="details">Tasks</h2>
{% if not tasks %}
<div class="alert alert-info">
<strong>{{object.name}}_{{object.version}}</strong> does not have any tasks in this build.
</div>
{% else %}
<table class="table table-bordered table-hover">
<thead>
<th>
<i class="icon-question-sign get-help" title="The running sequence of each task in the build"></i>
Order
</th>
<th>
<i class="icon-question-sign get-help" title="The name of the task"></i>
Task
</th>
<th>
<i class="icon-question-sign get-help" title="This value tells you if a task had to run (executed) in order to generate the task output, or if the output was provided by another task and therefore the task didn't need to run (not executed)"></i>
Executed
</th>
<th>
<i class="icon-question-sign get-help" title="This column tells you if 'executed' tasks succeeded or failed. The column also tells you why 'not executed' tasks did not need to run"></i>
Outcome
</th>
<th>
<i class="icon-question-sign get-help" title="This column tells you if a task tried to restore output from the <code>sstate-cache</code> directory or mirrors, and reports the result: Succeeded, Failed or File not in cache"></i>
Cache attempt
</th>
</thead>
<tbody>
{% for task in tasks %}
<tr {{ task|task_color }} >
<td><a {{ task|task_color }} href="{% url "task" build.pk task.pk %}">{{task.order}}</a></td>
<td>
<a {{ task|task_color }} href="{% url "task" build.pk task.pk %}">{{task.task_name}}</a>
{% if task.get_description %}<i class="icon-question-sign get-help hover-help" title="" data-original-title="{{task.get_description}}"></i> {% endif %}
</td>
<td><a {{ task|task_color }} href="{% url "task" build.pk task.pk %}">{{task.get_executed_display}}</a></td>
<td>
<a {{ task|task_color }} href="{% url "task" build.pk task.pk %}">{{task.get_outcome_display}} </a>
{% if MANAGED and build.project and task.outcome = task.OUTCOME_FAILED %}
<a href="{% url 'build_artifact' build.pk "tasklogfile" task.pk %}">
<i class="icon-download-alt" title="Download task log file"></i>
</a>
{% endif %}
<i class="icon-question-sign get-help hover-help" title="{{task.get_outcome_help}}"></i>
</td>
<td>
{% ifnotequal task.sstate_result task.SSTATE_NA %}
<a {{ task|task_color }} href="{% url "task" build.pk task.pk %}">{{task.get_sstate_result_display}}</a>
{% endifnotequal %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
</div>
<div class="tab-pane" id="packages-built" name="packages-built">
{% if not packages %}
<div class="alert alert-info">
<strong>{{object.name}}_{{object.version}}</strong> does not build any packages.
</div>
{% else %}
<table class="table table-bordered table-hover" style="margin-top:10px;">
<thead>
<tr>
<th>
Package
</th>
<th>
Version
</th>
bitbake: toaster: sort on size in detail pages [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. (Bitbake rev: d16126e9abfffde66ab70865a81997322847d44e) Signed-off-by: Dave Lerner <dave.lerner@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-04-08 16:32:21 +00:00
<th class="sizecol span2">
Size
</th>
</tr>
</thead>
<tbody>
{% for package in packages|dictsort:"name" %}
<tr>
<td><a href="{% url "package_built_detail" build.pk package.pk %}">{{package.name}}</a></td>
<td><a href="{% url "package_built_detail" build.pk package.pk %}">{{package.version}}_{{package.revision}}</a></td>
bitbake: toaster: sort on size in detail pages [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. (Bitbake rev: d16126e9abfffde66ab70865a81997322847d44e) Signed-off-by: Dave Lerner <dave.lerner@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-04-08 16:32:21 +00:00
<td class="sizecol"><a href="{% url "package_built_detail" build.pk package.pk %}">{{package.size|filtered_filesizeformat}}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
</div>
<div class="tab-pane" id="dependencies" name="dependencies">
{% if not object.r_dependencies_recipe.all %}
<div class="alert alert-info">
<strong>{{object.name}}_{{object.version}}</strong> has no build dependencies.
</div>
{% else %}
<table class="table table-bordered table-hover">
<thead>
<tr>
<th>
Recipe
</th>
<th>
Version
</th>
</tr>
</thead>
<tbody>
{% for rr in object.r_dependencies_recipe.all|dictsort:"depends_on.name" %}
<tr>
<td><a href="{% url "recipe" build.pk rr.depends_on.pk %}">{{rr.depends_on.name}}</a></td>
<td><a href="{% url "recipe" build.pk rr.depends_on.pk %}">{{rr.depends_on.version}}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
</div>
<div class="tab-pane" id="brought-in-by" name="brought-in-by">
{% if not object.r_dependencies_depends.all %}
<div class="alert alert-info">
<strong>{{object.name}}_{{object.version}}</strong> has no reverse build dependencies.
</div>
{% else %}
<table class="table table-bordered table-hover">
<thead>
<tr>
<th>
Recipe
</th>
<th>
Version
</th>
</tr>
</thead>
<tbody>
{% for rr in object.r_dependencies_depends.all|dictsort:"recipe.name" %}
<tr>
<td><a href="{% url "recipe" build.pk rr.recipe.pk %}">{{rr.recipe.name}}</a></td>
<td><a href="{% url "recipe" build.pk rr.recipe.pk %}">{{rr.recipe.version}}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
</div>
</div>
</div>
<div class="row span4 well">
<h2>About {{object.name}}</h2>
<dl class="item-info">
{% if object.summary %}
<dt>Summary</dt>
<dd>{{object.summary}}</dd>
{% endif %}
{% if object.description %}
<dt>Description</dt>
<dd>{{object.description}}</dd>
{% endif %}
{% if object.homepage %}
<dt>Homepage</dt>
<dd><a href="{{object.homepage}}">{{object.homepage}}</a></dd>
{% endif %}
{% if object.bugtracker %}
<dt>Bugtracker</dt>
<dd><a href="{{object.bugtracker}}">{{object.bugtracker}}</a></dd>
{% endif %}
{% if object.section %}
<dt>
Section
<i class="icon-question-sign get-help" title="The section in which recipes should be categorized"></i>
</dt>
<dd>{{object.section}}</dd>
{% endif %}
{% if object.license %}
<dt>License</dt>
<dd>{{object.license}}</dd>
{% endif %}
</dl>
</div>
{% endblock %}