From: Belen Barros Pena Date: Mon, 9 Feb 2015 11:48:39 +0000 (+0000) Subject: toastergui: add download task log icon to recipe details page X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=29837409a6cbabafe9e4d102e8143bab5ec22dc2;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git toastergui: add download task log icon to recipe details page When a task fails, we keep the log and allow users to download it. Make sure the download is provided in the tasks table of the recipe details page. [YOCTO #7207] Signed-off-by: Belen Barros Pena Signed-off-by: Alexandru DAMIAN --- diff --git a/lib/toaster/toastergui/static/js/libtoaster.js b/lib/toaster/toastergui/static/js/libtoaster.js index 04264cd8ba6..2dc5b0a0a1b 100644 --- a/lib/toaster/toastergui/static/js/libtoaster.js +++ b/lib/toaster/toastergui/static/js/libtoaster.js @@ -1,4 +1,3 @@ - /* All shared functionality to go in libtoaster object. * This object really just helps readability since we can then have * a traceable namespace. @@ -315,6 +314,9 @@ $(document).ready(function() { // initialise the tooltips for the icon-pencil icons $(".icon-pencil").tooltip({ container: 'body', html: true, delay: {show: 400}, title: "Change" }); + // initialise the tooltips for the download icons + $(".icon-download-alt").tooltip({ container: 'body', html: true, delay: { show: 200 } }); + // linking directly to tabs $(function(){ var hash = window.location.hash; diff --git a/lib/toaster/toastergui/templates/recipe.html b/lib/toaster/toastergui/templates/recipe.html index d91768df3be..621b852e77b 100644 --- a/lib/toaster/toastergui/templates/recipe.html +++ b/lib/toaster/toastergui/templates/recipe.html @@ -124,17 +124,16 @@ {{task.get_outcome_display}} + {% if MANAGED and build.project and task.outcome = task.OUTCOME_FAILED %} + + + + {% endif %} {% ifnotequal task.sstate_result task.SSTATE_NA %} {{task.get_sstate_result_display}} - {% if MANAGED and build.project and task.outcome = task.OUTCOME_FAILED %} - - - - {% endif %} - {% endifnotequal %} diff --git a/lib/toaster/toastergui/templates/tasks.html b/lib/toaster/toastergui/templates/tasks.html index 4cbcc5ed68b..5c1c476bad9 100644 --- a/lib/toaster/toastergui/templates/tasks.html +++ b/lib/toaster/toastergui/templates/tasks.html @@ -93,12 +93,12 @@ {{task.get_outcome_display}} + {% if MANAGED and build.project and task.outcome = task.OUTCOME_FAILED %} + + + + {% endif %} - {% if MANAGED and build.project and task.outcome = task.OUTCOME_FAILED %} - - - - {% endif %} {{task.get_sstate_result_display|format_none_and_zero}}