mirror of
https://git.yoctoproject.org/poky
synced 2026-03-25 10:02:22 +01:00
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>
72 lines
3.3 KiB
HTML
72 lines
3.3 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% load static %}
|
|
{% load projecttags %}
|
|
{% load humanize %}
|
|
|
|
{% block pagecontent %}
|
|
|
|
|
|
{% include "managed_mrb_section.html" %}
|
|
|
|
|
|
<div class="page-header top-air">
|
|
<h1>
|
|
{% if request.GET.filter and objects.paginator.count > 0 or request.GET.search and objects.paginator.count > 0 %}
|
|
{{objects.paginator.count}} project{{objects.paginator.count|pluralize}} found
|
|
{%elif request.GET.filter and objects.paginator.count == 0 or request.GET.search and objects.paginator.count == 0 %}
|
|
No projects found
|
|
{%else%}
|
|
All projects
|
|
{%endif%}
|
|
</h1>
|
|
</div>
|
|
|
|
{% if objects.paginator.count == 0 %}
|
|
<div class="row-fluid">
|
|
<div class="alert">
|
|
<form class="no-results input-append" id="searchform">
|
|
<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="add-on btn" tabindex="-1"><i class="icon-remove"></i></a>{% endif %}
|
|
<button class="btn" type="submit" value="Search">Search</button>
|
|
<button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all projects</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
{% else %} {# We have builds to display #}
|
|
{% include "basetable_top_projectbuilds.html" %}
|
|
{% for o in objects %}
|
|
<tr class="data">
|
|
<td><a href="{% url 'project' o.id %}">{{o.name}}</a></td>
|
|
<td class="updated"><a href="{% url 'project' o.id %}">{{o.updated|date:"d/m/y H:i"}}</a></td>
|
|
<td><a href="{% url 'project' o.id %}#project-details">{{o.release.name}}</a></td>
|
|
<td><a href="{% url 'project' o.id %}#machine-distro">{{o.get_current_machine_name}}</a></td>
|
|
{% if o.get_number_of_builds == 0 %}
|
|
<td class="muted">{{o.get_number_of_builds}}</td>
|
|
<td class="loutcome"></td>
|
|
<td class="ltarget"></td>
|
|
<td class="lerrors"></td>
|
|
<td class="lwarnings"></td>
|
|
<td class="limagefiles"></td>
|
|
{% else %}
|
|
<td><a href="{% url 'projectbuilds' o.id %}">{{o.get_number_of_builds}}</a></td>
|
|
<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>
|
|
<td class="ltarget"><a href="{% url "builddashboard" o.get_last_build_id %}">{{o.get_last_target}} </a></td>
|
|
<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>
|
|
<td class="lwarnings">{% if o.get_last_warnings %}<a class="warnings_no warning" href="{% url "builddashboard" o.get_last_build_id %}#warnings">{{o.get_last_warnings}} warning{{o.get_last_warnings|pluralize}}</a>{%endif%}</td>
|
|
<td class="limagefiles">
|
|
{% if o.get_last_outcome == build_SUCCEEDED %}
|
|
<a href="{%url "builddashboard" o.get_last_build_id %}#images">{{fstypes|get_dict_value:o.id}}</a>
|
|
{% endif %}
|
|
</td>
|
|
|
|
{% endif %}
|
|
</tr>
|
|
{% endfor %}
|
|
{% include "basetable_bottom.html" %}
|
|
{% endif %} {# empty #}
|
|
|
|
{% endblock %}
|
|
|
|
|