mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00

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>
43 lines
883 B
HTML
43 lines
883 B
HTML
{% extends 'base.html' %}
|
|
|
|
{% block title %} All projects - Toaster {% endblock %}
|
|
|
|
{% block pagecontent %}
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
|
|
<div class="page-header">
|
|
<h1 data-role="page-title"></h1>
|
|
</div>
|
|
|
|
{% url 'projects' as xhr_table_url %}
|
|
{% include 'toastertable.html' %}
|
|
|
|
<script>
|
|
$(document).ready(function () {
|
|
var tableElt = $("#{{table_name}}");
|
|
var titleElt = $("[data-role='page-title']");
|
|
|
|
tableElt.on("table-done", function (e, total, tableParams) {
|
|
var title = "All projects";
|
|
|
|
if (tableParams.search || tableParams.filter) {
|
|
if (total === 0) {
|
|
title = "No projects found";
|
|
}
|
|
else if (total > 0) {
|
|
title = total + " project" + (total > 1 ? 's' : '') + " found";
|
|
}
|
|
}
|
|
|
|
titleElt.text(title);
|
|
});
|
|
});
|
|
</script>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|