diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates')
10 files changed, 66 insertions, 47 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/bpackage.html b/bitbake/lib/toaster/toastergui/templates/bpackage.html index c6ec634f83..2d4948be4b 100644 --- a/bitbake/lib/toaster/toastergui/templates/bpackage.html +++ b/bitbake/lib/toaster/toastergui/templates/bpackage.html | |||
@@ -64,7 +64,7 @@ | |||
64 | <!-- Package Version --> | 64 | <!-- Package Version --> |
65 | <td>{%if package.version%}<a href="{% url "package_built_detail" build.pk package.pk %}">{{package.version}}-{{package.revision}}</a>{%endif%}</td> | 65 | <td>{%if package.version%}<a href="{% url "package_built_detail" build.pk package.pk %}">{{package.version}}-{{package.revision}}</a>{%endif%}</td> |
66 | <!-- Package Size --> | 66 | <!-- Package Size --> |
67 | <td class="size">{{package.size|filtered_filesizeformat}}</td> | 67 | <td class="size sizecol">{{package.size|filtered_filesizeformat}}</td> |
68 | <!-- License --> | 68 | <!-- License --> |
69 | <td class="license">{{package.license}}</td> | 69 | <td class="license">{{package.license}}</td> |
70 | 70 | ||
diff --git a/bitbake/lib/toaster/toastergui/templates/dirinfo.html b/bitbake/lib/toaster/toastergui/templates/dirinfo.html index 9b76a1cb8c..749ae242ea 100644 --- a/bitbake/lib/toaster/toastergui/templates/dirinfo.html +++ b/bitbake/lib/toaster/toastergui/templates/dirinfo.html | |||
@@ -76,7 +76,7 @@ | |||
76 | 76 | ||
77 | /* setup td specific formatting */ | 77 | /* setup td specific formatting */ |
78 | var link_to = td(o.link_to); | 78 | var link_to = td(o.link_to); |
79 | var size = td(o.size); | 79 | var size = '<td class = "sizecol">' + o.size + '</td>' |
80 | var permission = td(o.permission); | 80 | var permission = td(o.permission); |
81 | var owner = td(o.owner); | 81 | var owner = td(o.owner); |
82 | var group = td(o.group); | 82 | var group = td(o.group); |
diff --git a/bitbake/lib/toaster/toastergui/templates/package_built_dependencies.html b/bitbake/lib/toaster/toastergui/templates/package_built_dependencies.html index 4e86da519d..a0c5a1e4f0 100644 --- a/bitbake/lib/toaster/toastergui/templates/package_built_dependencies.html +++ b/bitbake/lib/toaster/toastergui/templates/package_built_dependencies.html | |||
@@ -31,7 +31,7 @@ | |||
31 | <tr> | 31 | <tr> |
32 | <th>Package</th> | 32 | <th>Package</th> |
33 | <th>Version</th> | 33 | <th>Version</th> |
34 | <th>Size</th> | 34 | <th class="sizecol span2">Size</th> |
35 | </tr> | 35 | </tr> |
36 | </thead> | 36 | </thead> |
37 | <tbody> | 37 | <tbody> |
@@ -49,7 +49,7 @@ | |||
49 | </td> | 49 | </td> |
50 | {% endif %} | 50 | {% endif %} |
51 | <td>{{runtime_dep.version}}</td> | 51 | <td>{{runtime_dep.version}}</td> |
52 | <td>{{runtime_dep.size|filtered_filesizeformat}}</td> | 52 | <td class="sizecol">{{runtime_dep.size|filtered_filesizeformat}}</td> |
53 | </tr> | 53 | </tr> |
54 | {% endfor %} | 54 | {% endfor %} |
55 | </tbody> | 55 | </tbody> |
@@ -62,7 +62,7 @@ | |||
62 | <tr> | 62 | <tr> |
63 | <th>Package</th> | 63 | <th>Package</th> |
64 | <th>Version</th> | 64 | <th>Version</th> |
65 | <th>Size</th> | 65 | <th class="sizecol span2">Size</th> |
66 | <th> | 66 | <th> |
67 | <i class="icon-question-sign get-help" title="Five relationship types exist: recommends, suggests, provides, replaces and conflicts"></i> | 67 | <i class="icon-question-sign get-help" title="Five relationship types exist: recommends, suggests, provides, replaces and conflicts"></i> |
68 | Relationship type | 68 | Relationship type |
@@ -84,7 +84,7 @@ | |||
84 | </td> | 84 | </td> |
85 | {% endif %} | 85 | {% endif %} |
86 | <td>{{other_dep.version}}</td> | 86 | <td>{{other_dep.version}}</td> |
87 | <td>{{other_dep.size|filtered_filesizeformat}}</td> | 87 | <td class="sizecol">{{other_dep.size|filtered_filesizeformat}}</td> |
88 | <td> | 88 | <td> |
89 | {{other_dep.dep_type_display}} | 89 | {{other_dep.dep_type_display}} |
90 | <i class="icon-question-sign get-help hover-help" title="{{other_dep.dep_type_help}}" ></i> | 90 | <i class="icon-question-sign get-help hover-help" title="{{other_dep.dep_type_help}}" ></i> |
diff --git a/bitbake/lib/toaster/toastergui/templates/package_built_detail.html b/bitbake/lib/toaster/toastergui/templates/package_built_detail.html index 3aa1b2a8a7..0fe01165da 100644 --- a/bitbake/lib/toaster/toastergui/templates/package_built_detail.html +++ b/bitbake/lib/toaster/toastergui/templates/package_built_detail.html | |||
@@ -23,18 +23,12 @@ | |||
23 | <div class="alert alert-info"> | 23 | <div class="alert alert-info"> |
24 | <strong>{{package.fullpackagespec}}</strong> is <strong>not included</strong> in any image. This page shows you the files added to an image root file system if you include <strong>{{package.fullpackagespec}}</strong> in future builds. | 24 | <strong>{{package.fullpackagespec}}</strong> is <strong>not included</strong> in any image. This page shows you the files added to an image root file system if you include <strong>{{package.fullpackagespec}}</strong> in future builds. |
25 | </div> | 25 | </div> |
26 | <table class="table table-bordered table-hover"> | 26 | {% include "tablesort.html" %} |
27 | <thead> | ||
28 | <tr> | ||
29 | <th>File</th> | ||
30 | <th>Size</th> | ||
31 | </tr> | ||
32 | </thead> | ||
33 | <tbody> | 27 | <tbody> |
34 | {% for file in package.buildfilelist_package.all|dictsort:"path" %} | 28 | {% for file in objects %} |
35 | <tr> | 29 | <tr> |
36 | <td>{{file.path}}</td> | 30 | <td class="path">{{file.path}}</td> |
37 | <td>{{file.size|filtered_filesizeformat}}</td> | 31 | <td class="filesize sizecol">{{file.size|filtered_filesizeformat}}</td> |
38 | </tr> | 32 | </tr> |
39 | {% endfor %} | 33 | {% endfor %} |
40 | </tbody> | 34 | </tbody> |
diff --git a/bitbake/lib/toaster/toastergui/templates/package_included_dependencies.html b/bitbake/lib/toaster/toastergui/templates/package_included_dependencies.html index 9169ee95d4..642ca69568 100644 --- a/bitbake/lib/toaster/toastergui/templates/package_included_dependencies.html +++ b/bitbake/lib/toaster/toastergui/templates/package_included_dependencies.html | |||
@@ -20,7 +20,7 @@ | |||
20 | <tr> | 20 | <tr> |
21 | <th>Package</th> | 21 | <th>Package</th> |
22 | <th>Version</th> | 22 | <th>Version</th> |
23 | <th>Size</th> | 23 | <th class='sizecol span2'>Size</th> |
24 | </tr> | 24 | </tr> |
25 | </thead> | 25 | </thead> |
26 | <tbody> | 26 | <tbody> |
@@ -39,7 +39,7 @@ | |||
39 | </td> | 39 | </td> |
40 | {% endif %} | 40 | {% endif %} |
41 | <td>{{runtime_dep.version}} </td> | 41 | <td>{{runtime_dep.version}} </td> |
42 | <td>{{runtime_dep.size|filtered_filesizeformat}} </td> | 42 | <td class='sizecol'>{{runtime_dep.size|filtered_filesizeformat}} </td> |
43 | </tr> | 43 | </tr> |
44 | {% endfor %} | 44 | {% endfor %} |
45 | </tbody> | 45 | </tbody> |
@@ -57,7 +57,7 @@ | |||
57 | <tr> | 57 | <tr> |
58 | <th>Package</th> | 58 | <th>Package</th> |
59 | <th>Version</th> | 59 | <th>Version</th> |
60 | <th>Size</th> | 60 | <th class='sizecol span2'>Size</th> |
61 | <th> | 61 | <th> |
62 | <i class="icon-question-sign get-help" title="Five relationship types exist: recommends, suggests, provides, replaces and conflicts"></i> | 62 | <i class="icon-question-sign get-help" title="Five relationship types exist: recommends, suggests, provides, replaces and conflicts"></i> |
63 | Relationship type | 63 | Relationship type |
@@ -83,7 +83,7 @@ | |||
83 | </td> | 83 | </td> |
84 | {% endif %} | 84 | {% endif %} |
85 | <td>{{other_dep.version}} </td> | 85 | <td>{{other_dep.version}} </td> |
86 | <td>{{other_dep.size|filtered_filesizeformat}} </td> | 86 | <td class='sizecol'>{{other_dep.size|filtered_filesizeformat}} </td> |
87 | <td> | 87 | <td> |
88 | {{other_dep.dep_type_display}} | 88 | {{other_dep.dep_type_display}} |
89 | <i class="icon-question-sign get-help hover-help" title="{{other_dep.dep_type_help}}" ></i> | 89 | <i class="icon-question-sign get-help hover-help" title="{{other_dep.dep_type_help}}" ></i> |
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> |
diff --git a/bitbake/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html b/bitbake/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html index 1efcb1a610..a36464cad5 100644 --- a/bitbake/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html +++ b/bitbake/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html | |||
@@ -20,21 +20,14 @@ | |||
20 | <strong>{{package.fullpackagespec}}</strong> has no reverse runtime dependencies. | 20 | <strong>{{package.fullpackagespec}}</strong> has no reverse runtime dependencies. |
21 | </div> | 21 | </div> |
22 | {% else %} | 22 | {% else %} |
23 | <table class="table table-bordered table-hover"> | 23 | {% include "tablesort.html" %} |
24 | <thead> | ||
25 | <tr> | ||
26 | <th>Package</th> | ||
27 | <th>Version</th> | ||
28 | <th>Size</th> | ||
29 | </tr> | ||
30 | </thead> | ||
31 | <tbody> | 24 | <tbody> |
32 | {% for reverse_dep in reverse_deps|dictsort:"name" %} | 25 | {% for reverse_dep in objects %} |
33 | <tr {{reverse_dep.size|format_vpackage_rowclass}} > | 26 | <tr {{reverse_dep.size|format_vpackage_rowclass}} > |
34 | {% if reverse_dep.size != -1 %} | 27 | {% if reverse_dep.size != -1 %} |
35 | <td> | 28 | <td> |
36 | <a href="{% url 'package_included_detail' build.id target.id reverse_dep.dependent_id %}"> | 29 | <a href="{% url 'package_included_detail' build.id target.id reverse_dep.package_id %}"> |
37 | {{reverse_dep.name}} | 30 | {{reverse_dep.package.name}} |
38 | </a> | 31 | </a> |
39 | <script>fmtAliasHelp("{{reverse_dep.name}}", "{{reverse_dep.alias}}", true)</script> | 32 | <script>fmtAliasHelp("{{reverse_dep.name}}", "{{reverse_dep.alias}}", true)</script> |
40 | </td> | 33 | </td> |
@@ -44,8 +37,8 @@ | |||
44 | </td> | 37 | </td> |
45 | {% endif %} | 38 | {% endif %} |
46 | 39 | ||
47 | <td>{{reverse_dep.version}} </td> | 40 | <td>{{reverse_dep.package.version}} </td> |
48 | <td>{{reverse_dep.size|filtered_filesizeformat}} </td> | 41 | <td class='sizecol'>{{reverse_dep.package.size|filtered_filesizeformat}} </td> |
49 | </tr> | 42 | </tr> |
50 | {% endfor %} | 43 | {% endfor %} |
51 | </tbody> | 44 | </tbody> |
diff --git a/bitbake/lib/toaster/toastergui/templates/recipe.html b/bitbake/lib/toaster/toastergui/templates/recipe.html index c846aa9340..6e9cd23424 100644 --- a/bitbake/lib/toaster/toastergui/templates/recipe.html +++ b/bitbake/lib/toaster/toastergui/templates/recipe.html | |||
@@ -149,7 +149,7 @@ | |||
149 | <th> | 149 | <th> |
150 | Version | 150 | Version |
151 | </th> | 151 | </th> |
152 | <th> | 152 | <th class="sizecol span2"> |
153 | Size | 153 | Size |
154 | </th> | 154 | </th> |
155 | </tr> | 155 | </tr> |
@@ -161,7 +161,7 @@ | |||
161 | <tr> | 161 | <tr> |
162 | <td><a href="{% url "package_built_detail" build.pk package.pk %}">{{package.name}}</a></td> | 162 | <td><a href="{% url "package_built_detail" build.pk package.pk %}">{{package.name}}</a></td> |
163 | <td><a href="{% url "package_built_detail" build.pk package.pk %}">{{package.version}}_{{package.revision}}</a></td> | 163 | <td><a href="{% url "package_built_detail" build.pk package.pk %}">{{package.version}}_{{package.revision}}</a></td> |
164 | <td><a href="{% url "package_built_detail" build.pk package.pk %}">{{package.size|filtered_filesizeformat}}</a></td> | 164 | <td class="sizecol"><a href="{% url "package_built_detail" build.pk package.pk %}">{{package.size|filtered_filesizeformat}}</a></td> |
165 | </tr> | 165 | </tr> |
166 | 166 | ||
167 | {% endfor %} | 167 | {% endfor %} |
diff --git a/bitbake/lib/toaster/toastergui/templates/tablesort.html b/bitbake/lib/toaster/toastergui/templates/tablesort.html new file mode 100644 index 0000000000..bf311b6edd --- /dev/null +++ b/bitbake/lib/toaster/toastergui/templates/tablesort.html | |||
@@ -0,0 +1,38 @@ | |||
1 | {% load projecttags %} | ||
2 | <!-- component to display a generic table --> | ||
3 | {% if disable_sort %} | ||
4 | <table class="table table-bordered table-hover" id="detail_table"> | ||
5 | <thead> | ||
6 | <tr> | ||
7 | {% for tc in tablecols %} | ||
8 | <th class="{{tc.dclass}} {{tc.clclass}}"> | ||
9 | {%if tc.qhelp%}<i class="icon-question-sign get-help" title="{{tc.qhelp}}"></i>{%endif%} | ||
10 | {{tc.name}} | ||
11 | </th> | ||
12 | {% endfor %} | ||
13 | </tr> | ||
14 | </thead> | ||
15 | {% else %} | ||
16 | <table class="table table-bordered table-hover tablesorter" id="otable"> | ||
17 | <thead> | ||
18 | <!-- Table header row; generated from "tablecols" entry in the context dict --> | ||
19 | <tr> | ||
20 | {% for tc in tablecols %} | ||
21 | <th class="{{tc.dclass}} {{tc.clclass}}"> | ||
22 | {%if tc.qhelp%}<i class="icon-question-sign get-help" title="{{tc.qhelp}}"></i>{%endif%} | ||
23 | {%if tc.orderfield%} | ||
24 | <a {%if tc.ordericon%} class="sorted" {%endif%} | ||
25 | href="javascript:reload_params({'page': 1, 'orderby' : '{{tc.orderfield}}' })" > | ||
26 | {{tc.name}} | ||
27 | </a> | ||
28 | {%else%} | ||
29 | <span class="muted"> | ||
30 | {{tc.name}} | ||
31 | </span> | ||
32 | {%endif%} | ||
33 | {%if tc.ordericon%} <i class="icon-caret-{{tc.ordericon}}"></i>{%endif%} | ||
34 | </th> | ||
35 | {% endfor %} | ||
36 | </tr> | ||
37 | </thead> | ||
38 | {% endif %} | ||
diff --git a/bitbake/lib/toaster/toastergui/templates/target.html b/bitbake/lib/toaster/toastergui/templates/target.html index 5db0c0ccb5..3a0c4d7998 100644 --- a/bitbake/lib/toaster/toastergui/templates/target.html +++ b/bitbake/lib/toaster/toastergui/templates/target.html | |||
@@ -79,10 +79,10 @@ | |||
79 | {{package.version|filtered_packageversion:package.revision}} | 79 | {{package.version|filtered_packageversion:package.revision}} |
80 | </a> | 80 | </a> |
81 | </td> | 81 | </td> |
82 | <td class="package_size"> | 82 | <td class="package-size sizecol"> |
83 | {{package.size|filtered_installedsize:package.installed_size|filtered_filesizeformat}} | 83 | {{package.size|filtered_installedsize:package.installed_size|filtered_filesizeformat}} |
84 | </td> | 84 | </td> |
85 | <td class="size_over_total"> | 85 | <td class="size_over_total sizecol"> |
86 | {{package|filter_sizeovertotal:packages_sum}} | 86 | {{package|filter_sizeovertotal:packages_sum}} |
87 | </td> | 87 | </td> |
88 | <td class="license"> | 88 | <td class="license"> |