diff options
author | Michael Wood <michael.g.wood@intel.com> | 2016-02-05 12:32:54 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-10 13:29:22 +0000 |
commit | 626941104fd31d4d9d7755d78a8f96989b43d298 (patch) | |
tree | faa188d67995a34fe40d383d35d446aef849029b /bitbake/lib/toaster/toastergui/templates/customrecipe.html | |
parent | 8d5b61e495b1862ee775bc75ff4babb4a62cca6c (diff) | |
download | poky-626941104fd31d4d9d7755d78a8f96989b43d298.tar.gz |
bitbake: toaster: customrecipe page Add last successful build link and conditionals
Add link to the last successful build if there is one and add
conditionals for the ancillary recipe metadata.
(Bitbake rev: 4660aaf1c6775270f8f3d0afbb7fa2ee7a2a1563)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/customrecipe.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/customrecipe.html | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/customrecipe.html b/bitbake/lib/toaster/toastergui/templates/customrecipe.html index 02ca5be1ca..8cce919670 100644 --- a/bitbake/lib/toaster/toastergui/templates/customrecipe.html +++ b/bitbake/lib/toaster/toastergui/templates/customrecipe.html | |||
@@ -161,12 +161,15 @@ | |||
161 | <dd><a href="{% url 'layerdetails' project.id recipe.layer_version.pk %}">{{recipe.layer_version.layer.name}}</a></dd> | 161 | <dd><a href="{% url 'layerdetails' project.id recipe.layer_version.pk %}">{{recipe.layer_version.layer.name}}</a></dd> |
162 | <dt>Based on</dt> | 162 | <dt>Based on</dt> |
163 | <dd><a href="{% url 'recipedetails' project.id recipe.base_recipe.pk %}">{{recipe.base_recipe.name}}</a></dd> | 163 | <dd><a href="{% url 'recipedetails' project.id recipe.base_recipe.pk %}">{{recipe.base_recipe.name}}</a></dd> |
164 | {% if last_build %} | 164 | {% if recipe.get_last_successful_built_target %} |
165 | {% with recipe.get_last_successful_built_target as last_build_target %} | ||
165 | <dt>Last build</dt> | 166 | <dt>Last build</dt> |
166 | <dd> | 167 | <dd> |
167 | <i class="icon-ok-sign success"></i> | 168 | <i class="icon-ok-sign success"></i> |
168 | <a href="{% url 'projectbuilds' project.id%}">{{last_build.completed_on|date:"d/m/y H:i"}}</a> | 169 | <a href="{% url 'builddashboard' last_build_target.build.pk %}"> |
170 | {{last_build_target.build.completed_on|date:"d/m/y H:i"}}</a> | ||
169 | </dd> | 171 | </dd> |
172 | {% endwith %} | ||
170 | {% endif %} | 173 | {% endif %} |
171 | <dt>Recipe file</dt> | 174 | <dt>Recipe file</dt> |
172 | <dd> | 175 | <dd> |
@@ -175,26 +178,32 @@ | |||
175 | </dd> | 178 | </dd> |
176 | <dt>Layer</dt> | 179 | <dt>Layer</dt> |
177 | <dd><a href="{% url 'layerdetails' project.id recipe.layer_version.pk %}">{{recipe.layer_version.layer.name}}</a></dd> | 180 | <dd><a href="{% url 'layerdetails' project.id recipe.layer_version.pk %}">{{recipe.layer_version.layer.name}}</a></dd> |
181 | {% if recipe.summary %} | ||
178 | <dt> | 182 | <dt> |
179 | Summary | 183 | Summary |
180 | </dt> | 184 | </dt> |
181 | <dd> | 185 | <dd> |
182 | {{recipe.summary}} | 186 | {{recipe.summary}} |
183 | </dd> | 187 | </dd> |
188 | {% endif %} | ||
189 | {% if recipe.description %} | ||
184 | <dt> | 190 | <dt> |
185 | Description | 191 | Description |
186 | </dt> | 192 | </dt> |
187 | <dd> | 193 | <dd> |
188 | {{recipe.description}} | 194 | {{recipe.description}} |
189 | </dd> | 195 | </dd> |
196 | {% endif %} | ||
190 | <dt>Version</dt> | 197 | <dt>Version</dt> |
191 | <dd> | 198 | <dd> |
192 | {{recipe.version}} | 199 | {{recipe.version}} |
193 | </dd> | 200 | </dd> |
201 | {% if recipe.section %} | ||
194 | <dt>Section</dt> | 202 | <dt>Section</dt> |
195 | <dd> | 203 | <dd> |
196 | {{recipe.section}} | 204 | {{recipe.section}} |
197 | </dd> | 205 | </dd> |
206 | {% endif %} | ||
198 | <dt>License</dt> | 207 | <dt>License</dt> |
199 | <dd> | 208 | <dd> |
200 | {{recipe.license}} | 209 | {{recipe.license}} |