mirror of
https://git.yoctoproject.org/poky
synced 2026-05-01 06:32:11 +02:00
bitbake: toaster: customrecipe page Add last successful build link and conditionals
Add link to the last successful build if there is one and add conditionals for the ancillary recipe metadata. (Bitbake rev: 4660aaf1c6775270f8f3d0afbb7fa2ee7a2a1563) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
8d5b61e495
commit
626941104f
@@ -161,12 +161,15 @@
|
||||
<dd><a href="{% url 'layerdetails' project.id recipe.layer_version.pk %}">{{recipe.layer_version.layer.name}}</a></dd>
|
||||
<dt>Based on</dt>
|
||||
<dd><a href="{% url 'recipedetails' project.id recipe.base_recipe.pk %}">{{recipe.base_recipe.name}}</a></dd>
|
||||
{% if last_build %}
|
||||
{% if recipe.get_last_successful_built_target %}
|
||||
{% with recipe.get_last_successful_built_target as last_build_target %}
|
||||
<dt>Last build</dt>
|
||||
<dd>
|
||||
<i class="icon-ok-sign success"></i>
|
||||
<a href="{% url 'projectbuilds' project.id%}">{{last_build.completed_on|date:"d/m/y H:i"}}</a>
|
||||
<a href="{% url 'builddashboard' last_build_target.build.pk %}">
|
||||
{{last_build_target.build.completed_on|date:"d/m/y H:i"}}</a>
|
||||
</dd>
|
||||
{% endwith %}
|
||||
{% endif %}
|
||||
<dt>Recipe file</dt>
|
||||
<dd>
|
||||
@@ -175,26 +178,32 @@
|
||||
</dd>
|
||||
<dt>Layer</dt>
|
||||
<dd><a href="{% url 'layerdetails' project.id recipe.layer_version.pk %}">{{recipe.layer_version.layer.name}}</a></dd>
|
||||
{% if recipe.summary %}
|
||||
<dt>
|
||||
Summary
|
||||
</dt>
|
||||
<dd>
|
||||
{{recipe.summary}}
|
||||
</dd>
|
||||
{% endif %}
|
||||
{% if recipe.description %}
|
||||
<dt>
|
||||
Description
|
||||
</dt>
|
||||
<dd>
|
||||
{{recipe.description}}
|
||||
</dd>
|
||||
{% endif %}
|
||||
<dt>Version</dt>
|
||||
<dd>
|
||||
{{recipe.version}}
|
||||
</dd>
|
||||
{% if recipe.section %}
|
||||
<dt>Section</dt>
|
||||
<dd>
|
||||
{{recipe.section}}
|
||||
</dd>
|
||||
{% endif %}
|
||||
<dt>License</dt>
|
||||
<dd>
|
||||
{{recipe.license}}
|
||||
|
||||
Reference in New Issue
Block a user