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