Files
poky/bitbake/lib/toaster/toastergui/templates/projectbuilds-toastertable.html
Belen Barros Pena 443f7b3915 bitbake: toaster: Migrate project configuration from bootstrap 2 to bootstrap 3
Convert all the HTML templates, JS and CSS in the project parts of
toaster to use bootstrap 3.

(Bitbake rev: 69527a731eada699d3f604ff8f3ae9410981ba9b)

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-15 08:35:03 +01:00

66 lines
1.6 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 %}
<div class="row">
{% include "projecttopbar.html" %}
<div class="col-md-12">
{% with mru=mru mrb_type=mrb_type %}
{% include 'mrb_section.html' %}
{% endwith %}
<h2 class="top-air" data-role="page-title"></h2>
{% if not build_in_progress_none_completed %}
{% url 'projectbuilds' project.id as xhr_table_url %}
{% include 'toastertable.html' %}
{% endif %}
</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";
}
}
if (total === 0) {
titleElt.hide();
} else {
titleElt.show();
titleElt.text(title);
}
});
// highlight builds tab
$("#topbar-builds-tab").addClass("active")
});
</script>
</div>
{% endblock %}