From 626941104fd31d4d9d7755d78a8f96989b43d298 Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Fri, 5 Feb 2016 12:32:54 +0000 Subject: 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 Signed-off-by: brian avery Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/templates/customrecipe.html | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'bitbake/lib') diff --git a/bitbake/lib/toaster/toastergui/templates/customrecipe.html b/bitbake/lib/toaster/toastergui/templates/customrecipe.html index 02ca5be1ca..8cce919670 100644 --- a/bitbake/lib/toaster/toastergui/templates/customrecipe.html +++ b/bitbake/lib/toaster/toastergui/templates/customrecipe.html @@ -161,12 +161,15 @@
{{recipe.layer_version.layer.name}}
Based on
{{recipe.base_recipe.name}}
- {% if last_build %} + {% if recipe.get_last_successful_built_target %} + {% with recipe.get_last_successful_built_target as last_build_target %}
Last build
- {{last_build.completed_on|date:"d/m/y H:i"}} + + {{last_build_target.build.completed_on|date:"d/m/y H:i"}}
+ {% endwith %} {% endif %}
Recipe file
@@ -175,26 +178,32 @@
Layer
{{recipe.layer_version.layer.name}}
+ {% if recipe.summary %}
Summary
{{recipe.summary}}
+ {% endif %} + {% if recipe.description %}
Description
{{recipe.description}}
+ {% endif %}
Version
{{recipe.version}}
+ {% if recipe.section %}
Section
{{recipe.section}}
+ {% endif %}
License
{{recipe.license}} -- cgit v1.2.3-54-g00ecf