[oe-commits] [bitbake] 37/40: toaster: update build configuration page

git at git.openembedded.org git at git.openembedded.org
Wed Aug 10 23:12:20 UTC 2016


rpurdie pushed a commit to branch master
in repository bitbake.

commit 4ca3f602a955e01d445fb4789496e925f8d4234b
Author: Sujith H <sujith.h at gmail.com>
AuthorDate: Mon Aug 1 07:25:15 2016 +0000

    toaster: update build configuration page
    
    Update layer branch and layer commit section
    in the build configuration page for locally
    imported layers. For locally imported layers
    this secion goes as "Not applicable".
    
    [YOCO #9911]
    
    Signed-off-by: Sujith H <sujith.h at gmail.com>
---
 lib/toaster/toastergui/templates/configuration.html | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/lib/toaster/toastergui/templates/configuration.html b/lib/toaster/toastergui/templates/configuration.html
index 1d0ec3f..58989f8 100644
--- a/lib/toaster/toastergui/templates/configuration.html
+++ b/lib/toaster/toastergui/templates/configuration.html
@@ -53,11 +53,25 @@
           <tbody>{% for lv in build.layer_version_build.all|dictsort:"layer.name" %}
           <tr>
             <td>{{lv.layer.name}}</td>
+	    {% if lv.layer.local_source_dir %}
+	    <td>
+	      <span class="text-muted">Not applicable</span>
+	      <span class="glyphicon glyphicon-question-sign get-help" data-original-title="" title="The source code of {{lv.layer.name}} is not in a Git repository, so there is no branch associated with it"> </span>
+	    </td>
+	    {% else %}
             <td>{{lv.branch}}</td>
+	    {% endif %}
+	    {% if lv.layer.local_source_dir %}
+	    <td>
+	      <span class="text-muted">Not applicable</span>
+	      <span class="glyphicon glyphicon-question-sign get-help" data-original-title="" title="The source code of {{lv.layer.name}} is not in a Git repository, so there is no commit associated with it"> </span>
+	    </td>
+	    {% else %}
             <td> <a class="btn btn-default" data-content="<ul class='list-unstyled'>
                   <li>{{lv.commit}}</li> </ul>">
                 {{lv.commit|truncatechars:13}}
             </a></td>
+	    {% endif %}
           </tr>{% endfor %}
           </tbody>
         </table>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list