From 38ec722128dd948370b97191f6681f3d6baf36e6 Mon Sep 17 00:00:00 2001 From: Tim Orling Date: Sat, 20 Jan 2024 10:47:19 -0800 Subject: [PATCH] templates: add bbclasstype badge 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 --- 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 @@ {% for class in class_list %} - {{ class.name }} + + {{ class.name }} + {{ class.bbclass_type }} + {{ class.layerbranch.layer.name }} {% 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 @@ {% for class in classes %} - {{ class.name }} + + {{ class.name }} + {{ class.bbclass_type }} + {% endfor %}