summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/projects.html
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@intel.com>2015-03-19 12:29:55 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-25 12:39:52 +0000
commit7cb05bf6beccc85cd4cbc4f9c9beed123a298498 (patch)
tree78efd050e6cbd52ba6621812de8f91417733e88b /bitbake/lib/toaster/toastergui/templates/projects.html
parentfb7160e4228d49a765006d9ba0b810be9f083989 (diff)
downloadpoky-7cb05bf6beccc85cd4cbc4f9c9beed123a298498.tar.gz
bitbake: toastergui: changes to the all projects table
The 'Last build' column in the all projects table was supposed to provide the completion time stamp of the latest project build. Instead, it is showing the time stamp of the latest project activity, which includes: * when the project was created and * when the last build started but not when you make a change to the configuration. The result is that the column and the sorting are very misleading. The template is set so that the time stamp only shows when the project has builds (if 0 builds, no time stamp is shown). But of course the sorting still happens according to the value, even if it doesn't display. The result is that, when you sort by the 'Last build' column, projects with no builds appear listed between projects with builds, and you have no idea why. This patch: * changes the column label * its position in the table * makes sure the time stamp always displays * and adds help text to reflect what the data actually means. It also makes some small changes to other table headings. (Bitbake rev: 994b19ef7f633b8d463efa7022f2e17cd483a387) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/projects.html')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/projects.html3
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/projects.html b/bitbake/lib/toaster/toastergui/templates/projects.html
index 88ee4bcd66..23340083ca 100644
--- a/bitbake/lib/toaster/toastergui/templates/projects.html
+++ b/bitbake/lib/toaster/toastergui/templates/projects.html
@@ -38,11 +38,11 @@
38 {% for o in objects %} 38 {% for o in objects %}
39 <tr class="data"> 39 <tr class="data">
40 <td><a href="{% url 'project' o.id %}">{{o.name}}</a></td> 40 <td><a href="{% url 'project' o.id %}">{{o.name}}</a></td>
41 <td class="updated"><a href="{% url 'project' o.id %}">{{o.updated|date:"d/m/y H:i"}}</a></td>
41 <td><a href="{% url 'project' o.id %}#project-details">{{o.release.name}}</a></td> 42 <td><a href="{% url 'project' o.id %}#project-details">{{o.release.name}}</a></td>
42 <td><a href="{% url 'project' o.id %}#machine-distro">{{o.get_current_machine_name}}</a></td> 43 <td><a href="{% url 'project' o.id %}#machine-distro">{{o.get_current_machine_name}}</a></td>
43 {% if o.get_number_of_builds == 0 %} 44 {% if o.get_number_of_builds == 0 %}
44 <td class="muted">{{o.get_number_of_builds}}</td> 45 <td class="muted">{{o.get_number_of_builds}}</td>
45 <td class="updated"></td>
46 <td class="loutcome"></td> 46 <td class="loutcome"></td>
47 <td class="ltarget"></td> 47 <td class="ltarget"></td>
48 <td class="lerrors"></td> 48 <td class="lerrors"></td>
@@ -50,7 +50,6 @@
50 <td class="limagefiles"></td> 50 <td class="limagefiles"></td>
51 {% else %} 51 {% else %}
52 <td><a href="{% url 'projectbuilds' o.id %}">{{o.get_number_of_builds}}</a></td> 52 <td><a href="{% url 'projectbuilds' o.id %}">{{o.get_number_of_builds}}</a></td>
53 <td class="updated"><a href="{% url "builddashboard" o.get_last_build_id %}">{{o.updated|date:"d/m/y H:i"}}</a></td>
54 <td class="loutcome"><a href="{% url "builddashboard" o.get_last_build_id %}">{%if o.get_last_outcome == build_SUCCEEDED%}<i class="icon-ok-sign success"></i>{%elif o.get_last_outcome == build_FAILED%}<i class="icon-minus-sign error"></i>{%else%}{%endif%}</a></td> 53 <td class="loutcome"><a href="{% url "builddashboard" o.get_last_build_id %}">{%if o.get_last_outcome == build_SUCCEEDED%}<i class="icon-ok-sign success"></i>{%elif o.get_last_outcome == build_FAILED%}<i class="icon-minus-sign error"></i>{%else%}{%endif%}</a></td>
55 <td class="ltarget"><a href="{% url "builddashboard" o.get_last_build_id %}">{{o.get_last_target}} </a></td> 54 <td class="ltarget"><a href="{% url "builddashboard" o.get_last_build_id %}">{{o.get_last_target}} </a></td>
56 <td class="lerrors">{% if o.get_last_errors %}<a class="errors_no error" href="{% url "builddashboard" o.get_last_build_id %}#errors">{{o.get_last_errors}} error{{o.get_last_errors|pluralize}}</a>{%endif%}</td> 55 <td class="lerrors">{% if o.get_last_errors %}<a class="errors_no error" href="{% url "builddashboard" o.get_last_build_id %}#errors">{{o.get_last_errors}} error{{o.get_last_errors|pluralize}}</a>{%endif%}</td>