diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2013-12-11 16:42:34 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-10 15:20:25 +0000 |
commit | 2251426ae420640c082ec0d0109b9be435075411 (patch) | |
tree | 0f58f48d18bbfd9054c928f3ef554365f74d6ed8 /bitbake/lib/toaster/toastergui/templates/basebuildpage.html | |
parent | c2fc6ca2fa68aca17235cac306b6df4b882fe9ff (diff) | |
download | poky-2251426ae420640c082ec0d0109b9be435075411.tar.gz |
bitbake: toaster: Create the base page navigation structure
Updating the general container pages to use the graphical
design and features from the design phase.
In the process of adapting the Simple UI to the designed
interface, we create all the pages and the navigation
structure for the Toaster GUI.
Views for each page have been added, and the url mapping
has been updated to reflect newly added pages.
The table page has been refactored to be component-oriented
instead of class-oriented in order to facilitate reusage.
Changes are made in different layers of the template
(base, basetable) in order to maximize code reuse among
different pages in the build.
(Bitbake rev: d31f039ae31b77023722c06e66542751536a1362)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/basebuildpage.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/basebuildpage.html | 69 |
1 files changed, 54 insertions, 15 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/basebuildpage.html b/bitbake/lib/toaster/toastergui/templates/basebuildpage.html index d590f28bc5..1b037f9539 100644 --- a/bitbake/lib/toaster/toastergui/templates/basebuildpage.html +++ b/bitbake/lib/toaster/toastergui/templates/basebuildpage.html | |||
@@ -1,17 +1,56 @@ | |||
1 | {% extends "basetable.html" %} | 1 | {% extends "base.html" %} |
2 | 2 | {% load humanize %} | |
3 | {% block pagename %} | 3 | {% block pagecontent %} |
4 | <ul class="nav nav-tabs" style="display: inline-block"> | 4 | |
5 | <li><a>Build {{build.target_set.all|join:" "}} at {{build.started_on}} : </a></li> | 5 | |
6 | <li><a href="{% url "task" build.id %}"> Tasks </a></li> | 6 | <div class="span12"> |
7 | <li><a href="{% url "bpackage" build.id %}"> Build Packages </a></li> | 7 | <!-- Breadcrumbs --> |
8 | {% for t in build.target_set.all %} | 8 | <div class="section"> |
9 | {% if t.is_image %} | 9 | <ul class="breadcrumb" id="breadcrumb"> |
10 | <li><a href="{% url "tpackage" build.id t.pk %}"> Packages for {{t.target}} </a> </li> | 10 | <li><a href="{% url 'all-builds' %}">All builds</a></li> |
11 | {% endif %} | 11 | <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> |
12 | {% endfor %} | 12 | {% block localbreadcrumb %}{% endblock %} |
13 | <li><a href="{% url "configuration" build.id %}"> Configuration </a> </li> | 13 | </ul> |
14 | </ul> | 14 | <script> |
15 | <h1>Toaster - Build {% block pagetitle %} {% endblock %}</h1> | 15 | $( function () { |
16 | $('#breadcrumb > li').append("<span class=\"divider\">→</span>"); | ||
17 | $('#breadcrumb > li:last').addClass("active"); | ||
18 | $('#breadcrumb > li:last > span').remove(); | ||
19 | }); | ||
20 | </script> | ||
21 | </div> | ||
22 | |||
23 | <div class="row-fluid"> | ||
24 | |||
25 | <!-- begin left sidebar container --> | ||
26 | <div id="nav" class="span2"> | ||
27 | <ul class="nav nav-list well"> | ||
28 | <li class="nav-header">Images</li> | ||
29 | {% for t in build.target_set.all %} | ||
30 | <li><a href="{% url 'target' build.pk t.pk %}">{{t.target}}</a><li> | ||
31 | {% endfor %} | ||
32 | <li class="nav-header">Build</li> | ||
33 | <li><a href="{% url 'configuration' build.pk %}">Configuration</a></li> | ||
34 | <li><a href="{% url 'tasks' build.pk %}">Tasks</a></li> | ||
35 | <li><a href="{% url 'recipes' build.pk %}">Recipes</a></li> | ||
36 | <li><a href="{% url 'packages' build.pk %}">Packages</a></li> | ||
37 | <li class="nav-header">Performance</li> | ||
38 | <li><a href="{% url 'buildtime' build.pk %}">Time</a></li> | ||
39 | <li><a href="{% url 'cpuusage' build.pk %}">CPU usage</a></li> | ||
40 | <li><a href="{% url 'diskio' build.pk %}">Disk I/O</a></li> | ||
41 | </ul> | ||
42 | </div> | ||
43 | |||
44 | <!-- end left sidebar container --> | ||
45 | <!-- Begin right container --> | ||
46 | <div class="row span10"> | ||
47 | {% block buildinfomain %}{% endblock %} | ||
48 | </div> | ||
49 | |||
50 | |||
51 | </div> | ||
52 | </div> | ||
53 | |||
54 | |||
16 | {% endblock %} | 55 | {% endblock %} |
17 | 56 | ||