aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2018-04-09 10:23:13 +1200
committerPaul Eggleton <paul.eggleton@linux.intel.com>2018-05-04 23:57:53 +1200
commit130ff8e8030e038359ad38b379a69d8644096f5e (patch)
tree87516cfceda17846b12864eda40f87307f2a4fae /templates
parent2da4f5d99beb5d106f9a7f43f75d2486f2928417 (diff)
downloadopenembedded-core-contrib-130ff8e8030e038359ad38b379a69d8644096f5e.tar.gz
rrs: add patch listing to recipe list and detail
Expose the newly added patch information in the RRS: * Add a table to the recipe detail listing the patches for the recipe * Add pending / total counts to the recipe list page Implements [YOCTO #7909]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/rrs/recipedetail.html22
-rw-r--r--templates/rrs/recipes.html2
2 files changed, 24 insertions, 0 deletions
diff --git a/templates/rrs/recipedetail.html b/templates/rrs/recipedetail.html
index ac4c6463e5..e79852ce56 100644
--- a/templates/rrs/recipedetail.html
+++ b/templates/rrs/recipedetail.html
@@ -116,6 +116,28 @@
</tbody>
</table>
{% endif %}
+
+ <h2>Patches</h2>
+ {% if recipe.patch_set.exists %}
+ <table class="table table-striped table-bordered">
+ <thead>
+ <tr>
+ <th class="span6">Patch</th>
+ <th>Status</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for patch in recipe.patch_set.all %}
+ <tr>
+ <td><a href="{{ patch.vcs_web_url }}">{{ patch.src_path }}</a></td>
+ <td>{{ patch.get_status_display }} {{ patch.status_extra | urlize }}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+ {% else %}
+ <p>None</p>
+ {% endif %}
</div>
<div class="span4">
diff --git a/templates/rrs/recipes.html b/templates/rrs/recipes.html
index 8c4b29abd6..30db1bf32e 100644
--- a/templates/rrs/recipes.html
+++ b/templates/rrs/recipes.html
@@ -79,6 +79,7 @@
<th class="upstream_version_column muted">Upstream version</th>
<th class="upstream_status_column span2">Upstream status</th>
<th class="last_updated_column">Last Updated</th>
+ <th class="patches_column">Patches</th>
<th class="maintainer_column">Maintainer</th>
<th class="summary_column muted span5">Summary</th>
<th class="no_update_reason_column muted span5" style="display:none">No update reason</th>
@@ -102,6 +103,7 @@
{{ r.upstream_status }}
</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>
<td class="maintainer_column">{{ r.maintainer_name }}</td>
<td class="summary_column">{{ r.summary }}</td>
<td class="no_update_reason_column" style="display:none">{{ r.no_update_reason }}</td>