diff options
author | David Reyna <David.Reyna@windriver.com> | 2014-02-06 21:21:58 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-17 15:38:53 +0000 |
commit | deb3859820ef96fcf0a8eb2f1d6fce334988a329 (patch) | |
tree | bfce2c6286f93f4b3b4fa065254b9d0adbb97ac1 /bitbake/lib/toaster/toastergui/templates/bpackage.html | |
parent | 77eeb4200efa28af080c8343333cd651aaeb3923 (diff) | |
download | poky-deb3859820ef96fcf0a8eb2f1d6fce334988a329.tar.gz |
bitbake: toaster: implement package summary page
Implement the updated design for the package summay page, with pop-up
boxes for the layer commit ids, column filtering, and column sorting
support.
[YOCTO #4318]
(Bitbake rev: c39b99792547b642570ea5152070e7396e812390)
Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/bpackage.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/bpackage.html | 95 |
1 files changed, 59 insertions, 36 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/bpackage.html b/bitbake/lib/toaster/toastergui/templates/bpackage.html index b78ae4644f..cc8ec90395 100644 --- a/bitbake/lib/toaster/toastergui/templates/bpackage.html +++ b/bitbake/lib/toaster/toastergui/templates/bpackage.html | |||
@@ -1,50 +1,73 @@ | |||
1 | {% extends "basebuildpage.html" %} | 1 | {% extends "basebuildpage.html" %} |
2 | 2 | ||
3 | {% load projecttags %} | ||
4 | |||
3 | {% block localbreadcrumb %} | 5 | {% block localbreadcrumb %} |
4 | <li>Packages</li> | 6 | <li>Packages</li> |
5 | {% endblock %} | 7 | {% endblock %} |
6 | 8 | ||
7 | {% block buildinfomain %} | 9 | {% block buildinfomain %} |
10 | <div class="span10"> | ||
11 | <div class="page-header" style="margin-top:40px;"> | ||
12 | <h1> | ||
13 | {% if request.GET.filter or request.GET.search and objects.count > 0 %} | ||
14 | {{objects.paginator.count}} package{{objects.paginator.count|pluralize}} found | ||
15 | {%elif objects.paginator.count == 0%} | ||
16 | No Packages | ||
17 | {%else%} | ||
18 | Packages | ||
19 | {%endif%} | ||
20 | </h1> | ||
21 | </div> | ||
22 | |||
8 | {% include "basetable_top.html" %} | 23 | {% include "basetable_top.html" %} |
9 | 24 | ||
10 | {% if not objects %} | 25 | {% for package in objects %} |
11 | <p>No packages were recorded for this target!</p> | 26 | |
12 | {% else %} | 27 | <tr class="data"> |
13 | 28 | ||
14 | <tr> | 29 | <!-- Package --> |
15 | <th>Name</th> | 30 | <td><a href="{% url "package_built_detail" build.pk package.pk %}">{{package.name}}</a></td> |
16 | <th>Version</th> | 31 | <!-- Package Version --> |
17 | <th>Recipe</th> | 32 | <td>{%if package.version%}<a href="{% url "package_built_detail" build.pk package.pk %}">{{package.version}}-{{package.revision}}</a>{%endif%}</td> |
18 | <th>Summary</th> | 33 | <!-- Package Size --> |
19 | <th>Section</th> | 34 | <td class="size">{{package.size|filtered_filesizeformat}}</td> |
20 | <th>Description</th> | 35 | <!-- License --> |
21 | <th>Size on host disk (Bytes)</th> | 36 | <td class="license">{{package.license}}</td> |
22 | <th>License</th> | 37 | |
23 | <th>Dependencies List (all)</th> | 38 | {%if package.recipe%} |
24 | </tr> | 39 | <!-- Recipe --> |
25 | 40 | <td class="recipe__name"><a href="{% url "recipe" build.pk package.recipe.pk %}">{{package.recipe.name}}</a></td> | |
26 | {% for package in objects %} | 41 | <!-- Recipe Version --> |
27 | 42 | <td class="recipe__version"><a href="{% url "recipe" build.pk package.recipe.pk %}">{{package.recipe.version}}</a></td> | |
28 | <tr class="data"> | 43 | |
29 | <td><a name="#{{package.name}}" href="{% url "package_built_detail" build.pk package.pk %}">{{package.name}} ({{package.filelist_bpackage.count}} files)</a></td> | 44 | <!-- Layer --> |
30 | <td>{{package.version}}-{{package.revision}}</td> | 45 | <td class="recipe__layer_version__layer__name">{{package.recipe.layer_version.layer.name}}</td> |
31 | <td>{%if package.recipe%}<a href="{% url "layer_versions_recipes" package.recipe.layer_version_id %}#{{package.recipe.name}}">{{package.recipe.name}}</a>{{package.package_name}}</a>{%endif%}</td> | 46 | <!-- Layer branch --> |
32 | 47 | <td class="recipe__layer_version__branch">{{package.recipe.layer_version.branch}}</td> | |
33 | <td>{{package.summary}}</td> | 48 | <!-- Layer commit --> |
34 | <td>{{package.section}}</td> | 49 | <td class="recipe__layer_version__layer__commit"> |
35 | <td>{{package.description}}</td> | 50 | <a class="btn" |
36 | <td>{{package.size}}</td> | 51 | data-content="<ul class='unstyled'> |
37 | <td>{{package.license}}</td> | 52 | <li>{{package.recipe.layer_version.commit}}</li> |
38 | <td> | 53 | </ul>"> |
39 | <div style="height: 3em; overflow:auto"> | 54 | {{package.recipe.layer_version.commit|truncatechars:13}} |
40 | {% for bpd in package.package_dependencies_source.all %} | 55 | </a> |
41 | {{bpd.dep_type}}: {{bpd.depends_on.name}} <br/> | ||
42 | {% endfor %} | ||
43 | </div> | ||
44 | </td> | 56 | </td> |
45 | {% endfor %} | 57 | <!-- Layer directory --> |
58 | <td class="recipe__layer_version__layer__local_path">{{package.recipe.layer_version.layer.local_path}}</td> | ||
59 | {%else%} | ||
60 | <td class="recipe__name"></td> | ||
61 | <td class="recipe__version"></td> | ||
62 | <td class="recipe__layer_version__layer__name"></td> | ||
63 | <td class="recipe__layer_version__branch"></td> | ||
64 | <td class="recipe__layer_version__layer__commit"></td> | ||
65 | <td class="recipe__layer_version__layer__local_path"></td> | ||
66 | {%endif%} | ||
46 | 67 | ||
47 | {% endif %} | 68 | </tr> |
69 | {% endfor %} | ||
48 | 70 | ||
49 | {% include "basetable_bottom.html" %} | 71 | {% include "basetable_bottom.html" %} |
72 | </div> | ||
50 | {% endblock %} | 73 | {% endblock %} |