diff options
author | Amanda Brindle <amanda.r.brindle@intel.com> | 2017-12-15 13:06:53 -0800 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2017-12-18 09:01:29 +1300 |
commit | 51e83c8d31449eb314a9d7e93545f78de2898d87 (patch) | |
tree | 26ea280d2b70c2267032ec418a75cc288331b151 /templates | |
parent | a64bfed81b3827503ff825090f1fb4b94e1cd9bd (diff) | |
download | openembedded-core-contrib-51e83c8d31449eb314a9d7e93545f78de2898d87.tar.gz |
update_layer.py: Save and show recipe dependencies
Added a model for the PACKAGECONFIG variable, which has a one to
many relationship with the Recipe model.
Added models for static build dependencies and dynamic build
dependencies, both of which have a many to many relationship with
the Recipe model.
These objects are created in update_layer.py and are displayed on the
Recipe detail page.
Added a depends search option for recipes, allowing users to search for
recipes that depend on any particular recipe. Use "depends:recipename"
in the recipe search to activate this.
Fixes [YOCTO #12129]
Fixes [YOCTO #11415]
Signed-off-by: Amanda Brindle <amanda.r.brindle@intel.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/layerindex/recipedetail.html | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/templates/layerindex/recipedetail.html b/templates/layerindex/recipedetail.html index 5b83886d10..4164f11513 100644 --- a/templates/layerindex/recipedetail.html +++ b/templates/layerindex/recipedetail.html @@ -112,6 +112,39 @@ {% endif %} </td> </tr> + <tr> + <th>Dependencies <i class="icon-exclamation-sign" data-toggle="tooltip" title="NOTE: Dependencies may vary based on configuration"></i></th> + <td> + {% if staticdependencies %} + <ul class="unstyled"> + {% for dep in staticdependencies %} + <li> {{dep.name}} </li> + {% endfor %} + </ul> + {% endif %} + {% if packageconfigs %} + <ul class="unstyled"> + {% for pc in packageconfigs %} + {% for dep in pc.dynamicbuilddep_set.all %} + <li> {{dep.name}}<i class="icon-cog" data-toggle="tooltip" title="If "{{pc.feature}}" is set in PACKAGECONFIG"></i></li> + {% endfor %} + {% endfor %} + </ul> + {% endif %} + </td> + </tr> + <tr> + <th>PACKAGECONFIG options</th> + <td> + {% if packageconfigs %} + <ul class="unstyled"> + {% for pc in packageconfigs %} + <li> {{ pc.feature }} </li> + {% endfor %} + </ul> + {% endif %} + </td> + </tr> </tbody> </table> @@ -149,3 +182,11 @@ {% endautoescape %} {% endblock %} + +{% block scripts %} + <script> + $(document).ready(function() { + $('[data-toggle="tooltip"]').tooltip(); + }); + </script> +{% endblock %} |