diff options
| author | Michael Wood <michael.g.wood@intel.com> | 2016-05-26 16:12:20 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-15 08:35:04 +0100 |
| commit | a786ac14f1c6c02c38dc141125035445413f1250 (patch) | |
| tree | 0e591f980a70afecbbde39c77e62b7f12ec4a889 /bitbake/lib/toaster/toastergui/templates/basebuildpage.html | |
| parent | b63f9518e718db09e14c8287fadf0bebcdf5ec9e (diff) | |
| download | poky-a786ac14f1c6c02c38dc141125035445413f1250.tar.gz | |
bitbake: toaster: port table for Built packages to ToasterTable
This is the table that displays all the packages built in the build.
Build -> Packages. Adds a template snippet for the git revision popover.
(Bitbake rev: df62f38ff4e634544c9b1e97c5f6ca45e84a4f1e)
Signed-off-by: Michael Wood <michael.g.wood@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 | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/basebuildpage.html b/bitbake/lib/toaster/toastergui/templates/basebuildpage.html index 76a602bf07..c002e42b7d 100644 --- a/bitbake/lib/toaster/toastergui/templates/basebuildpage.html +++ b/bitbake/lib/toaster/toastergui/templates/basebuildpage.html | |||
| @@ -23,10 +23,19 @@ | |||
| 23 | {% block localbreadcrumb %}{% endblock %} | 23 | {% block localbreadcrumb %}{% endblock %} |
| 24 | </ul> | 24 | </ul> |
| 25 | <script> | 25 | <script> |
| 26 | $( function () { | 26 | $(document).ready(function(){ |
| 27 | $('#breadcrumb > li').append('<span class="divider">→</span>'); | 27 | $('#breadcrumb > li').append('<span class="divider">→</span>'); |
| 28 | $('#breadcrumb > li:last').addClass("active"); | 28 | $('#breadcrumb > li:last').addClass("active"); |
| 29 | $('#breadcrumb > li:last > span').remove(); | 29 | $('#breadcrumb > li:last > span').remove(); |
| 30 | |||
| 31 | $("#build-menu li a").each(function(){ | ||
| 32 | /* Set the page active state in the Build menu */ | ||
| 33 | if (window.location.href.split('?')[0] === $(this).prop("href")){ | ||
| 34 | $(this).parent().addClass("active"); | ||
| 35 | } else { | ||
| 36 | $(this).parent().removeClass("active"); | ||
| 37 | } | ||
| 38 | }); | ||
| 30 | }); | 39 | }); |
| 31 | </script> | 40 | </script> |
| 32 | </div> | 41 | </div> |
| @@ -35,7 +44,7 @@ | |||
| 35 | <div class="row"> | 44 | <div class="row"> |
| 36 | <!-- begin left sidebar container --> | 45 | <!-- begin left sidebar container --> |
| 37 | <div id="nav" class="col-md-2"> | 46 | <div id="nav" class="col-md-2"> |
| 38 | <ul class="nav nav-list well"> | 47 | <ul class="nav nav-list well" id="build-menu"> |
| 39 | <li | 48 | <li |
| 40 | {% if request.resolver_match.url_name == 'builddashboard' %} | 49 | {% if request.resolver_match.url_name == 'builddashboard' %} |
| 41 | class="active" | 50 | class="active" |
| @@ -54,25 +63,14 @@ | |||
| 54 | {% block nav-configuration %} | 63 | {% block nav-configuration %} |
| 55 | <li><a href="{% url 'configuration' build.pk %}">Configuration</a></li> | 64 | <li><a href="{% url 'configuration' build.pk %}">Configuration</a></li> |
| 56 | {% endblock %} | 65 | {% endblock %} |
| 57 | {% block nav-tasks %} | 66 | |
| 58 | <li><a href="{% url 'tasks' build.pk %}">Tasks</a></li> | 67 | <li><a href="{% url 'tasks' build.pk %}">Tasks</a></li> |
| 59 | {% endblock %} | ||
| 60 | {% block nav-recipes %} | ||
| 61 | <li><a href="{% url 'recipes' build.pk %}">Recipes</a></li> | 68 | <li><a href="{% url 'recipes' build.pk %}">Recipes</a></li> |
| 62 | {% endblock %} | ||
| 63 | {% block nav-packages %} | ||
| 64 | <li><a href="{% url 'packages' build.pk %}">Packages</a></li> | 69 | <li><a href="{% url 'packages' build.pk %}">Packages</a></li> |
| 65 | {% endblock %} | ||
| 66 | <li class="nav-header">Performance</li> | 70 | <li class="nav-header">Performance</li> |
| 67 | {% block nav-buildtime %} | ||
| 68 | <li><a href="{% url 'buildtime' build.pk %}">Time</a></li> | 71 | <li><a href="{% url 'buildtime' build.pk %}">Time</a></li> |
| 69 | {% endblock %} | ||
| 70 | {% block nav-cputime %} | ||
| 71 | <li><a href="{% url 'cputime' build.pk %}">CPU usage</a></li> | 72 | <li><a href="{% url 'cputime' build.pk %}">CPU usage</a></li> |
| 72 | {% endblock %} | ||
| 73 | {% block nav-diskio %} | ||
| 74 | <li><a href="{% url 'diskio' build.pk %}">Disk I/O</a></li> | 73 | <li><a href="{% url 'diskio' build.pk %}">Disk I/O</a></li> |
| 75 | {% endblock %} | ||
| 76 | 74 | ||
| 77 | <li class="divider"></li> | 75 | <li class="divider"></li> |
| 78 | 76 | ||
