diff options
| author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2014-12-05 15:19:55 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-12-18 10:24:06 +0000 |
| commit | aa9816ad79ca34000c1cb0cdc4d35b5fc09a9ba3 (patch) | |
| tree | 0c902d4bdf2bab05b1740c63cbe3735707b5394f /bitbake/lib/toaster/toastergui/templates/tasks.html | |
| parent | 85a17f86ea2edf24b54aa62bd25e10ff522cb6e7 (diff) | |
| download | poky-aa9816ad79ca34000c1cb0cdc4d35b5fc09a9ba3.tar.gz | |
bitbake: toastergui: implement UI changes to allow file download
This patchset adds download links in the build analisys pages
if toaster runs in managed mode. This allows the user to access
data directly from the web interface.
[YOCTO #6837]
(Bitbake rev: 6000e1ae5c846e51932ecd0dc21e0fa02eb10357)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/tasks.html')
| -rw-r--r-- | bitbake/lib/toaster/toastergui/templates/tasks.html | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/tasks.html b/bitbake/lib/toaster/toastergui/templates/tasks.html index d0c6f4e326..4cbcc5ed68 100644 --- a/bitbake/lib/toaster/toastergui/templates/tasks.html +++ b/bitbake/lib/toaster/toastergui/templates/tasks.html | |||
| @@ -94,6 +94,11 @@ | |||
| 94 | <td class="outcome"> | 94 | <td class="outcome"> |
| 95 | <a href="{%url "task" build.pk task.pk%} ">{{task.get_outcome_display}} </a> | 95 | <a href="{%url "task" build.pk task.pk%} ">{{task.get_outcome_display}} </a> |
| 96 | <i class="icon-question-sign get-help hover-help" title="{{task.get_outcome_help}}"></i> | 96 | <i class="icon-question-sign get-help hover-help" title="{{task.get_outcome_help}}"></i> |
| 97 | {% if MANAGED and build.project and task.outcome = task.OUTCOME_FAILED %} | ||
| 98 | <a href="{% url 'build_artifact' build.pk "tasklogfile" task.pk %}"> | ||
| 99 | <i class="icon-download-alt" title="" data-original-title="Download task log file"></i> | ||
| 100 | </a> | ||
| 101 | {% endif %} | ||
| 97 | </td> | 102 | </td> |
| 98 | <td class="cache_attempt"> | 103 | <td class="cache_attempt"> |
| 99 | <a href="{%url "task" build.pk task.pk%} ">{{task.get_sstate_result_display|format_none_and_zero}}</a> | 104 | <a href="{%url "task" build.pk task.pk%} ">{{task.get_sstate_result_display|format_none_and_zero}}</a> |
| @@ -107,9 +112,12 @@ | |||
| 107 | <td class="disk_io"> | 112 | <td class="disk_io"> |
| 108 | {{task.disk_io|format_none_and_zero}} | 113 | {{task.disk_io|format_none_and_zero}} |
| 109 | </td> | 114 | </td> |
| 115 | |||
| 116 | {% if not MANAGED or not build.project %} | ||
| 110 | <td class="task_log"> | 117 | <td class="task_log"> |
| 111 | {{task.logfile}} | 118 | {{task.logfile}} |
| 112 | </td> | 119 | </td> |
| 120 | {% endif %} | ||
| 113 | </tr> | 121 | </tr> |
| 114 | {% endfor %} | 122 | {% endfor %} |
| 115 | 123 | ||
| @@ -124,10 +132,10 @@ | |||
| 124 | // enable blue hightlight animation for the order link | 132 | // enable blue hightlight animation for the order link |
| 125 | if (location.href.search('#') > -1) { | 133 | if (location.href.search('#') > -1) { |
| 126 | var task_order = location.href.split('#')[1]; | 134 | var task_order = location.href.split('#')[1]; |
| 127 | $("#" + task_order).addClass("highlight"); | 135 | $("#" + task_order).addClass("highlight"); |
| 128 | } | 136 | } |
| 129 | }); | 137 | }); |
| 130 | 138 | ||
| 131 | </script> | 139 | </script> |
| 132 | 140 | ||
| 133 | {% endblock %} | 141 | {% endblock %} |
