]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: update build configuration page
authorSujith H <sujith.h@gmail.com>
Mon, 1 Aug 2016 07:25:15 +0000 (07:25 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 10 Aug 2016 23:08:18 +0000 (00:08 +0100)
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@gmail.com>
lib/toaster/toastergui/templates/configuration.html

index 1d0ec3f484b941511cd6ec07d17c619c75893722..58989f865c6896722312d7b22ba5ef20585e1fc3 100644 (file)
           <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>