blob: 1d6d64e3c7b95c7eb46549f14960abeee4a5c4e7 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001{% extends "basebuilddetailpage.html" %}
2
3{% load projecttags %}
4
Patrick Williamsf1e5d692016-03-30 15:21:19 -05005{% block title %} {{object.name}}_{{object.version}} - {{build.target_set.all|dictsort:"target"|join:", "}} {{build.machine}} - {{build.project.name}} - Toaster {% endblock %}
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006{% block localbreadcrumb %}
7<li><a href="{% url 'recipes' build.pk %}">Recipes</a></li>
8<li>{{object.name}}_{{object.version}} </li>
9{% endblock %}
10
11{% block pagedetailinfomain %}
12
13<!-- Begin container -->
14
15<div class="row span11">
16 <div class="page-header">
17 <h1>{{object.name}}_{{object.version}}</h1>
18 </div>
19</div>
20
21<div class="row span7 tabbable">
22 <ul class="nav nav-pills">
23 <li class="{{tab_states.1}}">
24 <a href="#information" data-toggle="tab">
25 <i class="icon-question-sign get-help" title="Build-related information about the recipe"></i>
26 Recipe details
27 </a>
28 </li>
29 <li>
30 <a href="{% url "recipe_packages" build.pk object.id %}">
31 <i class="icon-question-sign get-help" title="The packaged output resulting from building the recipe"></i>
32 Packages ({{package_count}})
33 </a>
34 </li>
35 <li class="{{tab_states.3}}">
36 <a href="#dependencies" data-toggle="tab">
37 <i class="icon-question-sign get-help" title="The recipe build-time dependencies (i.e. other recipes)"></i>
38 Build dependencies ({{object.r_dependencies_recipe.all.count}})
39 </a>
40 </li>
41 <li class="{{tab_states.4}}">
42 <a href="#brought-in-by" data-toggle="tab">
43 <i class="icon-question-sign get-help" title="The recipe build-time reverse dependencies (i.e. the recipes that depend on this recipe)"></i>
44 Reverse build dependencies ({{object.r_dependencies_depends.all.count}})
45 </a>
46 </li>
47 </ul>
48 <div class="tab-content">
49 <div class="tab-pane {{tab_states.1}}" id="information">
50 <dl class="dl-horizontal">
51 <dt>
52 <i class="icon-question-sign get-help" title="The name of the layer providing the recipe"></i>
53 Layer
54 </dt>
55 <dd>{{layer.name}}</dd>
56
57 <dt>
58 <i class="icon-question-sign get-help" title="Path to the recipe .bb file"></i>
59 Recipe file
60 </dt>
61 <dd><code>{{object.file_path}} {% if object.pathflags %}<i>({{object.pathflags}})</i>{% endif %}</code></dd>
62 {% if layer_version.branch %}
63 <dt>
64 <i class="icon-question-sign get-help" title="The Git branch of the layer providing the recipe"></i>
65 Layer branch
66 </dt>
67 <dd>{{layer_version.branch}}</dd>
68 {% endif %}
69 <dt>
70 <i class="icon-question-sign get-help" title="The Git commit of the layer providing the recipe"></i>
71 Layer commit
72 </dt>
73 <dd class="iscommit">{{layer_version.commit}}</dd>
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050074 {% if object.provides_set.all %}
75 <dt>
76 <i class="icon-question-sign get-help"
77 title="A list of aliases by which a particular recipe can be known. The additional aliases are
78 synonyms for the recipe and can be useful satisfying dependencies of other recipes during
79 the build"></i>
80 PROVIDES
81 </dt>
82 <dd><code>{% for provider in object.provides_set.all %}{{ provider.name }}&nbsp;{% endfor %}</code></dd>
83 {% endif %}
Patrick Williamsc124f4f2015-09-15 14:41:29 -050084 </dl>
85
86 <h2 class="details">Tasks</h2>
87 {% if not tasks %}
88 <div class="alert alert-info">
89 <strong>{{object.name}}_{{object.version}}</strong> does not have any tasks in this build.
90 </div>
91 {% else %}
92 <table class="table table-bordered table-hover">
93 <thead>
94 <tr>
95 <th>
96 <i class="icon-question-sign get-help" title="The running sequence of each task in the build"></i>
97 Order
98 </th>
99 <th>
100 <i class="icon-question-sign get-help" title="The name of the task"></i>
101 Task
102 </th>
103 <th>
104 <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>
105 Executed
106 </th>
107 <th>
108 <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>
109 Outcome
110 </th>
111 <th>
112 <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>
113 Cache attempt
114 </th>
115 </tr>
116 </thead>
117 <tbody>
118
119 {% for task in tasks %}
120
121 <tr {{ task|task_color }} >
122
123 <td><a {{ task|task_color }} href="{% url "task" build.pk task.pk %}">{{task.order}}</a></td>
124 <td>
125 <a {{ task|task_color }} href="{% url "task" build.pk task.pk %}">{{task.task_name}}</a>
126 {% if task.get_description %}<i class="icon-question-sign get-help hover-help" title="" data-original-title="{{task.get_description}}"></i> {% endif %}
127 </td>
128
129 <td><a {{ task|task_color }} href="{% url "task" build.pk task.pk %}">{{task.get_executed_display}}</a></td>
130
131 <td>
132 <a {{ task|task_color }} href="{% url "task" build.pk task.pk %}">{{task.get_outcome_display}} </a>
133 {% if task.outcome = task.OUTCOME_FAILED %}
134 <a href="{% url 'build_artifact' build.pk "tasklogfile" task.pk %}">
135 <i class="icon-download-alt" title="Download task log file"></i>
136 </a>
137 {% endif %}
138 <i class="icon-question-sign get-help hover-help" title="{{task.get_outcome_help}}"></i>
139 </td>
140 <td>
141 {% ifnotequal task.sstate_result task.SSTATE_NA %}
142 <a {{ task|task_color }} href="{% url "task" build.pk task.pk %}">{{task.get_sstate_result_display}}</a>
143 {% endifnotequal %}
144 </td>
145
146 </tr>
147
148 {% endfor %}
149 </tbody>
150 </table>
151 {% endif %}
152 </div>
153 <div class="tab-pane {{tab_states.3}}" id="dependencies">
154
155 {% if not object.r_dependencies_recipe.all %}
156 <div class="alert alert-info">
157 <strong>{{object.name}}_{{object.version}}</strong> has no build dependencies.
158 </div>
159 {% else %}
160 <table class="table table-bordered table-hover">
161 <thead>
162 <tr>
163 <th>
164 Recipe
165 </th>
166 <th>
167 Version
168 </th>
169 </tr>
170 </thead>
171 <tbody>
172
173 {% for rr in object.r_dependencies_recipe.all|dictsort:"depends_on.name" %}
174 <tr>
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500175 <td><a href="{% url "recipe" build.pk rr.depends_on.pk %}">{{rr.depends_on.name}}</a>
176 {% if rr.via %}
177 <span class="muted">satisfied via {{rr.via.name}}</span>
178 <i class="icon-question-sign get-help hover-help"
179 title="This dependency is satisfied by the PROVIDES value
180 {{rr.via.name}} in the {{rr.depends_on.name}} recipe"></i>
181 {% endif %}
182 </td>
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500183 <td><a href="{% url "recipe" build.pk rr.depends_on.pk %}">{{rr.depends_on.version}}</a></td>
184 </tr>
185 {% endfor %}
186
187 </tbody>
188 </table>
189 {% endif %}
190
191 </div>
192 <div class="tab-pane {{tab_states.4}}" id="brought-in-by">
193
194 {% if not object.r_dependencies_depends.all %}
195 <div class="alert alert-info">
196 <strong>{{object.name}}_{{object.version}}</strong> has no reverse build dependencies.
197 </div>
198 {% else %}
199 <table class="table table-bordered table-hover">
200 <thead>
201 <tr>
202 <th>
203 Recipe
204 </th>
205 <th>
206 Version
207 </th>
208 </tr>
209 </thead>
210 <tbody>
211
212 {% for rr in object.r_dependencies_depends.all|dictsort:"recipe.name" %}
213 <tr>
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500214 <td><a href="{% url "recipe" build.pk rr.recipe.pk %}">{{rr.recipe.name}}</a>
215 {% if rr.via %}
216 <span class="muted"> satisfied via {{rr.via.name}}</span>
217 <i class="icon-question-sign get-help hover-help"
218 title="This dependency is satisfied by the PROVIDES value
219 {{rr.via.name}} in the {{rr.depends_on.name}} recipe"></i>
220 {% endif %}
221 </td>
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500222 <td><a href="{% url "recipe" build.pk rr.recipe.pk %}">{{rr.recipe.version}}</a></td>
223 </tr>
224 {% endfor %}
225
226 </tbody>
227 </table>
228 {% endif %}
229
230 </div>
231 </div>
232</div>
233
234<div class="row span4 well">
235 <h2>About {{object.name}}</h2>
236 <dl class="item-info">
237 {% if object.summary %}
238 <dt>Summary</dt>
239 <dd>{{object.summary}}</dd>
240 {% endif %}
241 {% if object.description %}
242 <dt>Description</dt>
243 <dd>{{object.description}}</dd>
244 {% endif %}
245 {% if object.homepage %}
246 <dt>Homepage</dt>
247 <dd><a href="{{object.homepage}}">{{object.homepage}}</a></dd>
248 {% endif %}
249 {% if object.bugtracker %}
250 <dt>Bugtracker</dt>
251 <dd><a href="{{object.bugtracker}}">{{object.bugtracker}}</a></dd>
252 {% endif %}
253 {% if object.section %}
254 <dt>
255 Section
256 <i class="icon-question-sign get-help" title="The section in which recipes should be categorized"></i>
257 </dt>
258 <dd>{{object.section}}</dd>
259 {% endif %}
260 {% if object.license %}
261 <dt>License</dt>
262 <dd>{{object.license}}</dd>
263 {% endif %}
264 </dl>
265</div>
266
267{% endblock %}