From 88f9310ce0015be539ffefbeff4b64c73779fdc9 Mon Sep 17 00:00:00 2001 From: Belen Barros Pena Date: Tue, 10 Nov 2015 17:08:03 +0000 Subject: bitbake: toaster: builds pages Fix the download cooker log link The 'all builds' page was missing the download icon next to the outcome icon, which allows you to download a build log from the 'all builds' page. This patch brings it back. It also adds a check in the project builds page to make sure the download icon only appears if the build generates a cooker log, since builds that fail at the build request stage do not generate a cooker log. (Bitbake rev: 50d7ffa697764d84d96f26a3ae58a9dacde7b31e) Signed-off-by: Belen Barros Pena Signed-off-by: Michael Wood Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/templates/builds.html | 8 +++++++- bitbake/lib/toaster/toastergui/templates/projectbuilds.html | 11 ++++++----- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/templates/builds.html b/bitbake/lib/toaster/toastergui/templates/builds.html index a27a121913..c3cc266daf 100644 --- a/bitbake/lib/toaster/toastergui/templates/builds.html +++ b/bitbake/lib/toaster/toastergui/templates/builds.html @@ -62,7 +62,13 @@ {% for build in objects %} - {%if build.outcome == build.SUCCEEDED%}{%elif build.outcome == build.FAILED%}{%else%}{%endif%}   + {%if build.outcome == build.SUCCEEDED%}{%elif build.outcome == build.FAILED%}{%else%}{%endif%} + {% if build.cooker_log_path %} +   + + + + {% endif %} {% for t in build.target_set.all %} diff --git a/bitbake/lib/toaster/toastergui/templates/projectbuilds.html b/bitbake/lib/toaster/toastergui/templates/projectbuilds.html index bb38284aab..3402fc4fe1 100644 --- a/bitbake/lib/toaster/toastergui/templates/projectbuilds.html +++ b/bitbake/lib/toaster/toastergui/templates/projectbuilds.html @@ -63,11 +63,12 @@ {% for build in objects %} {# if we have a build, just display it #} {%if build.outcome == build.SUCCEEDED%}{%elif build.outcome == build.FAILED%}{%else%}{%endif%} - {% if build.project %} -   - - - {% endif %} + {% if build.cooker_log_path %} +   + + + + {% endif %} -- cgit v1.2.3-54-g00ecf