summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/tasks.html
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2016-05-26 16:12:22 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-15 08:35:04 +0100
commitb2a68f55110b39aaf0b0d47bf533251a59a40a41 (patch)
tree7791ed85141e07f01c228619047740b235ee02dc /bitbake/lib/toaster/toastergui/templates/tasks.html
parent32d1e2dd25f288790450db48766cf115854712ba (diff)
downloadpoky-b2a68f55110b39aaf0b0d47bf533251a59a40a41.tar.gz
bitbake: toaster: port Task tables to ToasterTables widget
Port the Task based tables to ToasterTable. This is the Task, Time, CPU usage and Disk I/O tables. (Bitbake rev: bebcef7a4bf08b10e472475435ddc7a524364adb) Signed-off-by: Michael Wood <michael.g.wood@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.html141
1 files changed, 0 insertions, 141 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/tasks.html b/bitbake/lib/toaster/toastergui/templates/tasks.html
deleted file mode 100644
index b3b7621e60..0000000000
--- a/bitbake/lib/toaster/toastergui/templates/tasks.html
+++ /dev/null
@@ -1,141 +0,0 @@
1{% extends "basebuildpage.html" %}
2{% load humanize %}
3{% load projecttags %}
4
5{% block title %} {{mainheading}} - {{build.target_set.all|dictsort:"target"|join:", "}} {{build.machine}} - {{build.project.name}} - Toaster{% endblock %}
6{% block localbreadcrumb %}
7<li>{{mainheading}}</li>
8{% endblock %}
9
10{% block nav-tasks %}
11 {% if 'Tasks' == mainheading %}
12 <li class="active"><a href="{% url 'tasks' build.pk %}">Tasks</a></li>
13 {% else %}
14 <li><a href="{% url 'tasks' build.pk %}">Tasks</a></li>
15 {% endif %}
16{% endblock %}
17{% block nav-buildtime %}
18 {% if 'Time' == mainheading %}
19 <li class="active"><a href="{% url 'buildtime' build.pk %}">Time</a></li>
20 {% else %}
21 <li><a href="{% url 'buildtime' build.pk %}">Time</a></li>
22 {% endif %}
23{% endblock %}
24
25{% block nav-cputime %}
26 {% if 'CPU time' == mainheading %}
27 <li class="active"><a href="{% url 'cputime' build.pk %}">CPU time</a></li>
28 {% else %}
29 <li><a href="{% url 'cputime' build.pk %}">CPU time</a></li>
30 {% endif %}
31{% endblock %}
32
33{% block nav-diskio %}
34 {% if 'Disk I/O' == mainheading %}
35 <li class="active"><a href="{% url 'diskio' build.pk %}">Disk I/O</a></li>
36 {% else %}
37 <li><a href="{% url 'diskio' build.pk %}">Disk I/O</a></li>
38 {% endif %}
39{% endblock %}
40
41{% block buildinfomain %}
42<div class="col-md-10">
43{% if not request.GET.filter and not request.GET.search and not objects.paginator.count %}
44 <!-- Empty - no data in database -->
45 <div class="page-header">
46 <h1>{{mainheading}}</h1>
47 </div>
48 <div class="alert alert-info lead">
49 No data was recorded for this build.
50 </div>
51
52{% else %}
53
54 <div class="page-header">
55 <h1>
56 {% if request.GET.filter and objects.paginator.count > 0 or request.GET.search and objects.paginator.count > 0 %}
57 {{objects.paginator.count}} task{{objects.paginator.count|pluralize}} found
58 {%elif request.GET.filter and objects.paginator.count == 0 or request.GET.search and objects.paginator.count == 0 %}
59 No tasks found
60 {%else%}
61 {{mainheading}}
62 {%endif%}
63 </h1>
64 </div>
65
66 {% if objects.paginator.count == 0 %}
67 <div class="alert">
68 <form class="no-results input-append" id="searchform">
69 <input id="search" name="search" class="input-xxlarge" type="text" value="{{request.GET.search}}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="input-append-addon btn" tabindex="-1"><i class="glyphicon glyphicon-remove"></i></a>{% endif %}
70 <button class="btn" type="submit" value="Search">Search</button>
71 <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all tasks</button>
72 </form>
73 </div>
74
75
76 {% else %}
77 {% include "basetable_top.html" %}
78
79 {% for task in objects %}
80 <tr {{ task|task_color }} id="{{task.order}}">
81 <td class="order">
82 <a href="{%url "task" build.pk task.pk%}">{{task.order}}</a>
83 </td>
84 <td class="recipe_name" >
85 <a href="{% url "recipe" build.pk task.recipe.pk %}">{{task.recipe.name}}</a>
86 </td>
87 <td class="recipe_version">
88 <a href="{% url "recipe" build.pk task.recipe.pk %}">{{task.recipe.version}}</a>
89 </td>
90 <td class="task_name">
91 <a href="{%url "task" build.pk task.pk%}">{{task.task_name}}</a> {% if task.get_description %}<i class="icon-question-sign get-help hover-help" title="{{task.get_description}}"></i> {% endif %}
92 </td>
93 <td class="executed">
94 <a href="{%url "task" build.pk task.pk%}">{{task.get_executed_display}}</a>
95 </td>
96 <td class="outcome">
97 <a href="{%url "task" build.pk task.pk%}">{{task.get_outcome_display}} </a>
98 {% if task.outcome = task.OUTCOME_FAILED %}
99 <a href="{% url 'build_artifact' build.pk "tasklogfile" task.pk %}">
100 <i class="icon-download-alt" title="Download task log file"></i>
101 </a>
102 {% endif %}
103 <i class="icon-question-sign get-help hover-help" title="{{task.get_outcome_help}}"></i>
104 </td>
105 <td class="cache_attempt">
106 <a href="{%url "task" build.pk task.pk%}">{{task.get_sstate_result_display|format_none_and_zero}}</a>
107 </td>
108 <td class="time_taken">
109 {{task.elapsed_time|format_none_and_zero|floatformat:2}}
110 </td>
111 <td class="cpu_time_system">
112 {{task.cpu_time_system|format_none_and_zero|floatformat:2}}
113 </td>
114 <td class="cpu_time_user">
115 {{task.cpu_time_user|format_none_and_zero|floatformat:2}}
116 </td>
117 <td class="disk_io">
118 {{task.disk_io|format_none_and_zero|intcomma}}
119 </td>
120
121 </tr>
122 {% endfor %}
123
124 {% include "basetable_bottom.html" %}
125 {% endif %} {# objects.paginator.count #}
126{% endif %} {# empty #}
127</div>
128
129<script type="text/javascript">
130
131 $(document).ready(function() {
132 // highlight heading on the column for the field used for ordering
133 if (location.href.search('#') > -1) {
134 var task_order = location.href.split('#')[1];
135 $("#" + task_order).addClass("highlight");
136 }
137 });
138
139</script>
140
141{% endblock %}