[bitbake-devel] [PATCH 03/12] toaster: layerdetails Add link to machines file

Alex DAMIAN alexandru.damian at intel.com
Tue Feb 24 17:20:51 UTC 2015


From: Michael Wood <michael.g.wood at intel.com>

In the machines table for a layer add a link/icon to the machine
definition file.

[YOCTO #7241]

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

diff --git a/lib/toaster/toastergui/templates/layerdetails.html b/lib/toaster/toastergui/templates/layerdetails.html
index 6c803ff..49c62c6 100644
--- a/lib/toaster/toastergui/templates/layerdetails.html
+++ b/lib/toaster/toastergui/templates/layerdetails.html
@@ -396,7 +396,12 @@
                     <tbody>
                       {% for machine in machines %}
                       <tr>
-                        <td>{{machine.name}}</td>
+                        <td>
+                          {{machine.name}}
+                          {% if machine.get_vcs_machine_file_link_url %}
+                          <a href="{{machine.get_vcs_machine_file_link_url}}" target="_blank"><i class="icon-share get-info"></i></a>
+                          {% endif %}
+                        </td>
                         <td>{{machine.description}}</td>
                         <td><button class="btn btn-block select-machine-btn" data-machine-name="{{machine.name}}" {% if layer_in_project == 0 %}disabled="disabled"{% endif %}}>Select machine</button></td>
                       </tr>
-- 
1.9.1




More information about the bitbake-devel mailing list