[PATCH] [rrs] Show the 'Upstream version' column only when relevant

Belen Barros Pena <belen.barros.pena@...>

From: Belen Barros Pena <belen.barros.pena@...>

Currently the recipes table always shows the 'Upstream version' column.
However, for recipes up-to-date, this column is irrelevant, since for such
recipes 'version' always equals 'upstream version'.

Since the vast majority of the recipes are up-to-date, when you are
showing all the recipes the 'upstream version' column is also pretty

The column is only really relevant when you are looking at recipes
with status 'not updated' or 'can't be updated'. I would have thought
there would be nothing to show in the 'Upstream version' column for
recipes with status 'Unknown', but it turns out some of those do have
an upstream version value, that I thought might be useful to the
maintainer somehow.

So, this patch hides the 'Upstream version' column whenever you are
looking at all the recipes or up-to-date recipes; and shows it when
you select any of the other recipe statuses

Signed-off-by: Belen Barros Pena <belen.barros.pena@...>
templates/rrs/recipes.html | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/templates/rrs/recipes.html b/templates/rrs/recipes.html
index be2a3a5..96a3bbc 100644
--- a/templates/rrs/recipes.html
+++ b/templates/rrs/recipes.html
@@ -234,6 +234,12 @@ $(document).ready(function() {

+ if (upstreamStatus == 'Up-to-date' || upstreamStatus == 'All') {
+ $('.upstream_version_column').hide();
+ } else {
+ $('.upstream_version_column').show();
+ }
if (upstreamStatus == 'All') {
upstreamStatusFilter = ''
} else {
2.4.9 (Apple Git-60)

Join {yocto@lists.yoctoproject.org to automatically receive all group messages.