Now that we have different BBClass subtypes, it is handy to have
a UI indication of the different types. Add "badges" to display
"Global" (for 'classes-global' paths) or "Recipe" (for
'classes-recipe' paths).

[YOCTO #15238]

Signed-off-by: Tim Orling <tim.orl...@konsulko.com>
---
 templates/layerindex/classes.html | 5 ++++-
 templates/layerindex/detail.html  | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/templates/layerindex/classes.html 
b/templates/layerindex/classes.html
index bc3d0ac..e99761b 100644
--- a/templates/layerindex/classes.html
+++ b/templates/layerindex/classes.html
@@ -54,7 +54,10 @@
                     <tbody>
                         {% for class in class_list %}
                             <tr>
-                                <td><a href="{{ class.vcs_web_url }}">{{ 
class.name }}</a></td>
+                                <td>
+                                    <a href="{{ class.vcs_web_url }}">{{ 
class.name }}</a>
+                                     <span class="badge badge-info" 
id="id_bbclass_type">{{ class.bbclass_type }}</span>
+                                </td>
                                 <td><a href="{% url 'layer_item' url_branch 
class.layerbranch.layer.name %}">{{ class.layerbranch.layer.name }}</a></td>
                             </tr>
                         {% endfor %}
diff --git a/templates/layerindex/detail.html b/templates/layerindex/detail.html
index 0fa8caf..11c7df7 100644
--- a/templates/layerindex/detail.html
+++ b/templates/layerindex/detail.html
@@ -311,7 +311,10 @@
                         <tbody>
                             {% for class in classes %}
                                 <tr>
-                                    <td><a href="{{ class.vcs_web_url }}">{{ 
class.name }}</a></td>
+                                    <td>
+                                        <a href="{{ class.vcs_web_url }}">{{ 
class.name }}</a>
+                                        <span class="badge badge-info" 
id="id_bbclass_typ">{{ class.bbclass_type }}</span>
+                                    </td>
                                 </tr>
                             {% endfor %}
                         </tbody>
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#62236): https://lists.yoctoproject.org/g/yocto/message/62236
Mute This Topic: https://lists.yoctoproject.org/mt/103903666/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to