summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/package_included_dependencies.html
diff options
context:
space:
mode:
authorDave Lerner <dave.lerner@windriver.com>2014-01-23 11:47:41 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-17 15:38:52 +0000
commit620553df864634e7061c9124ea70a90e5c067cde (patch)
treed196d7dbea61da09846e9a645f245ab931889516 /bitbake/lib/toaster/toastergui/templates/package_included_dependencies.html
parent47634378ac516496bcc155e001983973f241ee61 (diff)
downloadpoky-620553df864634e7061c9124ea70a90e5c067cde.tar.gz
bitbake: toaster: Implementation of package detail views
Adds new package detail views. The views are based on specifications found in attachments to: https://bugzilla.yoctoproject.org/show_bug.cgi?id=4328 specifically: design-1.5.1-package-details.pdf, and design-1.1.1-included-package-details. This patch includes a redefinition of constant numbers for task dependency tasks. This is needed in order to achieve sorting criteria from the design. This change invalidates currently dependency information for currently existing builds, as it breaks compatibility. [YOCTO #4328] (Bitbake rev: 6855925c06e7e5bb15ae9d0c08d77f3a9a2574bc) Signed-off-by: Dave Lerner <dave.lerner@windriver.com> 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/package_included_dependencies.html')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/package_included_dependencies.html93
1 files changed, 93 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/package_included_dependencies.html b/bitbake/lib/toaster/toastergui/templates/package_included_dependencies.html
new file mode 100644
index 0000000000..c8c2dddf29
--- /dev/null
+++ b/bitbake/lib/toaster/toastergui/templates/package_included_dependencies.html
@@ -0,0 +1,93 @@
1{% extends "package_detail_base.html" %}
2{% load projecttags %}
3
4{% block title %}
5 {% with fullPackageSpec=package.name|add:"-"|add:package.version|add:"-"|add:package.revision|filtered_packagespec %}
6 <h1>{{fullPackageSpec}} <small>({{target.target}})</small></h1>
7 {% endwith %}
8{% endblock title %}
9
10{% block tabcontent %}
11 {% with fullPackageSpec=package.name|add:"-"|add:package.version|add:"-"|add:package.revision|filtered_packagespec packageFileCount=package.buildfilelist_package.count %}
12 {% include "package_included_tabs.html" with active_tab="dependencies" %}
13 <div class="tab-content">
14 <div class="tab-pane active" id="dependencies">
15 {% ifnotequal runtime_deps|length 0 %}
16 <table class="table table-bordered table-hover">
17 <thead>
18 <tr>
19 <th>Package</th>
20 <th>Version</th>
21 <th>Size</th>
22 </tr>
23 </thead>
24 {% for runtime_dep in runtime_deps %}
25 <tbody>
26 <tr>
27 <td>
28 <a href="{% url 'package_included_detail' build.id target.id runtime_dep.depends_on_id %}">
29 {{runtime_dep.name}}
30 </a>
31 </td>
32 <td>{{runtime_dep.version}}</td>
33 <td>{{runtime_dep.size|filtered_filesizeformat}}</td>
34 </tr>
35 </tbody>
36 {% endfor %}
37 </table>
38 {% else %}
39 <div class="alert alert-info">
40 <strong>{{fullPackageSpec}}</strong> has no runtime dependencies.
41 </div>
42 {% endifnotequal %}
43
44 {% ifnotequal other_deps|length 0 %}
45 <h3>Other runtime relationships</h3>
46 <table class="table table-bordered table-hover">
47 <thead>
48 <tr>
49 <th>Package</th>
50 <th>Version</th>
51 <th>Size</th>
52 <th>
53 <i class="icon-question-sign get-help" title="There are 5 relationship types: recommends, suggests, provides, replaces and conflicts"></i>
54 Relationship type
55 </th>
56 </tr>
57 </thead>
58
59 {% for other_dep in other_deps %}
60 <tbody>
61 {% if other_dep.installed %}
62 <tr>
63 <td>
64 <a href="{% url 'package_included_detail' build.id target.id other_dep.depends_on_id %}">
65 {{other_dep.name}}
66 </a>
67 </td>
68 <td>{{other_dep.version}}</td>
69 <td>{{other_dep.size|filtered_filesizeformat}}</td>
70 <td>
71 {{other_dep.dep_type_display}}
72 <i class="icon-question-sign get-help hover-help" title="{{other_dep.dep_type_help}}" ></i>
73 </td>
74 </tr>
75 {% else %}
76 <tr class="muted">
77 <td>{{other_dep.name}}</td>
78 <td>{{other_dep.version}}</td>
79 <td></td>
80 <td>
81 {{other_dep.dep_type_display}}
82 <i class="icon-question-sign get-help hover-help" title="{{other_dep.dep_type_help}}" ></i>
83 </td>
84 </tr>
85 {% endif %}
86 </tbody>
87 {% endfor %}
88 </table>
89 {% endifnotequal %}
90 </div> <!-- end tab-pane -->
91 </div> <!-- end tab content -->
92 {% endwith %}
93{% endblock tabcontent %}