diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/target.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/target.html | 153 |
1 files changed, 149 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/target.html b/bitbake/lib/toaster/toastergui/templates/target.html index f2d0ad461b..45128986e1 100644 --- a/bitbake/lib/toaster/toastergui/templates/target.html +++ b/bitbake/lib/toaster/toastergui/templates/target.html | |||
@@ -1,8 +1,153 @@ | |||
1 | {% extends "basebuildpage.html" %} | 1 | {% extends "basebuildpage.html" %} |
2 | |||
3 | {% block localbreadcrumb %} | 2 | {% block localbreadcrumb %} |
4 | <li>Target</li> | 3 | <li>{{target.target}}</li> |
5 | {% endblock %} | 4 | {% endblock localbreadcrumb%} |
5 | |||
6 | {% load projecttags %} | ||
6 | 7 | ||
7 | {% block buildinfomain %} | 8 | {% block buildinfomain %} |
8 | {% endblock %} | 9 | |
10 | <div class="row-fluid span10"> | ||
11 | <div class="page-header"> | ||
12 | <h1> | ||
13 | {% if request.GET.search and objects.paginator.count > 0 %} | ||
14 | {{objects.paginator.count}} package{{objects.paginator.count|pluralize}} found | ||
15 | {% elif request.GET.search and objects.paginator.count == 0 %} | ||
16 | No packages found | ||
17 | {% else %} | ||
18 | {{target.target}} | ||
19 | {% endif %} | ||
20 | </h1> | ||
21 | </div> | ||
22 | </div> | ||
23 | |||
24 | <div class="row-fluid pull-right span10" id="navTab"> | ||
25 | <ul class="nav nav-pills"> | ||
26 | <li class="active"> | ||
27 | <a href="#target"> | ||
28 | <i class="icon-question-sign get-help" data-toggle="tooltip" title="Of all the packages built, the subset installed in the root file system of this image"></i> | ||
29 | Packages included ({{target.package_count}} - {{packages_sum|filtered_filesizeformat}}) | ||
30 | </a> | ||
31 | </li> | ||
32 | <li> | ||
33 | <a href="{% url 'dirinfo' build.id target.id %}"> | ||
34 | <i class="icon-question-sign get-help" data-toggle="tooltip" title="The directories and files in the root file system of this image"></i> | ||
35 | Directory structure | ||
36 | </a> | ||
37 | </li> | ||
38 | </ul> | ||
39 | |||
40 | <div id="image-packages" class="tab-pane"> | ||
41 | |||
42 | {% if objects.paginator.count == 0 %} | ||
43 | <div class="row-fluid"> | ||
44 | <div class="alert"> | ||
45 | <form class="no-results input-append" id="searchform"> | ||
46 | <input id="search" name="search" class="input-xxlarge" type="text" value="{{request.GET.search}}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="add-on btn" tabindex="-1"><i class="icon-remove"></i></a>{% endif %} | ||
47 | <button class="btn" type="submit" value="Search">Search</button> | ||
48 | <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all packages</button> | ||
49 | </form> | ||
50 | </div> | ||
51 | </div> | ||
52 | |||
53 | |||
54 | {% else %} | ||
55 | {% include "basetable_top.html" %} | ||
56 | {% for package in objects %} | ||
57 | <tr> | ||
58 | <td class="package_name"> | ||
59 | <a href="{% url 'package_included_detail' build.id target.id package.id %}"> | ||
60 | {{package.name}} | ||
61 | </a> | ||
62 | {% if package.installed_name and package.name != package.installed_name %} | ||
63 | <span class="muted"> as {{package.installed_name}}</span> | ||
64 | <i class="icon-question-sign get-help hover-help" title='{{package.name|add:" was renamed at packaging time and was installed in your image as "|add:package.installed_name}}'></i> | ||
65 | {% endif %} | ||
66 | </td> | ||
67 | <td class="package_version"> | ||
68 | <a href="{% url 'package_included_detail' build.id target.id package.id %}"> | ||
69 | {{package.version|filtered_packageversion:package.revision}} | ||
70 | </a> | ||
71 | </td> | ||
72 | <td class="package_size"> | ||
73 | {{package.size|filtered_installedsize:package.installed_size|filtered_filesizeformat}} | ||
74 | </td> | ||
75 | <td class="size_over_total"> | ||
76 | {{package|filter_sizeovertotal:packages_sum}} | ||
77 | </td> | ||
78 | <td class="license"> | ||
79 | {{package.license}} | ||
80 | </td> | ||
81 | <td class="depends"> | ||
82 | {% with deps=package|runtime_dependencies:target.id %} | ||
83 | {% with deps_count=deps|length %} | ||
84 | {% if deps_count > 0 %} | ||
85 | <a class="btn" | ||
86 | title="<a href='{% url "package_included_dependencies" build.id target.id package.id %}'>{{package.name}}</a> depends on" | ||
87 | data-content="<ul class='unstyled'> | ||
88 | {% for i in deps|dictsort:'depends_on.name' %} | ||
89 | <li><a href='{% url "package_included_dependencies" build.pk target.id i.depends_on.pk %}'>{{i.depends_on.name}}</a></li> | ||
90 | {% endfor %} | ||
91 | </ul>"> | ||
92 | {{deps_count}} | ||
93 | </a> | ||
94 | {% endif %} | ||
95 | {% endwith %} | ||
96 | {% endwith %} | ||
97 | </td> | ||
98 | <td class="brought_in_by"> | ||
99 | {% with rdeps=package|reverse_runtime_dependencies:target.id %} | ||
100 | {% with rdeps_count=rdeps|length %} | ||
101 | {% if rdeps_count > 0 %} | ||
102 | <a class="btn" | ||
103 | title="<a href='{% url "package_included_reverse_dependencies" build.id target.id package.id %}'>{{package.name}}</a> is brought in by" | ||
104 | data-content="<ul class='unstyled'> | ||
105 | {% for i in rdeps|dictsort:'package.name' %} | ||
106 | <li><a href='{% url "package_included_dependencies" build.id target.id i.package.id %}'>{{i.package.name}}</a></li> | ||
107 | {% endfor %} | ||
108 | </ul>"> | ||
109 | {{rdeps_count}} | ||
110 | </a> | ||
111 | {% endif %} | ||
112 | {% endwith %} | ||
113 | {% endwith %} | ||
114 | </td> | ||
115 | <td class="recipe_name"> | ||
116 | {% if package.recipe.version %} | ||
117 | <a href="{% url 'recipe' build.id package.recipe_id %}"> | ||
118 | {{ package.recipe.name }} | ||
119 | </a> | ||
120 | {% endif %} | ||
121 | </td> | ||
122 | <td class="recipe_version"> | ||
123 | {% if package.recipe.version %} | ||
124 | <a href="{% url 'recipe' build.id package.recipe_id %}"> | ||
125 | {{ package.recipe.version }} | ||
126 | </a> | ||
127 | {% endif %} | ||
128 | </td> | ||
129 | <td class="layer_name"> | ||
130 | {{ package.recipe.layer_version.layer.name }} | ||
131 | </td> | ||
132 | <td class="layer_branch"> | ||
133 | {{ package.recipe.layer_version.branch}} | ||
134 | </td> | ||
135 | <td class="layer_commit"> | ||
136 | <a class="btn" | ||
137 | data-content="<ul class='unstyled'> | ||
138 | <li>{{package.recipe.layer_version.commit}}</li> | ||
139 | </ul>"> | ||
140 | {{package.recipe.layer_version.commit|truncatechars:13}} | ||
141 | </a> | ||
142 | </td> | ||
143 | <td class="layer_directory"> | ||
144 | {{ package.recipe.layer_version.layer.local_path }} | ||
145 | </td> | ||
146 | </tr> | ||
147 | {% endfor %} | ||
148 | |||
149 | {% include "basetable_bottom.html" %} | ||
150 | {% endif %} | ||
151 | </div> <!-- tabpane --> | ||
152 | </div> <!--span 10--> | ||
153 | {% endblock buildinfomain %} | ||