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}}