aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@intel.com>2015-12-03 14:26:15 +0000
committerPaul Eggleton <paul.eggleton@linux.intel.com>2018-05-04 23:57:52 +1200
commitcd5c4ff7d13dfbae3ae59bd767405237ef968b37 (patch)
tree933ac12895cc540a562fd52e23e18b070823031a /templates
parent3ccb422aeb1173eb9d1b30e9e211251cd190c166 (diff)
downloadopenembedded-core-contrib-cd5c4ff7d13dfbae3ae59bd767405237ef968b37.tar.gz
Show the 'Upstream version' column only when relevant
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 useless. 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@intel.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/rrs/recipes.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/rrs/recipes.html b/templates/rrs/recipes.html
index be2a3a5a3c..96a3bbc436 100644
--- a/templates/rrs/recipes.html
+++ b/templates/rrs/recipes.html
@@ -234,6 +234,12 @@ $(document).ready(function() {
$('.summary_column').show()
}
+ if (upstreamStatus == 'Up-to-date' || upstreamStatus == 'All') {
+ $('.upstream_version_column').hide();
+ } else {
+ $('.upstream_version_column').show();
+ }
+
if (upstreamStatus == 'All') {
upstreamStatusFilter = ''
} else {