mirror of
https://git.yoctoproject.org/poky
synced 2026-02-10 10:43:02 +01:00
Use the all builds ToasterTable as the basis for the project builds ToasterTable. [YOCTO #8738] (Bitbake rev: 87bcfb740dd2d9944e35a2a1f71cbf8ff3b266e9) Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
57 lines
1.5 KiB
HTML
57 lines
1.5 KiB
HTML
{% extends 'base.html' %}
|
|
|
|
{% load static %}
|
|
|
|
{% block extraheadcontent %}
|
|
<link rel="stylesheet" href="{% static 'css/jquery-ui.min.css' %}" type='text/css'>
|
|
<link rel="stylesheet" href="{% static 'css/jquery-ui.structure.min.css' %}" type='text/css'>
|
|
<link rel="stylesheet" href="{% static 'css/jquery-ui.theme.min.css' %}" type='text/css'>
|
|
<script src="{% static 'js/jquery-ui.min.js' %}">
|
|
</script>
|
|
{% endblock %}
|
|
|
|
{% block title %} {{title}} - {{project.name}} - Toaster {% endblock %}
|
|
|
|
{% block pagecontent %}
|
|
|
|
{% include "projecttopbar.html" %}
|
|
|
|
<div class="row-fluid">
|
|
{% with mru=mru mrb_type=mrb_type %}
|
|
{% include 'mrb_section.html' %}
|
|
{% endwith %}
|
|
|
|
<h2 class="page-header top-air" data-role="page-title"></h2>
|
|
|
|
{% url 'projectbuilds' project.id as xhr_table_url %}
|
|
{% include 'toastertable.html' %}
|
|
</div>
|
|
|
|
<script>
|
|
$(document).ready(function () {
|
|
// title
|
|
var tableElt = $("#{{table_name}}");
|
|
var titleElt = $("[data-role='page-title']");
|
|
|
|
tableElt.on("table-done", function (e, total, tableParams) {
|
|
var title = "All project builds";
|
|
|
|
if (tableParams.search || tableParams.filter) {
|
|
if (total === 0) {
|
|
title = "No project builds found";
|
|
}
|
|
else if (total > 0) {
|
|
title = total + " project build" + (total > 1 ? 's' : '') + " found";
|
|
}
|
|
}
|
|
|
|
titleElt.text(title);
|
|
});
|
|
|
|
// highlight builds tab
|
|
$("#topbar-builds-tab").addClass("active")
|
|
});
|
|
</script>
|
|
|
|
{% endblock %}
|