summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/recipe.html
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/recipe.html')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/recipe.html275
1 files changed, 275 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/recipe.html b/bitbake/lib/toaster/toastergui/templates/recipe.html
new file mode 100644
index 0000000000..a830ba9fb8
--- /dev/null
+++ b/bitbake/lib/toaster/toastergui/templates/recipe.html
@@ -0,0 +1,275 @@
1{% extends "basebuilddetailpage.html" %}
2
3{% load projecttags %}
4
5{% block localbreadcrumb %}
6<li><a href="{% url 'recipes' build.pk %}">Recipes</a></li>
7<li>{{object.name}}_{{object.version}} </li>
8{% endblock %}
9
10{% block pagedetailinfomain %}
11
12<!-- Begin container -->
13
14<div class="row span11">
15 <div class="page-header">
16 <h1>{{object.name}}_{{object.version}}</h1>
17 </div>
18</div>
19
20<div class="row span7 tabbable">
21 <ul class="nav nav-pills">
22 <li class="active">
23 <a href="#information" data-toggle="tab">
24 <i class="icon-question-sign get-help" title="Build-related information about the recipe"></i>
25 Recipe details
26 </a>
27 </li>
28 <li>
29 <a href="#packages-built" data-toggle="tab">
30 <i class="icon-question-sign get-help" title="The packaged output resulting from building the recipe"></i>
31 Packages ({{packages.count}})
32 </a>
33 </li>
34 <li>
35 <a href="#dependencies" data-toggle="tab">
36 <i class="icon-question-sign get-help" title="The recipe build-time dependencies (i.e. other recipes)"></i>
37 Build dependencies ({{object.r_dependencies_recipe.all.count}})
38 </a>
39 </li>
40 <li>
41 <a href="#brought-in-by" data-toggle="tab">
42 <i class="icon-question-sign get-help" title="The recipe build-time reverse dependencies (i.e. the recipes that depend on this recipe)"></i>
43 Reverse build dependencies ({{object.r_dependencies_depends.all.count}})
44 </a>
45 </li>
46 </ul>
47 <div class="tab-content">
48 <div class="tab-pane active" id="information" name="information">
49 <dl class="dl-horizontal">
50 <dt>
51 <i class="icon-question-sign get-help" title="The name of the layer providing the recipe"></i>
52 Layer
53 </dt>
54 <dd>{{layer.name}}</dd>
55 <dt>
56 <i class="icon-question-sign get-help" title="Path to the layer providing the recipe"></i>
57 Layer directory
58 </dt>
59 <dd><code>{{layer.local_path}}</code></dd>
60 <dt>
61 <i class="icon-question-sign get-help" title="Path to the recipe .bb file"></i>
62 Recipe file
63 </dt>
64 <dd><code>{{object.file_path}}</code></dd>
65 {% if layer_version.branch %}
66 <dt>
67 <i class="icon-question-sign get-help" title="The Git branch of the layer providing the recipe"></i>
68 Layer branch
69 </dt>
70 <dd>{{layer_version.branch}}</dd>
71 {% endif %}
72 <dt>
73 <i class="icon-question-sign get-help" title="The Git commit of the layer providing the recipe"></i>
74 Layer commit
75 </dt>
76 <dd class="iscommit">{{layer_version.commit}}</dd>
77 </dl>
78
79 <h2 class="details">Tasks</h2>
80 {% if not tasks %}
81 <div class="alert alert-info">
82 <strong>{{object.name}}_{{object.version}}</strong> does not have any tasks in this build.
83 </div>
84 {% else %}
85 <table class="table table-bordered table-hover">
86 <thead>
87 <th>
88 <i class="icon-question-sign get-help" title="The running sequence of each task in the build"></i>
89 Order
90 </th>
91 <th>
92 <i class="icon-question-sign get-help" title="The name of the task"></i>
93 Task
94 </th>
95 <th>
96 <i class="icon-question-sign get-help" title="This value tells you if a task had to run (executed) in order to generate the task output, or if the output was provided by another task and therefore the task didn't need to run (not executed)"></i>
97 Executed
98 </th>
99 <th>
100 <i class="icon-question-sign get-help" title="This column tells you if 'executed' tasks succeeded or failed. The column also tells you why 'not executed' tasks did not need to run"></i>
101 Outcome
102 </th>
103 <th>
104 <i class="icon-question-sign get-help" title="This column tells you if a task tried to restore output from the <code>sstate-cache</code> directory or mirrors, and reports the result: Succeeded, Failed or File not in cache"></i>
105 Cache attempt
106 </th>
107 </thead>
108 <tbody>
109
110 {% for task in tasks %}
111
112 <tr {{ task|task_color }} >
113
114 <td><a {{ task|task_color }} href="{% url "task" build.pk task.pk %}">{{task.order}}</a></td>
115 <td>
116 <a {{ task|task_color }} href="{% url "task" build.pk task.pk %}">{{task.task_name}}</a>
117 {% if task.get_description %}<i class="icon-question-sign get-help hover-help" title="" data-original-title="{{task.get_description}}"></i> {% endif %}
118 </td>
119
120 <td><a {{ task|task_color }} href="{% url "task" build.pk task.pk %}">{{task.get_executed_display}}</a></td>
121
122 <td>
123 <a {{ task|task_color }} href="{% url "task" build.pk task.pk %}">{{task.get_outcome_display}} </a>
124 <i class="icon-question-sign get-help hover-help" title="{{task.get_outcome_help}}"></i>
125 </td>
126 <td>
127 {% ifnotequal task.sstate_result task.SSTATE_NA %}
128 <a {{ task|task_color }} href="{% url "task" build.pk task.pk %}">{{task.get_sstate_result_display}}</a>
129 {% endifnotequal %}
130 </td>
131
132 </tr>
133
134 {% endfor %}
135 </tbody>
136 </table>
137 {% endif %}
138 </div>
139 <div class="tab-pane" id="packages-built" name="packages-built">
140 {% if not packages %}
141 <div class="alert alert-info">
142 <strong>{{object.name}}_{{object.version}}</strong> does not build any packages.
143 </div>
144 {% else %}
145 <table class="table table-bordered table-hover" style="margin-top:10px;">
146 <thead>
147 <tr>
148 <th>
149 Package
150 </th>
151 <th>
152 Version
153 </th>
154 <th class="sizecol span2">
155 Size
156 </th>
157 </tr>
158 </thead>
159 <tbody>
160
161 {% for package in packages|dictsort:"name" %}
162
163 <tr>
164 <td><a href="{% url "package_built_detail" build.pk package.pk %}">{{package.name}}</a></td>
165 <td><a href="{% url "package_built_detail" build.pk package.pk %}">{{package.version}}_{{package.revision}}</a></td>
166 <td class="sizecol"><a href="{% url "package_built_detail" build.pk package.pk %}">{{package.size|filtered_filesizeformat}}</a></td>
167 </tr>
168
169 {% endfor %}
170
171 </tbody>
172 </table>
173 {% endif %}
174 </div>
175 <div class="tab-pane" id="dependencies" name="dependencies">
176
177 {% if not object.r_dependencies_recipe.all %}
178 <div class="alert alert-info">
179 <strong>{{object.name}}_{{object.version}}</strong> has no build dependencies.
180 </div>
181 {% else %}
182 <table class="table table-bordered table-hover">
183 <thead>
184 <tr>
185 <th>
186 Recipe
187 </th>
188 <th>
189 Version
190 </th>
191 </tr>
192 </thead>
193 <tbody>
194
195 {% for rr in object.r_dependencies_recipe.all|dictsort:"depends_on.name" %}
196 <tr>
197 <td><a href="{% url "recipe" build.pk rr.depends_on.pk %}">{{rr.depends_on.name}}</a></td>
198 <td><a href="{% url "recipe" build.pk rr.depends_on.pk %}">{{rr.depends_on.version}}</a></td>
199 </tr>
200 {% endfor %}
201
202 </tbody>
203 </table>
204 {% endif %}
205
206 </div>
207 <div class="tab-pane" id="brought-in-by" name="brought-in-by">
208
209 {% if not object.r_dependencies_depends.all %}
210 <div class="alert alert-info">
211 <strong>{{object.name}}_{{object.version}}</strong> has no reverse build dependencies.
212 </div>
213 {% else %}
214 <table class="table table-bordered table-hover">
215 <thead>
216 <tr>
217 <th>
218 Recipe
219 </th>
220 <th>
221 Version
222 </th>
223 </tr>
224 </thead>
225 <tbody>
226
227 {% for rr in object.r_dependencies_depends.all|dictsort:"recipe.name" %}
228 <tr>
229 <td><a href="{% url "recipe" build.pk rr.recipe.pk %}">{{rr.recipe.name}}</a></td>
230 <td><a href="{% url "recipe" build.pk rr.recipe.pk %}">{{rr.recipe.version}}</a></td>
231 </tr>
232 {% endfor %}
233
234 </tbody>
235 </table>
236 {% endif %}
237
238 </div>
239 </div>
240</div>
241
242<div class="row span4 well">
243 <h2>About {{object.name}}</h2>
244 <dl>
245 {% if object.summary %}
246 <dt>Summary</dt>
247 <dd><p>{{object.summary}}</p></dd>
248 {% endif %}
249 {% if object.description %}
250 <dt>Description</dt>
251 <dd><p>{{object.description}}</dd>
252 {% endif %}
253 {% if object.homepage %}
254 <dt>Homepage</dt>
255 <dd><a href="{{object.homepage}}">{{object.homepage}}</a></dd>
256 {% endif %}
257 {% if object.bugtracker %}
258 <dt>Bugtracker</dt>
259 <dd><a href="{{object.bugtracker}}">{{object.bugtracker}}</a></dd>
260 {% endif %}
261 {% if object.section %}
262 <dt>
263 Section
264 <i class="icon-question-sign get-help" title="The section in which recipes should be categorized"></i>
265 </dt>
266 <dd>{{object.section}}</dd>
267 {% endif %}
268 {% if object.license %}
269 <dt>License</dt>
270 <dd>{{object.license}}</dd>
271 {% endif %}
272 </dl>
273</div>
274
275{% endblock %}