bitbake: toaster: changes to the landing page

This patch brings in a new landing page to be shown
when there are no builds and no projects available.

The builds page now displays only only the builds part,
without the landing page bits.

There is a new projects page that displays the All Projects
table as specified in the design.

[YOCTO #6682]

(Bitbake rev: c6c7c05521daa9bf16c122d7d472330ca4c05e88)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alexandru DAMIAN
2014-10-03 18:03:37 +01:00
committed by Richard Purdie
parent c7382dbd8b
commit a1f7a09801
10 changed files with 384 additions and 78 deletions

View File

@@ -0,0 +1,36 @@
{% extends "base.html" %}
{% load static %}
{% load projecttags %}
{% load humanize %}
{% block pagecontent %}
{% include "mrb_section.html" %}
<div class="page-header top-air">
<h1>
All projects
</h1>
</div>
{% include "basetable_top_projectbuilds.html" %}
{% for o in objects %}
<tr class="data">
<td><a href="{% url 'project' o.id %}">{{o.name}}</a></td>
<td><a href="{% url 'project' o.id %}">{{o.release.name}}</a></td>
<td>{{o.get_current_machine_name}}</td>
<td>{{o.get_number_of_builds}}</td>
<td>{{o.get_last_outcome}}</td>
<td>{{o.get_last_target}}</td>
<td>{{o.get_last_errors}}</td>
<td>{{o.get_last_warnings}}</td>
<td>{{o.get_last_imgfiles}}</td>
<td>{{o.updated|date:"d/m/y H:i"}}</td>
</tr>
{% endfor %}
{% include "basetable_bottom.html" %}
{% endblock %}