diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2018-04-18 16:11:51 +1200 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2018-05-04 23:57:53 +1200 |
commit | e071ebab294778a9197811b921ec458a61be7e7d (patch) | |
tree | 01a64537c96238a7260c91ff62181022be945f49 /templates | |
parent | 369b03c6dbd5d45b25075010e809b92207b08d54 (diff) | |
download | openembedded-core-contrib-e071ebab294778a9197811b921ec458a61be7e7d.tar.gz |
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 <paul.eggleton@linux.intel.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/rrs/recipedetail.html | 8 | ||||
-rw-r--r-- | templates/rrs/recipes.html | 6 |
2 files changed, 13 insertions, 1 deletions
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 @@ <li class="lead">Upstream version: <span>{{ upstream_version }}</span></li> {% endif %} <li class="divider-vertical"></li> - <li class="lead">Maintainer: <span><a href="{% url 'rrs_recipes' maintplan_name release_name milestone_name %}?maintainer_name={{ maintainer_name|urlencode }}">{{ maintainer_name }}</a></span></li> + <li class="lead">Maintainer: + {% if maintplan.per_recipe_maintainers %} + <span><a href="{% url 'rrs_recipes' maintplan_name release_name milestone_name %}?maintainer_name={{ maintainer_name|urlencode }}">{{ maintainer_name }}</a></span> + {% else %} + <span>{% for maintainer in recipe.layerbranch.active_maintainers %}{{ maintainer.name }}{% if not forloop.last %}, {% endif %}{% endfor %}</span> + {% endif %} + </li> <li class="divider-vertical"></li> </ul> </div> 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 %} </ul> </li> + {% if maintplan.per_recipe_maintainers %} <li><p>and</p></li> <li class="dropdown"> <a data-toggle="dropdown" href="#" class="dropdown-toggle" id="selected-maintainer"> @@ -56,6 +57,7 @@ {% endfor %} </ul> </li> + {% endif %} </ul> <form id="form-search" class="pull-right input-append"> @@ -80,7 +82,9 @@ <th class="upstream_status_column span2">Upstream status</th> <th class="last_updated_column">Last Updated</th> <th class="patches_column">Patches</th> + {% if maintplan.per_recipe_maintainers %} <th class="maintainer_column">Maintainer</th> + {% endif %} <th class="summary_column muted span5">Summary</th> <th class="no_update_reason_column muted span5" style="display:none">No update reason</th> </tr> @@ -104,7 +108,9 @@ </td> <td class="last_updated_column">{{r.outdated}}</td> <td class="patches_column">{% if r.patches_total %}<span {% if not r.patches_pending %}class="muted"{% endif %}>{{ r.patches_pending }}<span class="muted"> / {{ r.patches_total }}</span>{% endif %}</td> + {% if maintplan.per_recipe_maintainers %} <td class="maintainer_column">{{ r.maintainer_name }}</td> + {% endif %} <td class="summary_column">{{ r.summary }}</td> <td class="no_update_reason_column" style="display:none">{{ r.no_update_reason }}</td> </tr> |