blob: b5e4192d6b807fbedc4445bccd498321da1abc47 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001{% 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="{{tab_states.1}}">
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="{% url "recipe_packages" build.pk object.id %}">
30 <i class="icon-question-sign get-help" title="The packaged output resulting from building the recipe"></i>
31 Packages ({{package_count}})
32 </a>
33 </li>
34 <li class="{{tab_states.3}}">
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 class="{{tab_states.4}}">
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 {{tab_states.1}}" id="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
56 <dt>
57 <i class="icon-question-sign get-help" title="Path to the recipe .bb file"></i>
58 Recipe file
59 </dt>
60 <dd><code>{{object.file_path}} {% if object.pathflags %}<i>({{object.pathflags}})</i>{% endif %}</code></dd>
61 {% if layer_version.branch %}
62 <dt>
63 <i class="icon-question-sign get-help" title="The Git branch of the layer providing the recipe"></i>
64 Layer branch
65 </dt>
66 <dd>{{layer_version.branch}}</dd>
67 {% endif %}
68 <dt>
69 <i class="icon-question-sign get-help" title="The Git commit of the layer providing the recipe"></i>
70 Layer commit
71 </dt>
72 <dd class="iscommit">{{layer_version.commit}}</dd>
73 </dl>
74
75 <h2 class="details">Tasks</h2>
76 {% if not tasks %}
77 <div class="alert alert-info">
78 <strong>{{object.name}}_{{object.version}}</strong> does not have any tasks in this build.
79 </div>
80 {% else %}
81 <table class="table table-bordered table-hover">
82 <thead>
83 <tr>
84 <th>
85 <i class="icon-question-sign get-help" title="The running sequence of each task in the build"></i>
86 Order
87 </th>
88 <th>
89 <i class="icon-question-sign get-help" title="The name of the task"></i>
90 Task
91 </th>
92 <th>
93 <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>
94 Executed
95 </th>
96 <th>
97 <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>
98 Outcome
99 </th>
100 <th>
101 <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>
102 Cache attempt
103 </th>
104 </tr>
105 </thead>
106 <tbody>
107
108 {% for task in tasks %}
109
110 <tr {{ task|task_color }} >
111
112 <td><a {{ task|task_color }} href="{% url "task" build.pk task.pk %}">{{task.order}}</a></td>
113 <td>
114 <a {{ task|task_color }} href="{% url "task" build.pk task.pk %}">{{task.task_name}}</a>
115 {% if task.get_description %}<i class="icon-question-sign get-help hover-help" title="" data-original-title="{{task.get_description}}"></i> {% endif %}
116 </td>
117
118 <td><a {{ task|task_color }} href="{% url "task" build.pk task.pk %}">{{task.get_executed_display}}</a></td>
119
120 <td>
121 <a {{ task|task_color }} href="{% url "task" build.pk task.pk %}">{{task.get_outcome_display}} </a>
122 {% if task.outcome = task.OUTCOME_FAILED %}
123 <a href="{% url 'build_artifact' build.pk "tasklogfile" task.pk %}">
124 <i class="icon-download-alt" title="Download task log file"></i>
125 </a>
126 {% endif %}
127 <i class="icon-question-sign get-help hover-help" title="{{task.get_outcome_help}}"></i>
128 </td>
129 <td>
130 {% ifnotequal task.sstate_result task.SSTATE_NA %}
131 <a {{ task|task_color }} href="{% url "task" build.pk task.pk %}">{{task.get_sstate_result_display}}</a>
132 {% endifnotequal %}
133 </td>
134
135 </tr>
136
137 {% endfor %}
138 </tbody>
139 </table>
140 {% endif %}
141 </div>
142 <div class="tab-pane {{tab_states.3}}" id="dependencies">
143
144 {% if not object.r_dependencies_recipe.all %}
145 <div class="alert alert-info">
146 <strong>{{object.name}}_{{object.version}}</strong> has no build dependencies.
147 </div>
148 {% else %}
149 <table class="table table-bordered table-hover">
150 <thead>
151 <tr>
152 <th>
153 Recipe
154 </th>
155 <th>
156 Version
157 </th>
158 </tr>
159 </thead>
160 <tbody>
161
162 {% for rr in object.r_dependencies_recipe.all|dictsort:"depends_on.name" %}
163 <tr>
164 <td><a href="{% url "recipe" build.pk rr.depends_on.pk %}">{{rr.depends_on.name}}</a></td>
165 <td><a href="{% url "recipe" build.pk rr.depends_on.pk %}">{{rr.depends_on.version}}</a></td>
166 </tr>
167 {% endfor %}
168
169 </tbody>
170 </table>
171 {% endif %}
172
173 </div>
174 <div class="tab-pane {{tab_states.4}}" id="brought-in-by">
175
176 {% if not object.r_dependencies_depends.all %}
177 <div class="alert alert-info">
178 <strong>{{object.name}}_{{object.version}}</strong> has no reverse build dependencies.
179 </div>
180 {% else %}
181 <table class="table table-bordered table-hover">
182 <thead>
183 <tr>
184 <th>
185 Recipe
186 </th>
187 <th>
188 Version
189 </th>
190 </tr>
191 </thead>
192 <tbody>
193
194 {% for rr in object.r_dependencies_depends.all|dictsort:"recipe.name" %}
195 <tr>
196 <td><a href="{% url "recipe" build.pk rr.recipe.pk %}">{{rr.recipe.name}}</a></td>
197 <td><a href="{% url "recipe" build.pk rr.recipe.pk %}">{{rr.recipe.version}}</a></td>
198 </tr>
199 {% endfor %}
200
201 </tbody>
202 </table>
203 {% endif %}
204
205 </div>
206 </div>
207</div>
208
209<div class="row span4 well">
210 <h2>About {{object.name}}</h2>
211 <dl class="item-info">
212 {% if object.summary %}
213 <dt>Summary</dt>
214 <dd>{{object.summary}}</dd>
215 {% endif %}
216 {% if object.description %}
217 <dt>Description</dt>
218 <dd>{{object.description}}</dd>
219 {% endif %}
220 {% if object.homepage %}
221 <dt>Homepage</dt>
222 <dd><a href="{{object.homepage}}">{{object.homepage}}</a></dd>
223 {% endif %}
224 {% if object.bugtracker %}
225 <dt>Bugtracker</dt>
226 <dd><a href="{{object.bugtracker}}">{{object.bugtracker}}</a></dd>
227 {% endif %}
228 {% if object.section %}
229 <dt>
230 Section
231 <i class="icon-question-sign get-help" title="The section in which recipes should be categorized"></i>
232 </dt>
233 <dd>{{object.section}}</dd>
234 {% endif %}
235 {% if object.license %}
236 <dt>License</dt>
237 <dd>{{object.license}}</dd>
238 {% endif %}
239 </dl>
240</div>
241
242{% endblock %}