]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: Implementation of base build details page
authorDavid Reyna <David.Reyna@windriver.com>
Fri, 17 Jan 2014 01:41:57 +0000 (17:41 -0800)
committerAlexandru DAMIAN <alexandru.damian@intel.com>
Mon, 27 Jan 2014 15:19:49 +0000 (15:19 +0000)
This page is the standard base page for 'details' views. It is
based on 'basebuildpage.html' but does not include the build's
quick-link sidebar.

Signed-off-by: David Reyna <david.reyna@windriver.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
lib/toaster/toastergui/templates/basebuilddetailpage.html [new file with mode: 0755]

diff --git a/lib/toaster/toastergui/templates/basebuilddetailpage.html b/lib/toaster/toastergui/templates/basebuilddetailpage.html
new file mode 100755 (executable)
index 0000000..2be80a5
--- /dev/null
@@ -0,0 +1,28 @@
+{% extends "base.html" %}
+{% load humanize %}
+{% block pagecontent %}
+
+<div class="row-fluid">
+<!-- Breadcrumbs -->
+    <div class="section">
+        <ul class="breadcrumb" id="breadcrumb">
+            <li><a href="{% url 'all-builds' %}">All builds</a></li>
+            <li><a href="{%url 'builddashboard' build.pk%}">{{build.target_set.all.0.target}} {%if build.target_set.all.count > 1%}(+ {{build.target_set.all.count|add:"-1"}}){%endif%} {{build.machine}} ({{build.completed_on|naturaltime}})</a></li>
+            {% block localbreadcrumb %}{% endblock %}
+        </ul>
+        <script>
+        $( function () {
+            $('#breadcrumb > li').append("<span class=\"divider\">→</span>");
+            $('#breadcrumb > li:last').addClass("active");
+            $('#breadcrumb > li:last > span').remove();
+        });
+        </script>
+    </div> <!--section-->
+
+        <!-- Begin container -->
+        {% block pagedetailinfomain %}{% endblock %}
+        <!-- End container -->
+
+</div>
+
+{% endblock %}