From e071ebab294778a9197811b921ec458a61be7e7d Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Wed, 18 Apr 2018 16:11:51 +1200 Subject: rrs: add flag to MaintenancePlan to specify layer-wide maintainers Most layers do not track maintenance on a per-recipe basis, and for those layers we will hide some of the per-recipe maintainer features and on the recipe detail show the layer maintainer(s) as the maintainer(s) of the recipe. Signed-off-by: Paul Eggleton --- templates/rrs/recipedetail.html | 8 +++++++- templates/rrs/recipes.html | 6 ++++++ 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/rrs/recipedetail.html b/templates/rrs/recipedetail.html index e79852ce56..e6f51d0725 100644 --- a/templates/rrs/recipedetail.html +++ b/templates/rrs/recipedetail.html @@ -53,7 +53,13 @@
  • Upstream version: {{ upstream_version }}
  • {% endif %}
  • -
  • Maintainer: {{ maintainer_name }}
  • +
  • Maintainer: + {% if maintplan.per_recipe_maintainers %} + {{ maintainer_name }} + {% else %} + {% for maintainer in recipe.layerbranch.active_maintainers %}{{ maintainer.name }}{% if not forloop.last %}, {% endif %}{% endfor %} + {% endif %} +
  • diff --git a/templates/rrs/recipes.html b/templates/rrs/recipes.html index 30db1bf32e..af3c08d6e0 100644 --- a/templates/rrs/recipes.html +++ b/templates/rrs/recipes.html @@ -40,6 +40,7 @@ {% endfor %} + {% if maintplan.per_recipe_maintainers %}
  • and

  • + {% endif %}