[Toaster] [PATCH 4/4] toaser: Add a urls to the layer table in the build configuration

Michael Wood michael.g.wood at intel.com
Fri Sep 18 12:05:07 PDT 2015


Allow you click through to the layer details page of a layer that has just
been used in a build.
Also rename 'layer branch' to layer revision for clarity.

Signed-off-by: Michael Wood <michael.g.wood at intel.com>
---
 bitbake/lib/toaster/toastergui/templates/configuration.html | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bitbake/lib/toaster/toastergui/templates/configuration.html b/bitbake/lib/toaster/toastergui/templates/configuration.html
index 3e48991..6239e99 100644
--- a/bitbake/lib/toaster/toastergui/templates/configuration.html
+++ b/bitbake/lib/toaster/toastergui/templates/configuration.html
@@ -48,14 +48,14 @@
       <thead>
         <tr>
           <th>Layer</th>
-          <th>Layer branch</th>
+          <th>Layer revision</th>
           <th>Layer commit</th>
         </tr>
       </thead>
       <tbody>{% for lv in build.layer_version_build.all|dictsort:"layer.name" %}
         <tr>
-            <td>{{lv.layer.name}}</td>
-            <td>{{lv.branch}}</td>
+          <td><a href="{% url 'layerdetails' build.project.pk lv.pk %}">{{lv.layer.name}}</a></td>
+          <td>{{lv.get_vcs_reference}}</td>
             <td> <a class="btn" data-content="<ul class='unstyled'>
                 <li>{{lv.commit}}</li> </ul>">
                     {{lv.commit|truncatechars:13}}
-- 
2.1.4



More information about the toaster mailing list