summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/package_included_detail.html
diff options
context:
space:
mode:
authorDave Lerner <dave.lerner@windriver.com>2014-04-08 16:32:21 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-04-09 17:00:02 +0100
commitd3e5632efb1f10143c748c169f6439f39eb3cf21 (patch)
tree8e6709581e91d2d8f46856656560d18ea78063fd /bitbake/lib/toaster/toastergui/templates/package_included_detail.html
parentdc7d3d29108d63eb5ecf276769f0099a5bc3ab86 (diff)
downloadpoky-d3e5632efb1f10143c748c169f6439f39eb3cf21.tar.gz
bitbake: toaster: sort on size in detail pages
[YOCTO 5778] Implements the features described in the attachment to bugzilla 5778 - new global changes to the format of size data, and - adding sorts by selected columns to specific detail pages. Although new pagination and row search capabilities are shown on the screen shots for the 5778 attachment, those features are specified in a different bugzilla entry 5777 and are not implemented in this commit. Also, the 5778 spec includes table sorting for the recipe package detail page, but sorting for that page was not implemented in this commit due to complications with sorting then returning to a page that is only one URL fragment in a template. The scope of file changes are described below. Changes to support new 'size' field column formats... default.css - added sizecol class style (right justified) projecttags.py - changed filtered_filesizeformat to allow ".0" suffixes Changes that add class 'sizecol, span2(as spec'd) ' to <th> and/or <td> size columns were made to... dirinfo.py, package_built_dependencies.html, package_included_dependencies.html, recipe.html, bpackage.html, and target.html More significant changes to support detail page table sorting are: - tablesort.html: New created to implement the sort icons, directions, and table headings, and suppress sort handling if 'disable_sort' in context, without search or pagination elements ingrained in basetable_top. Confining the changes to this small file reduces the impact (testing and risk) on the larger set of files that arleady include basetable_top/bottom files. - view.py: Modified the following view functions with - trivial changes for size formatting to the views: target, - changes to package_built_detail, package_included_detail, package_included_reverse_dependencies to handle the sorting implementation as well as moving headings and size formatting for size columns from templates to the views. - Implementation of the detail sorting using above in: package_built_detail.html, package_included_detail.html, and package_included_reverse_dependencies.html to include the tablesort heading setup, format the size column, and iterate over the new sorted objects, suppressing sorts if table row count less than 2. (Bitbake rev: d16126e9abfffde66ab70865a81997322847d44e) Signed-off-by: Dave Lerner <dave.lerner@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/package_included_detail.html')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/package_included_detail.html14
1 files changed, 4 insertions, 10 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/package_included_detail.html b/bitbake/lib/toaster/toastergui/templates/package_included_detail.html
index e89ebdf58c..d2aa26eefa 100644
--- a/bitbake/lib/toaster/toastergui/templates/package_included_detail.html
+++ b/bitbake/lib/toaster/toastergui/templates/package_included_detail.html
@@ -17,22 +17,16 @@
17 <div class="tab-content"> 17 <div class="tab-content">
18 <div class="tab-pane active" id="files"> 18 <div class="tab-pane active" id="files">
19 {% if packageFileCount > 0 %} 19 {% if packageFileCount > 0 %}
20 <table class="table table-bordered table-hover"> 20 {% include "tablesort.html" %}
21 <thead>
22 <tr>
23 <th>File</th>
24 <th>Size</th>
25 </tr>
26 </thead>
27 <tbody> 21 <tbody>
28 {% for file in package.buildfilelist_package.all|dictsort:"path" %} 22 {% for file in objects %}
29 <tr> 23 <tr>
30 <td> 24 <td class="path">
31 <a href="{% url 'dirinfo_filepath' build.id target.id file.path %}"> 25 <a href="{% url 'dirinfo_filepath' build.id target.id file.path %}">
32 {{file.path}} 26 {{file.path}}
33 </a> 27 </a>
34 </td> 28 </td>
35 <td>{{file.size|filtered_filesizeformat}}</td> 29 <td class="filesize sizecol" >{{file.size|filtered_filesizeformat}}</td>
36 </tr> 30 </tr>
37 {% endfor %} 31 {% endfor %}
38 </tbody> 32 </tbody>